1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00
Commit Graph

74 Commits

Author SHA1 Message Date
Chauncey McAskill
962ba66b96 Update NPM dependencies
Updated:
- autoprefixer v10.4.13 → v10.4.17
- esbuild v0.17.6 → →0.20.0
- locomotive-scroll v5.0.0-beta.9 → v5.0.0-beta.11
- sass v1.69.5 → v1.70.0
2024-01-29 12:30:58 -05:00
Lucas Vallenet
3f7077b488 Add vh/svh/dvh/lvh fallbacks 2024-01-11 11:45:46 +01:00
Deven Caron
65c486b910 Update locomotive-scroll to v5.0.0-beta.9 2023-11-15 13:55:25 -05:00
Lucas Vallenet
7f1b6dad2e Fix device detection on config.js 2023-09-05 09:40:19 +02:00
Chauncey McAskill
95caf9ebb5 Replace window.onload with window.addEventListener()
Since the `window` can only ever have one `onload` value, if ever a third-party script overwrites this property, the application risks never initializing.

By using `addEventListener('load',…)`, the application's bootstrapping logic is queued and is more likely to be initialized.
2023-08-08 15:34:01 -04:00
Deven Caron
659ef3767b Fix img scroll lazyload $el 2023-07-31 10:29:02 -04:00
Lucas Vallenet
43a5eb1ad3 Update locomotive scroll v5 2023-06-08 15:44:35 +02:00
Lucas Vallenet
a11e98e31e Fix js FONT var error 2023-05-22 09:48:34 +02:00
Lucas Vallenet
1a81c865ae Config namespaces 2023-04-05 15:06:51 -04:00
Chauncey McAskill
590e06fc03 Update NPM dependencies
Updated:
- autoprefixer v10.4.12 → v10.4.13
- browser-sync v2.27.10 → v2.27.11
- esbuild v0.14.54 → v0.16.13
- node-sass v7.0.3 → v8.0.0
- postcss v8.4.17 → v8.4.20
2023-01-04 11:01:38 -05:00
arnvvd
eead1d27cd Move grid helper call to global.js 2022-10-31 14:27:18 -04:00
arnvvd
9c478f5f7d grid helper refactoring + prepare JS dynamic import + add app-env function for Sass conditions 2022-10-31 14:25:20 -04:00
Jérémy Minié
ebcbb6dc84 Only use GridHelper's margin setting for lateral grid spacing 2022-10-31 14:22:31 -04:00
Lucas Vallenet
b7c49086c9 Add custom grid helper based on CSS custom properties 2022-10-31 14:20:59 -04:00
Deven Caron
1bdd2def8d Compile assets 2022-10-06 14:00:32 -04:00
arnvvd
76614e8126 Merge branch 'master' into feature/es6-updates 2022-10-05 16:43:57 -04:00
arnvvd
98957eb6c4 Merge branch 'master' of github.com:locomotivemtl/locomotive-boilerplate into feature/eager-fonts 2022-10-05 14:38:55 -04:00
Chauncey McAskill
139a6739f6 Update NPM dependencies
Updated:
- autoprefixer v10.4.4 → v10.4.12
- browser-sync v2.27.9 → v2.27.10
- esbuild v0.14.27 → v0.14.54
- kleur v4.1.4 → v4.1.5
- postcss v8.4.12 → v8.4.17
- purgecss v4.1.3 → v4.1.3
2022-10-05 12:54:05 -04:00
Chauncey McAskill
3272521dba Add constant to collect all eager fonts 2022-10-04 16:56:31 -04:00
Chauncey McAskill
e7f0455ce4 Testing CSS Font Loading API
The code in this commit is not intended for production environments;
it requires further testing.

Added:
- Multiple "Source Sans 3" fonts to test many `FontFace` entries.

Changed:
- Removed quotes from font family name to avoid them being included in `FontFace.family` value.

Notes:
- Replaces hidden `<span>` elements with `FaceFace.load()` and `FaceFace.loaded` to eagerly load fonts.
- Fonts are eagerly using custom `loadFonts()` (see 'app.js').
- Acting upon loaded fonts is done using `whenReady()` (see 'Example.js').
2022-09-27 11:11:31 -04:00
Deven Caron
07c3155c29 Compile styles 2022-06-06 13:15:56 -04:00
Lucas Vallenet
c8d4e7c154 Build scripts and styles with latest updates 2022-06-01 16:26:47 +02:00
Lucas Vallenet
de0c4993cb Add config.js / Add tickers utils / Add events utils 2022-05-26 13:06:27 +02:00
Chauncey McAskill
0b667542f5 Refactor visibility.js
Replaced custom callback stacks for executing handlers on page visibility change with native event listener interface and custom event types.

