Deven Caron
477cec7763
Merge pull request #141 from locomotivemtl/feature/optimize-grid
...
Optimise grid-column loops / Use css vars for grid columns
2023-02-09 09:08:35 -05:00
Deven Caron
5d38685460
Merge branch 'master' into feature/optimize-grid
2023-02-09 09:07:35 -05:00
Deven Caron
9079d735bc
Merge pull request #138 from locomotivemtl/feature/css-variables
...
Feature / CSS Variables
2023-02-09 09:02:59 -05:00
Deven Caron
87238fcdd5
Merge branch 'master' into feature/css-variables
2023-02-09 09:01:24 -05:00
Deven Caron
2f75d8f3d2
Merge pull request #142 from locomotivemtl/dependabot/npm_and_yarn/http-cache-semantics-4.1.1
...
Bump http-cache-semantics from 4.1.0 to 4.1.1
2023-02-07 09:30:26 -05:00
dependabot[bot]
0346a15b57
Bump http-cache-semantics from 4.1.0 to 4.1.1
...
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics ) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases )
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1 )
---
updated-dependencies:
- dependency-name: http-cache-semantics
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-04 05:43:43 +00:00
Deven Caron
a2d658bc13
Remove log to prevent throwing unwanted errors
2023-02-02 10:14:48 -05:00
Deven Caron
7c1b61eda9
Add build config dynamic import assertation type
2023-02-02 10:00:20 -05:00
Lucas Vallenet
1fe30a9837
Optimize grid-column loops / Use css vars for grid columns
2023-02-01 10:23:43 +01:00
Deven Caron
e4ae03a94c
Remove unused sass env function
2023-01-31 15:37:40 -05:00
Deven Caron
3cde7d40ee
Update readme
2023-01-31 14:15:56 -05:00
Deven Caron
d1d4fb5fe5
Bump node-version & upgrade node-sass to sass
2023-01-31 13:57:51 -05:00
Chauncey McAskill
3cd81bdb3e
Improve asset versioning task
...
Improved logic for replacing the value to allow for simpler regular expression patterns. Lookbehinds and lookaheads are no longer required.
2023-01-13 16:42:47 -05:00
Chauncey McAskill
b6970832a3
Improve asset versioning task
...
Added support for replacing a string in a file using a regular expression.
The routine uses Node's Readline and Stream modules.
The `outfile` will be renamed with a `~` suffix, then stream each line, writing to a new `outfile`.
On success, the backup file (with `~`) is deleted.
On error, any new file is deleted, then the backup file is renamed without a `~` suffix.
Usage:
```json
"versions": [
{
"format": "timestamp",
"key": "regexp:(?<=\bdefine\('ASSETS_VERSION', )[^\)]+(?=\);)",
"outfile": "src/bootstrap.php"
}
]
```
```php
<?php
define( 'ASSETS_VERSION', 1665071717350 );
```
2023-01-13 15:08:50 -05:00
Chauncey McAskill
b8f0a24cdc
Update NPM dependencies
...
Updated:
- esbuild v0.16.13 → v0.16.17
- postcss v8.4.20 → v8.4.21
2023-01-13 14:55:01 -05:00
Chauncey McAskill
0c718a2644
Update Development documentation
...
Changed:
- Bumped NPM requirement.
- Added note about benefits of using NVM.
- Added note about support for PurgeCSS to Styles task.
- Added details about Versions task.
2023-01-05 10:37:52 -05:00
Lucas Vallenet
be71474633
Remove duplicate / Update functions descriptions
2023-01-05 09:58:01 +01:00
Chauncey McAskill
56d255eac8
Fix NPM dependency constraints on svg-mixer
...
Changed:
- Fixed svg-mixer constraint from `^2.3.14` to `~2.3.14` to stay within `2.3` range since `2.4.0` appears to be an anomaly.
- Overrode postcss constraint in svg-mixer from `^6.0.21` to `^8.4.20` to fix security notice.
2023-01-04 11:01:40 -05:00
Chauncey McAskill
e7e343e62c
Bump NPM requirement to 8+
...
To take advantage of NPM dependency overrides.
2023-01-04 11:01:40 -05: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
Lucas Vallenet
810df92a61
Fix functions.scss error
2023-01-04 14:41:25 +01:00
Lucas Vallenet
4fd7968b86
Fix SCSS syntax error and duplicate
2023-01-04 11:26:56 +01:00
Lucas Vallenet
aba77ea2d9
Add default CSS Variables
2023-01-04 11:21:43 +01:00
Lucas Vallenet
bf28fe21a3
Strip breakpoint unit from responsive-type
2023-01-04 11:02:32 +01:00
Lucas Vallenet
7b3cefd8df
Add usefull scss functions
2023-01-04 10:50:36 +01:00
Lucas Bigot
20b167da33
Invert grid-helper visibility condition
2022-11-22 14:51:37 -05:00
Deven Caron
f7ca837782
Disable browsersync ghostMode
2022-11-02 11:15:49 -04:00
Deven Caron
0c8ed9595f
Merge pull request #112 from locomotivemtl/feature/grid-helper
2022-10-31 14:34:13 -04:00
arnvvd
eead1d27cd
Move grid helper call to global.js
2022-10-31 14:27:18 -04:00
arnvvd
2e3db21ec8
Update dynamic imports condition
2022-10-31 14:25:22 -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
Chauncey McAskill
9219a4cc0a
Rename default function in versions.js task
...
Renamed from `bumpVersion` to `bumpVersions` for consistency with the default functions of other tasks.
2022-10-13 12:53:32 -04:00
Chauncey McAskill
14afe2295a
Improve asset versioning task
...
Added:
- Support for writing multiple times to the same file.
- Support for random hexadecimal value instead of timestamp.
Usage:
```json
"versions": [
{
"format": "timestamp",
"key": "now",
"outfile": "./assets.json"
},
{
"format": "hex:8",
"key": "hex",
"outfile": "./assets.json"
}
]
```
```json
{
"now": 1665071717350,
"hex": "6ef54181c4ba"
}
```
2022-10-12 12:07:24 -04:00
Deven Caron
1bdd2def8d
Compile assets
2022-10-06 14:00:32 -04:00
Deven Caron
84ce496df7
Tweak images size to match block ratio
2022-10-06 14:00:26 -04:00
Deven Caron
05e631dbca
Fixed locomotive-scroll rendering glitch
2022-10-06 13:59:42 -04:00
Chauncey McAskill
f8f0a7779c
Implement simple asset versioning task
...
A task to allow one to define zero or more JSON files and keys to create or update with the current timestamp.
By default, the boilerplate will maintain a './assets.json' file which should be imported by the Web framework and applied to compiled assets.
2022-10-06 11:32:04 -04:00
Arnaud Pinot
8e320f2cd0
Merge pull request #120 from locomotivemtl/feature/es6-updates
2022-10-05 16:56:16 -04:00
Arnaud Pinot
a8314d064f
Update assets/scripts/utils/maths.js
...
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca >
2022-10-05 16:54:36 -04:00
arnvvd
76614e8126
Merge branch 'master' into feature/es6-updates
2022-10-05 16:43:57 -04:00
arnvvd
bed84ce392
Merge branch 'feature/es6-updates' of github.com:locomotivemtl/locomotive-boilerplate into feature/es6-updates
2022-10-05 16:39:30 -04:00
arnvvd
feb2241164
Add documentation for esbuild process.env
2022-10-05 16:39:25 -04:00
arnvvd
b1f5a00b8c
Delete transform utils function
2022-10-05 16:38:55 -04:00
Arnaud Pinot
2b30d9ac5c
Update assets/scripts/utils/is.js
...
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca >
2022-10-05 16:36:20 -04:00
Arnaud Pinot
9e5704238e
Update assets/scripts/utils/tickers.js
...
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca >
2022-10-05 16:35:23 -04:00
Arnaud Pinot
1ede84e1b1
Update assets/scripts/utils/tickers.js
...
Co-authored-by: Chauncey McAskill <chauncey@locomotive.ca >
2022-10-05 16:34:49 -04:00
Arnaud Pinot
3a83a3209b
Merge pull request #129 from locomotivemtl/feature/eager-fonts
...
Add support for the CSS Font Loading API
2022-10-05 14:42:00 -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