Use npm v7 and simplify overall configuration
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
parent
af79de9fad
commit
3469c64077
|
@ -66,10 +66,13 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up node ${{ matrix.node-versions }}
|
||||
uses: actions/setup-node@v1
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-versions }}
|
||||
|
||||
- name: Set up npm7
|
||||
run: npm i -g npm@7
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
|
@ -88,10 +91,13 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up node ${{ matrix.node-versions }}
|
||||
uses: actions/setup-node@v1
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-versions }}
|
||||
|
||||
- name: Set up npm7
|
||||
run: npm i -g npm@7
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
|
|
|
@ -20,10 +20,13 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up node ${{ matrix.node-versions }}
|
||||
uses: actions/setup-node@v1
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-versions }}
|
||||
|
||||
- name: Set up npm7
|
||||
run: npm i -g npm@7
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
|
|
|
@ -20,15 +20,17 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up node ${{ matrix.node-versions }}
|
||||
uses: actions/setup-node@v1
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-versions }}
|
||||
|
||||
- name: Set up npm7
|
||||
run: npm i -g npm@7
|
||||
|
||||
- name: Install dependencies & build
|
||||
run: |
|
||||
npm ci
|
||||
npm run build --if-present
|
||||
npm run svg_sprite --if-present
|
||||
- name: Check webpack build changes
|
||||
run: |
|
||||
bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )"
|
||||
|
|
38
.stylelintrc
38
.stylelintrc
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"extends": "stylelint-config-recommended-scss",
|
||||
"rules": {
|
||||
"no-eol-whitespace": true,
|
||||
"length-zero-no-unit": true,
|
||||
"block-opening-brace-space-before": "always",
|
||||
"block-no-empty": true,
|
||||
"indentation": "tab",
|
||||
"selector-type-no-unknown": null,
|
||||
"number-leading-zero": "never",
|
||||
"rule-empty-line-before": ["always", {
|
||||
"ignore": ["after-comment", "inside-block"]
|
||||
}],
|
||||
"declaration-empty-line-before": ["never", {
|
||||
"ignore": ["after-declaration"]
|
||||
}],
|
||||
"comment-empty-line-before": null,
|
||||
"selector-type-case": null,
|
||||
"selector-list-comma-newline-after": null,
|
||||
"no-descending-specificity": null,
|
||||
"string-quotes": "single",
|
||||
"selector-pseudo-element-no-unknown": [
|
||||
true,
|
||||
{
|
||||
ignorePseudoElements: ['v-deep']
|
||||
}
|
||||
],
|
||||
"selector-combinator-space-before": "always",
|
||||
"selector-combinator-space-after": "always",
|
||||
"declaration-block-no-duplicate-properties": true,
|
||||
"no-extra-semicolons": true,
|
||||
"declaration-colon-space-after": "always",
|
||||
"declaration-colon-space-before": "never"
|
||||
},
|
||||
"plugins": [
|
||||
"stylelint-scss"
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
38
package.json
38
package.json
|
@ -60,51 +60,19 @@
|
|||
"vuex-router-sync": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.5",
|
||||
"@babel/eslint-parser": "7.14.5",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.14.5",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/preset-env": "^7.14.5",
|
||||
"@nextcloud/babel-config": "^1.0.0-beta.1",
|
||||
"@nextcloud/browserslist-config": "^2.1.0",
|
||||
"@nextcloud/eslint-config": "^5.1.0",
|
||||
"@nextcloud/eslint-plugin": "^2.0.0",
|
||||
"@nextcloud/stylelint-config": "^1.0.0-beta.0",
|
||||
"@nextcloud/webpack-vue-config": "^4.0.3",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"babel-jest": "^26.6.3",
|
||||
"babel-loader": "^8.2.2",
|
||||
"css-loader": "^5.2.6",
|
||||
"eslint": "^7.28.0",
|
||||
"eslint-config-standard": "^16.0.3",
|
||||
"eslint-friendly-formatter": "^4.0.1",
|
||||
"eslint-loader": "^4.0.2",
|
||||
"eslint-plugin-import": "^2.23.4",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^5.1.0",
|
||||
"eslint-plugin-standard": "^5.0.0",
|
||||
"eslint-plugin-vue": "^7.11.0",
|
||||
"eslint-webpack-plugin": "^2.5.4",
|
||||
"file-loader": "^6.2.0",
|
||||
"jest": "^26.6.3",
|
||||
"jest-environment-jsdom-sixteen": "^2.0.0",
|
||||
"jest-serializer-vue": "^2.0.2",
|
||||
"mockdate": "^3.0.5",
|
||||
"node-polyfill-webpack-plugin": "^1.1.2",
|
||||
"prettier-eslint": "^12.0.0",
|
||||
"raw-loader": "^4.0.2",
|
||||
"sass": "^1.34.1",
|
||||
"sass-loader": "^12.1.0",
|
||||
"style-loader": "^2.0.0",
|
||||
"stylelint": "^13.13.1",
|
||||
"stylelint-config-recommended-scss": "^4.2.0",
|
||||
"stylelint-scss": "^3.19.0",
|
||||
"stylelint-webpack-plugin": "^2.1.1",
|
||||
"terser-webpack-plugin": "^5.1.3",
|
||||
"url-loader": "^4.1.1",
|
||||
"vue-jest": "^3.0.7",
|
||||
"vue-loader": "^15.9.7",
|
||||
"vue-template-compiler": "^2.6.14",
|
||||
"webpack": "^5.38.1",
|
||||
"webpack-cli": "^4.7.2"
|
||||
"vue-jest": "^3.0.7"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=15.0.0"
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
module.exports = {
|
||||
extends: '@nextcloud/stylelint-config',
|
||||
rules: {
|
||||
'no-eol-whitespace': true,
|
||||
'length-zero-no-unit': true,
|
||||
'block-opening-brace-space-before': 'always',
|
||||
'number-leading-zero': 'never',
|
||||
'selector-combinator-space-before': 'always',
|
||||
'selector-combinator-space-after': 'always',
|
||||
'declaration-colon-space-after': 'always',
|
||||
'declaration-colon-space-before': 'never'
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue