antoniocarboni / magento2-gulp
New Magento2 gulpfile
Installs: 247
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 1
Language:JavaScript
Type:magento2-component
This package is not auto-updated.
Last update: 2020-08-22 05:42:16 UTC
README
A new gulpfile for Magento 2
Installation
- Update your composer.json file:
“require-dev”: {
...
“antoniocarboni/magento2-gulp”:"2.0.*”
},
"repositories": [
{ "type": "vcs", "url": "https://github.com/magenio-it/magento2-gulp" }
],
- Run composer update
- Install node.js
- Rename
package.gulp.json.sample
topackage.json
- Run
npm install
- Install gulp globally using
npm install -g gulp-cli
- Define your gulp configuration in
dev/gulp-configs.js
using the file sample gulp-configs.sample.js
configs.js structure
The file gulp-configs.js
for this gulpfile has some options:
options
debug
: enable verbose mode (true/false)liveReload
: enable LiveReload Plugin (true/false)browsersync
: enable Browsersync Plugin (true/false)cache-disable
: cache to keep disabled to default on developer mode
less
sourcemap
: creates sourcemap during less compilation (true/false)singletheme
: if set, the less task will only watch the specified theme to improve the speed of compile
watch
supwatch
extensionPermitted
: specific extensions to check for create symlinks on pub/static directoryfolderCustomTheme
: directory where custom theme is located. For now superwatch works only with single custom theme at a time. Use 'app' for custom theme in app/design/ or 'Vendorname/themename' for custom theme managed with composernotifyAll
: notify changes for files that don't require the symlink on pub/staticnotifyExt
: add specific file extensions filter for notifications
exec
enableDefaultTask
: if set, task deploy without arguments uses a default task set (true/false)defaultTask
: default task to run if enableDefaultTask is enabledstaticFolderToClear
: set full path of pub/static theme to clear before to soure theme deploy.
browsersync
for more informations & all configurations visit https://browsersync.io/docs
Tasks List
prepare-dev
: set developer mode & diables cachedefault
: run less taskless
: compiles LESS files. Parameters:-
--[nometema]
: compile only for specific theme
watch
: Watch for file changes and run processing task and/or browserSync reloading:-
--[nometema]
: watch only specific theme
superwatch
: Watch less files and create and delete symlinks automatically on pub/static without run 'exec' commandbrowser-sync
: reload the browser pageexec
: executes dev:source-theme:deploy commandcache-disable
: disable specific cachecache-clear
: clear Magento2 Cachedeveloper
: set Magento2 to developer mode