mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Refactor build tasks and config file
Changed:
- Renamed 'mconfig.json' to 'loconfig.json'.
- Renamed 'concat.js' to 'concats.js' to represent flexible functionality.
- loconfig.json: Base paths are nested under "paths".
- loconfig.json: Paths for tasks are nested under "tasks".
- Refactored each task to process corresponding entries under "tasks" in 'loconfig.json'.
- watch.js: Changed concats watch to use task's includes.
Added:
- tiny-glob v0.2.9
- Utility 'glob.js' to use dynamic imports to fetch an available glob function from node modules.
- Utility 'template.js' to provide a function to render template tags (`{% ... %}`) in tasks.
- concats.js: Support for concatenating groupes of files.
- scripts.js: Support for ESBuild's "outdir" option.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { concatVendors } from './tasks/concat.js';
|
||||
import { concatFiles } from './tasks/concats.js';
|
||||
import { compileScripts } from './tasks/scripts.js';
|
||||
import { compileStyles } from './tasks/styles.js' ;
|
||||
import { compileSVGs } from './tasks/svgs.js' ;
|
||||
|
||||
concatVendors();
|
||||
concatFiles();
|
||||
compileScripts();
|
||||
compileStyles();
|
||||
compileSVGs();
|
||||
|
||||
Reference in New Issue
Block a user