Skip to content

Commit

Permalink
Merge pull request #231 from creative-commoners/pulls/4/node18
Browse files Browse the repository at this point in the history
MNT Use node 18
  • Loading branch information
GuySartorelli committed Sep 4, 2023
2 parents 5d27932 + 7efb0d4 commit a4d2ea1
Show file tree
Hide file tree
Showing 11 changed files with 4,773 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');
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
18
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"
}
25 changes: 11 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": "mix watch",
"dev": "mix",
"build": "mix --production",
"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 @@ -18,6 +21,7 @@
"dependencies": {
"ajv": "^6.12.3",
"bootstrap": "^4.3.1",
"core-js": "^3.32.1",
"font-awesome": "^4.7.0",
"imagemin": "^6.0.0",
"jquery": "^3.5.1",
Expand All @@ -26,16 +30,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
1 change: 1 addition & 0 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import popover from 'bootstrap/js/src/popover';
import modal from 'bootstrap/js/src/modal';
import tab from 'bootstrap/js/src/tab';
import highlight from 'jquery-highlight/jquery.highlight';
import "core-js/stable";

// Define local components
import navigation from './components/navigation';
Expand Down
Loading

0 comments on commit a4d2ea1

Please sign in to comment.