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 # Yarn
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored # 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 .git
# libraries / external deps / generated files # 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/scripts/yui
war/src/main/webapp/jsbundles/ 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 files that we don't need formatted
test/src/test/resources test/src/test/resources

View File

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

View File

@ -18,7 +18,7 @@ module.exports = [
// External scripts // External scripts
".pnp.cjs", ".pnp.cjs",
".pnp.loader.mjs", ".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/*", "war/src/main/webapp/scripts/yui/*",
], ],
}, },
@ -91,8 +91,8 @@ module.exports = [
{ {
files: [ files: [
"eslint.config.cjs", "eslint.config.cjs",
"war/postcss.config.js", "postcss.config.js",
"war/webpack.config.js", "webpack.config.js",
".stylelintrc.js", ".stylelintrc.js",
], ],
languageOptions: { languageOptions: {

View File

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

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