Commit Graph

8 Commits

Author SHA1 Message Date
Chauncey McAskill
e9e0e5784e Refactor build tasks
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.
2021-09-18 01:16:44 -04:00
Chauncey McAskill
5cc8a75866 Update NPM dependencies
Added:
- esbuild v0.8.16 → v0.12.28
- kleur v4.1.3 → v4.1.4
- locomotive-scroll v4.0.4 → v4.1.2
- node-notifier v8.0.1 → v10.0.0
- node-sass v5.0.0 → v6.0.1

Removed:
- fs
2021-09-14 18:27:03 -04:00
Quentin Hocdé
2cfe06ea1d Update build/scripts.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:26:58 -05:00
Quentin Hocdé
b1d90327a3 Update build/scripts.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:26:50 -05:00
Quentin Hocdé
41b8030d9e Update build/scripts.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:26:42 -05:00
Quentin Hocdé
f67d4c0c41 Add error notification for styles 2020-12-11 16:00:36 -05:00
Quentin Hocdé
f15ec08784 Update notification + add built time + add nvmrc 2020-12-11 10:41:07 -05:00
Quentin Hocdé
2e7bb3b482 Update tasks - remove gulp (replaced by node scripts, working with mconfig) + esbuild (no more es5 support) + add critical css in config file 2020-11-27 16:01:54 -05:00