Skip to content

Commit

Permalink
MNT Use node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Aug 31, 2023
1 parent 5d27932 commit 05d467d
Show file tree
Hide file tree
Showing 9 changed files with 4,766 additions and 4,398 deletions.
11 changes: 0 additions & 11 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@silverstripe/eslint-config/.eslintrc');
6 changes: 2 additions & 4 deletions dist/css/editor.css

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions dist/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/main.js

Large diffs are not rendered by default.

25 changes: 24 additions & 1 deletion mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
{
"/dist/js/main.js": "/dist/js/main.js",
"/dist/css/main.css": "/dist/css/main.css",
"/dist/css/editor.css": "/dist/css/editor.css",
"/dist/css/main.css": "/dist/css/main.css",
"/dist/images/application.png": "/dist/images/application.png",
"/dist/images/external-link.png": "/dist/images/external-link.png",
"/dist/images/facebook.png": "/dist/images/facebook.png",
"/dist/images/favicon.ico": "/dist/images/favicon.ico",
"/dist/images/logo.png": "/dist/images/logo.png",
"/dist/images/logoOrig.png": "/dist/images/logoOrig.png",
"/dist/images/newzealand-government-footer.png": "/dist/images/newzealand-government-footer.png",
"/dist/images/page_excel.png": "/dist/images/page_excel.png",
"/dist/images/page_white_acrobat.png": "/dist/images/page_white_acrobat.png",
"/dist/images/page_white_zip.png": "/dist/images/page_white_zip.png",
"/dist/images/page_word.png": "/dist/images/page_word.png",
"/dist/images/twitter.png": "/dist/images/twitter.png",
"/dist/fonts/FontAwesome.otf": "/dist/fonts/FontAwesome.otf",
"/dist/fonts/fontawesome-webfont.eot": "/dist/fonts/fontawesome-webfont.eot",
"/dist/fonts/fontawesome-webfont.svg": "/dist/fonts/fontawesome-webfont.svg",
"/dist/fonts/fontawesome-webfont.ttf": "/dist/fonts/fontawesome-webfont.ttf",
"/dist/fonts/fontawesome-webfont.woff": "/dist/fonts/fontawesome-webfont.woff",
"/dist/fonts/fontawesome-webfont.woff2": "/dist/fonts/fontawesome-webfont.woff2",
"/dist/fonts/glyphicons-halflings-regular.eot": "/dist/fonts/glyphicons-halflings-regular.eot",
"/dist/fonts/glyphicons-halflings-regular.svg": "/dist/fonts/glyphicons-halflings-regular.svg",
"/dist/fonts/glyphicons-halflings-regular.ttf": "/dist/fonts/glyphicons-halflings-regular.ttf",
"/dist/fonts/glyphicons-halflings-regular.woff": "/dist/fonts/glyphicons-halflings-regular.woff",
"/dist/fonts/glyphicons-halflings-regular.woff2": "/dist/fonts/glyphicons-halflings-regular.woff2",
"/dist/js/jquery.min.js": "/dist/js/jquery.min.js"
}
24 changes: 10 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "cwp-starter-theme",
"version": "3.0.0",
"version": "4.0.0",
"private": true,
"engines": {
"node": "^18.x"
},
"scripts": {
"watch": "webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js --watch",
"dev": "yarn lint && webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"build": "yarn lint && NODE_ENV=production webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js --watch",
"dev": "yarn lint && webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
"build": "yarn lint && NODE_ENV=production webpack --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
"lint": "yarn lint-js; yarn lint-sass",
"lint-js": "node_modules/.bin/eslint src/js",
"lint-sass": "node_modules/.bin/sass-lint -v"
Expand All @@ -26,16 +29,9 @@
"popper.js": "^1.14.5"
},
"devDependencies": {
"@babel/core": "^7.4.0",
"@babel/polyfill": "^7.4.0",
"@babel/preset-env": "^7.4.0",
"babel-eslint": "^7.1.1",
"eslint": "^3.13.1",
"eslint-config-airbnb": "^14.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^3.0.2",
"eslint-plugin-react": "^6.9.0",
"laravel-mix": "^4.0.0",
"@babel/runtime": "^7.20.0",
"@silverstripe/eslint-config": "^1.1.0",
"laravel-mix": "^6.0.49",
"sass": "^1.17.3",
"sass-lint": "^1.10.2",
"sass-loader": "^7.3.1",
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import $ from 'jquery';
/* eslint-enable */

export default function () {
// Maori language class to add lang type
// Maori language class to add lang type
$('.maori').attr('lang', 'mi');

$('.nonvisual-indicator').addClass('sr-only').removeClass('nonvisual-indicator');
Expand Down
9,087 changes: 4,725 additions & 4,362 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 05d467d

Please sign in to comment.