mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Decouple static "main" keys in mconfig.json and refactor tasks to support many output files. Added: - scripts.js: Array of output files (such as 'app.js') to iterate over to bundle JS files. - styles.js: Array of input files (such as 'main.css' and 'critical.css') to iterate over to compile Sass files. - svgs.js: Array of output files (such as 'sprite.svg') to iterate over to compile SVG spritesheets. Changed: - mconfig.json: Decouple entry points to individual tasks to allow for more flexibility in projects. - concat.js: Refactor function to use promises to build list of JS files to concatenate. - message.js: Replace if statements with switch for improved readability. - message.js: If timerID provided with "waiting" type, log time. - watch.js: Change CSS and JS reload watch paths to include all files. - Sorted imports by path.
25 lines
563 B
JSON
Executable File
25 lines
563 B
JSON
Executable File
{
|
|
"url": "locomotive-boilerplate.test",
|
|
"src": "./assets/",
|
|
"dest": "./www/",
|
|
"build": "./build/",
|
|
"styles": {
|
|
"src": "./assets/styles/",
|
|
"dest": "./www/assets/styles/"
|
|
},
|
|
"scripts": {
|
|
"src": "./assets/scripts/",
|
|
"dest": "./www/assets/scripts/",
|
|
"vendors": {
|
|
"src": "./assets/scripts/vendors/"
|
|
}
|
|
},
|
|
"svgs": {
|
|
"src": "./assets/images/sprite/",
|
|
"dest": "./www/assets/images/"
|
|
},
|
|
"views": {
|
|
"src": "./views/boilerplate/template/"
|
|
}
|
|
}
|