Commit Graph

480 Commits

Author SHA1 Message Date
Chauncey McAskill
7479444572 Change tasks to async functions 2021-09-18 01:16:44 -04:00
Chauncey McAskill
b46fb31dfe Fix logic for PostCSS processing
Amends 3874d9c451674a9b4f76239a17b4cbf50cbdb9d3

The `fs.access()` condition is unnecessary and won't work if a CSS stylesheet does not exist.
2021-09-18 01:16:44 -04:00
Chauncey McAskill
23e55d6340 Move notification.js to utils directory 2021-09-18 01:16:44 -04:00
Chauncey McAskill
70827b0a7d Add semi-colon to exported functions 2021-09-18 01:16:44 -04:00
Chauncey McAskill
8cff91aa68 Fix syntax typo in concat.js
Amends a55e6e523db4b4c932d214d3e204fa29d9c0e58f
2021-09-18 01:16:44 -04:00
Chauncey McAskill
b24014d8b1 Add autoprefixer and postcss
Added:
- autoprefixer v10.3.4
- postcss v8.3.6

Changed:
- Node Sass options to pass source map to PostCSS.
2021-09-18 01:16:44 -04:00
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
8b4d758443 Fix comments and variable in watch.js
Amends 14d9f47fe0

Fixed:
- Location of comments.
- Variable `serverConfig` to `const`.
2021-09-16 14:01:21 -04:00
Chauncey McAskill
e51c717a3c Renamed BrowserSync variable "bs" to "server" 2021-09-16 13:55:29 -04:00
Chauncey McAskill
0267bc6ebd Revert "proxy" back to "url" for BrowserSync
Amends 14d9f47fe0
2021-09-16 13:54:49 -04:00
Chauncey McAskill
4a5d821965 Merge pull request #90 from MouseEatsCat/master
Remove default proxy
2021-09-16 13:48:38 -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
Chauncey McAskill
1203e54277 Constrain Node to v14.17 2021-09-14 18:20:45 -04:00
Michel Descoteaux
14d9f47fe0 Remove default proxy 2021-06-28 21:33:10 -04:00
Jérémy Minié
72eaf582a5 Tweak spacing classes to use rem straight away 2021-05-06 17:04:43 -04:00
Jérémy Minié
e4d1c0058a Nuke templates unused style folder 💥 2021-05-06 17:04:27 -04:00
Jérémy Minié
bcb7525019 Tweak o-layout gutters to match $unit & $unit-small 2021-05-06 17:03:55 -04:00
Jérémy Minié
03b3d211c8 Add a catalog of easing variables 2021-05-06 17:03:45 -04:00
Chauncey McAskill
0d42f65ff6 Skip init function if stylesheet not found
Instead of throwing an error about a member not being defined or accessed on NULL.
2021-04-09 15:23:45 -04:00
Chauncey McAskill
b62385c4e0 Change Sass $assets-path value for critical.css 2021-03-23 12:29:09 -04:00
Quentin Hocdé
53653b2111 Merge pull request #82 from locomotivemtl/dependabot/npm_and_yarn/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8
2021-03-05 09:57:25 -05:00
Quentin Hocdé
26821492a7 Merge pull request #81 from locomotivemtl/dependabot/npm_and_yarn/urijs-1.19.6
Bump urijs from 1.19.2 to 1.19.6
2021-03-05 09:57:15 -05:00
Quentin Hocdé
5d1c5a17f5 Merge pull request #80 from locomotivemtl/dependabot/npm_and_yarn/node-notifier-8.0.1
Bump node-notifier from 8.0.0 to 8.0.1
2021-03-05 09:57:04 -05:00
dependabot[bot]
0071b9d790 Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-05 14:45:35 +00:00
dependabot[bot]
ebda397455 Bump urijs from 1.19.2 to 1.19.6
Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.2 to 1.19.6.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.2...v1.19.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-05 14:45:29 +00:00
dependabot[bot]
c94f7ca88e Bump node-notifier from 8.0.0 to 8.0.1
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases)
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md)
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-05 14:45:26 +00:00
Quentin Hocdé
f52b073263 Merge pull request #79 from locomotivemtl/update-compilation-2020
Update compilation
2021-03-05 09:44:46 -05:00
Quentin Hocdé
b8b056dbe0 Merge branch 'update-compilation-2020' of github.com:locomotivemtl/locomotive-boilerplate into update-compilation-2020 2021-03-05 09:31:02 -05:00
Quentin Hocdé
fbe2a6badf Fix app.js coding style and rename css id 2021-03-05 09:30:54 -05:00
Quentin Hocdé
e687e52cd2 Update build/styles.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:27:47 -05:00
Quentin Hocdé
3cf62e80f7 Update build/styles.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:27:37 -05:00
Quentin Hocdé
a6efa6bcb1 Update build/styles.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:27:25 -05:00
Quentin Hocdé
85a2784a11 Update build/styles.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:27:17 -05:00
Quentin Hocdé
65a2e64474 Update build/styles.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:27:06 -05: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é
d2d294e145 Update build/notification.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:26:34 -05:00
Quentin Hocdé
f39a5f0a75 Update build/concat.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:26:25 -05:00
Quentin Hocdé
6a6f2cfa21 Update build/concat.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:26:18 -05:00
Quentin Hocdé
0e8134629a Update build/concat.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:26:10 -05:00
Quentin Hocdé
5ab2d41525 Update build/utils/message.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:25:55 -05:00
Quentin Hocdé
2d095ef973 Update build/svgs.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:25:50 -05:00
Quentin Hocdé
89b7d9523b Merge branch 'update-compilation-2020' of github.com:locomotivemtl/locomotive-boilerplate into update-compilation-2020 2021-03-05 09:25:24 -05:00
Quentin Hocdé
ad81a8e97f Update package.json node version 2021-03-05 09:25:16 -05:00
Quentin Hocdé
bddbaaed1c Update build/utils/message.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:24:18 -05:00
Quentin Hocdé
5f20fe0e43 Update build/svgs.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:24:04 -05:00
Quentin Hocdé
718feed2c7 Update build/concat.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:23:55 -05:00
Quentin Hocdé
11b9fa7a7d Update assets/scripts/modules/Scroll.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:23:45 -05:00
Quentin Hocdé
ad01d00751 Update assets/scripts/modules/Load.js
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca>
2021-03-05 09:23:32 -05:00