mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Update to NPM v10 + Update dependencies (#179)
* Update NPM constraint and dependencies Requied: - NPM v8 → v10 Changed: - Fixed Node/NPM requirements in README. - Fixed dependency vulenerabilities. - Updated dependencies. - Removed obsolete Node flag `--experimental-json-modules`. - Replaced obsolete import `assert` keyword with `with`. * Update gitignore of assets to use wildcards --------- Co-authored-by: Deven Caron <devencaron@gmail.com>
This commit is contained in:
committed by
GitHub
parent
f8a46043a6
commit
d593fe5409
12
.gitignore
vendored
12
.gitignore
vendored
@@ -5,13 +5,9 @@ loconfig.*.json
|
|||||||
!loconfig.example.json
|
!loconfig.example.json
|
||||||
.prettierrc
|
.prettierrc
|
||||||
|
|
||||||
www/assets/scripts/app.js
|
www/assets/scripts/*
|
||||||
www/assets/scripts/app.js.map
|
!www/assets/scripts/.gitkeep
|
||||||
www/assets/scripts/vendors.js
|
www/assets/styles/*
|
||||||
|
!www/assets/styles/.gitkeep
|
||||||
www/assets/styles/main.css
|
|
||||||
www/assets/styles/main.css.map
|
|
||||||
www/assets/styles/critical.css
|
|
||||||
www/assets/styles/critical.css.map
|
|
||||||
|
|
||||||
assets.json
|
assets.json
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ Learn more about [languages and technologies](docs/technologies.md).
|
|||||||
|
|
||||||
Make sure you have the following installed:
|
Make sure you have the following installed:
|
||||||
|
|
||||||
* [Node] — at least 17.9, the latest LTS is recommended.
|
* [Node] — at least 20, the latest LTS is recommended.
|
||||||
* [NPM] — at least 8.0, the latest LTS is recommended.
|
* [NPM] — at least 10, the latest LTS is recommended.
|
||||||
|
|
||||||
> 💡 You can use [NVM] to install and use different versions of Node via the command-line.
|
> 💡 You can use [NVM] to install and use different versions of Node via the command-line.
|
||||||
|
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
* @file Provides simple user configuration options.
|
* @file Provides simple user configuration options.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import loconfig from '../../loconfig.json' assert { type: 'json' };
|
import loconfig from '../../loconfig.json' with { type: 'json' };
|
||||||
import { merge } from '../utils/index.js';
|
import { merge } from '../utils/index.js';
|
||||||
|
|
||||||
let usrconfig;
|
let usrconfig;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
usrconfig = await import('../../loconfig.local.json', {
|
usrconfig = await import('../../loconfig.local.json', {
|
||||||
assert: { type: 'json' },
|
with: { type: 'json' },
|
||||||
});
|
});
|
||||||
usrconfig = usrconfig.default;
|
usrconfig = usrconfig.default;
|
||||||
|
|
||||||
|
|||||||
4146
package-lock.json
generated
4146
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
30
package.json
30
package.json
@@ -6,39 +6,43 @@
|
|||||||
"author": "Locomotive <info@locomotive.ca>",
|
"author": "Locomotive <info@locomotive.ca>",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "20.x",
|
"node": ">=20",
|
||||||
"npm": ">=8.0"
|
"npm": ">=10"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node --experimental-json-modules --no-warnings build/watch.js",
|
"start": "node --no-warnings build/watch.js",
|
||||||
"build": "node --experimental-json-modules --no-warnings build/build.js"
|
"build": "node --no-warnings build/build.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"locomotive-scroll": "^5.0.0-beta.11",
|
"locomotive-scroll": "^5.0.0-beta.13",
|
||||||
"modujs": "^1.4.2",
|
"modujs": "^1.4.2",
|
||||||
"modularload": "^1.2.6",
|
"modularload": "^1.2.6",
|
||||||
"svg4everybody": "^2.1.9"
|
"svg4everybody": "^2.1.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^10.4.17",
|
"autoprefixer": "^10.4.19",
|
||||||
"browser-sync": "^3.0.2",
|
"browser-sync": "^3.0.2",
|
||||||
"common-path": "^1.0.1",
|
"common-path": "^1.0.1",
|
||||||
"concat": "^1.0.3",
|
"concat": "^1.0.3",
|
||||||
"esbuild": "^0.20.0",
|
"esbuild": "^0.21.5",
|
||||||
"kleur": "^4.1.5",
|
"kleur": "^4.1.5",
|
||||||
"node-notifier": "^10.0.1",
|
"node-notifier": "^10.0.1",
|
||||||
"postcss": "^8.4.21",
|
"postcss": "^8.4.38",
|
||||||
"purgecss": "^5.0.0",
|
"purgecss": "^6.0.0",
|
||||||
"sass": "^1.70.0",
|
"sass": "^1.77.6",
|
||||||
"svg-mixer": "~2.3.14",
|
"svg-mixer": "^2.3.14",
|
||||||
"tiny-glob": "^0.2.9"
|
"tiny-glob": "^0.2.9"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"browser-sync": {
|
"browser-sync": {
|
||||||
"ua-parser-js": "~1.0.33"
|
"ua-parser-js": "^1.0.33"
|
||||||
},
|
},
|
||||||
"svg-mixer": {
|
"svg-mixer": {
|
||||||
"postcss": "^8.4.20"
|
"micromatch": "^4.0.4",
|
||||||
|
"postcss": "^8.4.38"
|
||||||
|
},
|
||||||
|
"svg-mixer-utils": {
|
||||||
|
"anymatch": "^3.1.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user