Feat/webpack (#2998)

* First commit

* Removed govuk for webpack. Modernized javascript importing. Removed dead js

* Fixed tests, a few styling bugs

* Fixed some table errors and regenerated backstop ref images

* Updated tests for coverage

* Changes from carlo suggestions
This commit is contained in:
Alex Janousek
2025-10-14 13:20:58 -04:00
committed by GitHub
parent 3b3191b337
commit 3a39d910b3
62 changed files with 1657 additions and 4861 deletions

View File

@@ -3,14 +3,19 @@
"version": "0.0.1",
"description": "Admin front end for Notify",
"engines": {
"node": ">=10.15.3"
"node": ">=22.0.0"
},
"scripts": {
"lint": "gulp lint",
"lint": "jshint app/assets/javascripts",
"test": "jest --config tests/javascripts/jest.config.js tests/javascripts",
"test-watch": "jest --watch --config tests/javascripts/jest.config.js tests/javascripts",
"build": "gulp",
"watch": "gulp watch",
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
"build:dev": "npx webpack --config webpack.config.js",
"watch": "npx webpack --watch --config webpack.config.js",
"backstop:test": "npx backstop test --configPath=backstop.config.js",
"backstop:reference": "npx backstop reference --configPath=backstop.config.js",
"backstop:approve": "npx backstop approve --configPath=backstop.config.js",
"backstop:open": "npx backstop openReport --configPath=backstop.config.js",
"audit": "better-npm-audit audit --production --level low",
"pa11y-ci": "pa11y-ci"
},
@@ -31,41 +36,34 @@
"@uswds/uswds": "^3.13.0",
"cbor-js": "0.1.0",
"d3": "^7.9.0",
"gulp-merge": "^0.1.1",
"jquery": "3.7.1",
"playwright": "^1.56.0",
"python": "^0.0.4",
"query-command-supported": "1.0.0",
"sass-embedded": "^1.93.2",
"textarea-caret": "3.1.0",
"vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^2.0.0"
"textarea-caret": "3.1.0"
},
"devDependencies": {
"@babel/core": "^7.28.4",
"@babel/preset-env": "^7.28.3",
"@uswds/compile": "^1.3.1",
"autoprefixer": "^10.4.21",
"babel-loader": "^10.0.0",
"backstopjs": "^6.3.25",
"better-npm-audit": "^3.11.0",
"gulp": "^5.0.1",
"gulp-add-src": "^1.0.0",
"gulp-babel": "8.0.0",
"gulp-clean-css": "4.3.0",
"gulp-concat": "^2.6.1",
"gulp-if": "^3.0.0",
"gulp-include": "2.4.1",
"gulp-jshint": "2.1.0",
"gulp-load-plugins": "^2.0.8",
"gulp-prettyerror": "2.0.0",
"gulp-uglify": "3.0.2",
"copy-webpack-plugin": "^13.0.1",
"css-loader": "^7.1.2",
"jest": "^30.2.0",
"jest-each": "^30.1.0",
"jest-environment-jsdom": "^30.2.0",
"jshint": "2.13.6",
"jshint-stylish": "2.2.1",
"merge-stream": "^2.0.0",
"rollup": "^4.52.4",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-node-resolve": "5.2.0"
"mini-css-extract-plugin": "^2.9.4",
"postcss-loader": "^8.2.0",
"sass": "^1.93.2",
"sass-loader": "^16.0.5",
"terser-webpack-plugin": "^5.3.14",
"webpack": "^5.102.1",
"webpack-cli": "^6.0.1"
}
}