Added:
- Class `PageVisibility` with methods to disable/enable custom event types and check if feature is enabled.
- Custom event types "visibilityhidden" and "visibilityvisible".
2022-05-25 09:54:01 -04:00
Lucas Vallenet
ccf813f6be Update functions / ES6 syntax / Add functions comments 2022-05-20 16:51:24 +02:00
Lucas Vallenet
e8b2a86798 Update fontface system with scss lists, function and mixin 2022-04-29 13:51:46 +02:00
Chauncey McAskill
28aa6c7de6 Update NPM dependencies
Resolves #105

Updated:
- autoprefixer v10.4.2 → v10.4.4
- browser-sync v2.27.7 → v2.27.9
- esbuild v0.14.21 → v0.14.27
- postcss v8.4.6 → v8.4.12
2022-03-21 17:24:10 -04:00
Chauncey McAskill
9d18205b0f Update NPM dependencies
Updated:
- autoprefixer v10.4.0 → v10.4.2
- esbuild v0.13.12 → v0.14.14
- node-sass v6.0.1 → v7.0.1
- postcss v8.3.11 → v8.4.5
2022-01-28 16:00:57 -05:00
Chauncey McAskill
5c24fabaa2 Compile assets 2021-11-03 10:50:33 -04:00
Deven Caron
62601f22ed Build assets 2021-10-19 14:49:56 -04:00
Deven Caron
8b40b1a92e build assets 2021-10-18 16:45:40 -04:00
Chauncey McAskill
21f6acf4a6 Update NPM dependencies
Updated:
- autoprefixer v10.3.4 → v10.3.5
- esbuild v0.12.28 → v0.13.0
- postcss v8.3.6 → v8.3.7
2021-09-22 13:26:28 -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
Quentin Hocdé
fbe2a6badf Fix app.js coding style and rename css id 2021-03-05 09:30:54 -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
Deven Caron
43fc62950a Build 2020-10-26 15:28:35 -04:00
Antoine Boulanger
e910afc384 Change async stylesheet method, check stylesheet onload before init app 2020-05-26 15:22:14 -04:00
Jérémy Minié
61c9c0ac6f Add basic scroll-related lazy loading system w/ examples + Fix scrolling issues by putting header inside o-scroll + Use data-scroll-section 2019-09-25 16:25:14 -04:00
Antoine Boulanger
9836c462b2 Update locomotive-scroll to v3: update scroll.js, add scrollbar css, remove copy task 2019-07-19 15:57:34 -04:00
Jérémy Minié
7d47ae0d82 Fix small warning in app.js + Add useful methods to html.js + Add maths.js to utils + Build 2019-06-25 14:21:03 -04:00
Antoine Boulanger
88aa667090 Start adding modularjs & modularload, start updating readme, update html files, change jquery cdn, remove IE from babelrc 2019-03-24 17:15:47 -04:00
Deven Caron
d372d1867f smoothscroll false by default, scroll module renaming 2018-10-17 12:05:33 -04:00
Deven Caron
6cf0bd8375 added scrollbar style 2018-10-17 11:45:20 -04:00
Deven Caron
4676d277f5 added scroll extends + LocomotiveScroll module + scroll basic style 2018-10-17 10:53:08 -04:00
Julien Martins Da Costa
2116efb8c2 Remove jshint esnext: http://jshint.com/docs/options/#esnext and use esversion: 6 2018-05-01 09:50:13 -04:00
Quentin Hocdé
33d4c9637d compile prev commit 2018-02-26 14:21:50 -05:00
Quentin Hocdé
42d8fec62d init modules then add css class + exec script inline 2018-02-20 11:20:09 -05:00
Quentin Hocdé
93c50ddc9c remove useless things, update todo 2018-02-06 14:25:30 -05:00
Quentin Hocdé
f00fc2fcd2 Update : manage clickedLink via pjax:send, logs if isDebug, manage events, add schema to explain the order of executions, refactoring after tests in a real project 2018-02-05 15:17:39 -05:00