Please enable JavaScript.
Coggle requires JavaScript to display documents.
NPM (GULP (front: (clean
remove everything what could be compiled from…
NPM
GULP
build:
front:
development
- run all front development gulp tasks
- start watch
production
- remove everything
- run all front production gulp tasks
production-partial
- run all front production gulp tasks
admin:
production
- run all admin production gulp tasks
update
- run composer
- remove cache
- run admin:production #
update-with-migrations
- run composer
- remove cache
- run migrations
- run
admin:production
#
init
- install npm, composer
- download localization files
- build everything
-
run:
-
-
-
localization
run localization bash
- download current language files
- parse it into .json files
-
watch:
sass
watch sass files and run build:front:sass
#
images
watch images and run build:fron:images
#
pug
watch pug files and run build:front:pug
#
PRODUCTION
FRONTEND
npm run frontprodpartial (npm run fpp)
DEPLOY TASK
npm run frontprod (npm run fp)
- remove everthing
- compile everything #
ADMIN
npm run adminupdate (npm run au) #
runs composer, clears cache and build resources (js, css, images) - this task should be run after every branch checkout
npm run adminupdatemigrations (npm run aum) #
this task was separated because sometimes you work on multiple branches with different (non-colliding)migrations already executed in your database, and you want to do the build without migrations. Most of the time the migrations don't need to be updated. Run 'npm run aum' when you know that you need to update migrations otherwise the first tasks (npm run au
) will do the job.
WEBPACK
env.front_dev
- generate all entry points
- start watch task
- minification
env.front_prod
- generate all entry points
- minification
env.admin_prod
Generates files:
- /www/cdn/admin/js/libs.min.js
explicitely requires npm dependencies
explicitely requires libraries from ./libs
explicitely requires libraries from composer
- /www/cdn/admin/js/app.min.js
explicitely requires modules from ./modules
- other entry points
DEVELOPMENT
npm run frontdev (npm run fd)
- compiles everything
- starts watch tasks : #
-