mirror of
https://github.com/jenkinsci/jenkins.git
synced 2024-10-23 08:45:06 +08:00
Move Webpack build to the same Maven module from which it is invoked (#9823)
This commit is contained in:
parent
d0d0cc88c7
commit
4d2698f254
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -39,4 +39,4 @@
|
||||
|
||||
# Yarn
|
||||
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
|
||||
/war/.yarn/plugins/** binary
|
||||
/.yarn/plugins/** binary
|
||||
|
@ -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
|
||||
|
@ -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]",
|
||||
|
@ -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: {
|
||||
|
10
package.json
10
package.json
@ -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
Loading…
Reference in New Issue
Block a user