1.0.0-alpha.23 • Published 1 year ago
gulpfile-config v1.0.0-alpha.23
💎 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 lzampetti@gmail.com
- Follow @actarian on Twitter
Release Notes
Changelog here.
1.0.0-alpha.23
1 year ago
1.0.0-alpha.21
2 years ago
1.0.0-alpha.20
2 years ago
1.0.0-alpha.22
2 years ago
1.0.0-alpha.19
2 years ago
1.0.0-alpha.18
2 years ago
1.0.0-alpha.17
2 years ago
1.0.0-alpha.16
2 years ago
1.0.0-alpha.15
2 years ago
1.0.0-alpha.14
4 years ago
1.0.0-alpha.13
4 years ago
1.0.0-alpha.10
4 years ago
1.0.0-alpha.12
4 years ago
1.0.0-alpha.11
4 years ago
1.0.0-alpha.9
4 years ago
1.0.0-alpha.8
4 years ago
1.0.0-alpha.7
4 years ago
1.0.0-alpha.6
4 years ago
1.0.0-alpha.5
4 years ago
1.0.0-alpha.4
4 years ago
1.0.0-alpha.3
4 years ago
1.0.0-alpha.2
4 years ago
1.0.0-alpha.1
4 years ago