Gulp bundler utility with gulpfile-config.json
Gulp CLI version 4.0.0
npm install gulp-cli -g
npm install gulpfile-config --save
You can configure building targets, compilers and bundlers with an easy json configuration file.
As in the example gulpfile-config.json
{
"targets": {
"browser": {
"compile": [
{
"input": "test/*.html",
"output": "docs/",
"minify": true,
"options": {
"root": "/"
}
},
{
"input": "test/templates/emails/*.mjml",
"output": "docs/templates/emails/",
"minify": false
},
{
"input": "test/css/main.scss",
"output": "docs/css/main.css",
"minify": true
},
{
"input": "test/js/main.js",
"output": "docs/js/main.js",
"minify": true
}
],
"bundle": []
},
"dist": {
"compile": [
{
"input": "src/gulpfile-config.js",
"output": {
"file": "dist/gulpfile-config.js",
"format": "cjs"
}
}
],
"bundle": []
}
},
"server": {
"root": "./docs",
"path": "/gulpfile-config/",
"host": "localhost",
"port": 34999
},
"tfs": false
}
gulp
gulp build
gulp start
gulp buildJs
gulp startJs
gulp buildCss
gulp startCss
gulp build --target dist
Pull requests are welcome and please submit bugs 🐞
npm install
gulp
gulp build --target dist
Thank you for taking the time to provide feedback and review. This feedback is appreciated and very helpful 🌈
If you find it helpful, feel free to contribute in keeping this library up to date via PayPal
- Luca Zampetti lzampetti@gmail.com
- Follow @actarian on Twitter
Changelog here.