Gulp bundler utility with gulpfile-config.json
npm install gulpfile-configgulpfile-config.json
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
`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
$3
`
gulp
`
$3
`
gulp build
`
$3
`
gulp start
`
$3
`
gulp buildJs
`
$3
`
gulp startJs
`
$3
`
gulp buildCss
`
$3
`
gulp startCss
`
$3
`
gulp build --target dist
`
___
Contributing
Pull requests are welcome and please submit bugs 🐞
___
$3
`
npm install
`
___
$3
`
gulp
`
___
$3
`
gulp build --target dist
``