Move Webpack build to the same Maven module from which it is invoked (#9823)

This commit is contained in:
Basil Crow 2024-10-12 11:46:18 -07:00 committed by GitHub
parent d0d0cc88c7
commit 4d2698f254
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
147 changed files with 14 additions and 14 deletions

2
.gitattributes vendored
View File

@ -39,4 +39,4 @@
# Yarn
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
/war/.yarn/plugins/** binary
/.yarn/plugins/** binary

View File

@ -8,10 +8,10 @@ node/
.git
# libraries / external deps / generated files
war/src/main/js/plugin-setup-wizard/bootstrap-detached.js
src/main/js/plugin-setup-wizard/bootstrap-detached.js
war/src/main/webapp/scripts/yui
war/src/main/webapp/jsbundles/
war/src/main/scss/_bootstrap.scss
src/main/scss/_bootstrap.scss
# test files that we don't need formatted
test/src/test/resources

View File

@ -1,7 +1,7 @@
module.exports = {
extends: "stylelint-config-standard",
customSyntax: "postcss-scss",
ignoreFiles: ["war/src/main/scss/_bootstrap.scss"],
ignoreFiles: ["src/main/scss/_bootstrap.scss"],
rules: {
"no-descending-specificity": null,
"selector-class-pattern": "[a-z]",

View File

@ -18,7 +18,7 @@ module.exports = [
// External scripts
".pnp.cjs",
".pnp.loader.mjs",
"war/src/main/js/plugin-setup-wizard/bootstrap-detached.js",
"src/main/js/plugin-setup-wizard/bootstrap-detached.js",
"war/src/main/webapp/scripts/yui/*",
],
},
@ -91,8 +91,8 @@ module.exports = [
{
files: [
"eslint.config.cjs",
"war/postcss.config.js",
"war/webpack.config.js",
"postcss.config.js",
"webpack.config.js",
".stylelintrc.js",
],
languageOptions: {

View File

@ -10,16 +10,16 @@
},
"private": true,
"scripts": {
"dev": "webpack --config war/webpack.config.js",
"prod": "webpack --config war/webpack.config.js --mode=production",
"dev": "webpack --config webpack.config.js",
"prod": "webpack --config webpack.config.js --mode=production",
"build": "yarn prod",
"start": "yarn dev --watch",
"lint:js": "eslint . && prettier --check .",
"lint:js-ci": "eslint . -f checkstyle -o target/eslint-warnings.xml && prettier --check .",
"lint:css": "stylelint war/src/main/scss",
"lint:css-ci": "stylelint war/src/main/scss --custom-formatter stylelint-checkstyle-reporter -o target/stylelint-warnings.xml",
"lint:css": "stylelint src/main/scss",
"lint:css-ci": "stylelint src/main/scss --custom-formatter stylelint-checkstyle-reporter -o target/stylelint-warnings.xml",
"lint:ci": "yarn lint:js-ci && yarn lint:css-ci",
"lint:fix": "eslint --fix . && prettier --write . && stylelint war/src/main/scss --fix",
"lint:fix": "eslint --fix . && prettier --write . && stylelint src/main/scss --fix",
"lint": "yarn lint:js && yarn lint:css"
},
"devDependencies": {

Some files were not shown because too many files have changed in this diff Show More