gulpfile-config
v1.0.0-alpha.23
Published
Gulp bundler utility with gulpfile-config.json
Downloads
297
Maintainers
Readme
💎 gulpfile-config
Gulp bundler utility with gulpfile-config.json
Requirements
Gulp CLI version 4.0.0
npm install gulp-cli -g
Installation
npm install gulpfile-config --save
Configuration
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
}
Commands
Build, Serve & Watch
gulp
Build Only
gulp build
Build & Watch
gulp start
Build Js Only
gulp buildJs
Build Js & Watch
gulp startJs
Build Css Only
gulp buildCss
Build Css & Watch
gulp startCss
Build Specific Target
gulp build --target dist
Contributing
Pull requests are welcome and please submit bugs 🐞
Install packages
npm install
Build, Serve & Watch
gulp
Build Dist
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
Contact
- Luca Zampetti [email protected]
- Follow @actarian on Twitter
Release Notes
Changelog here.