Use yarn and updated dependencies

* Default to use yarn instead of npm
* Fixed eslintignore (do not lint hidden files)
* Replaced deprecated eslint-loader with eslint-webpack-plugin
* Use current eslint (v7) and upgraded vue plugin
* Set node to 12, as 11 is not supported anymore (12 is the LTS version)
* TODO: Drop package-lock.json as soon as we do not use npm anymore
This commit is contained in:
Ferdinand Thiessen 2020-11-24 17:29:40 +01:00
parent 0b7c6feeb3
commit c05fc5d877
5 changed files with 8959 additions and 25 deletions

View File

@ -5,3 +5,4 @@
/.quasar /.quasar
/node_modules /node_modules
/src-ssr /src-ssr
.*

View File

@ -4,7 +4,7 @@ Dynamischen Managementsystem für Studentenclubs
## Install the dependencies ## Install the dependencies
```bash ```bash
npm install yarn install
``` ```
## Plugins ## Plugins
@ -29,17 +29,17 @@ The order of the plugins is importend!
### Start the app in development mode (hot-code reloading, error reporting, etc.) ### Start the app in development mode (hot-code reloading, error reporting, etc.)
```bash ```bash
quasar dev yarn quasar dev
``` ```
### Lint the files ### Lint the files
```bash ```bash
npm run lint yarn run lint
``` ```
### Build the app for production ### Build the app for production
```bash ```bash
quasar build yarn quasar build
``` ```
<!-- <!--
### Customize the configuration ### Customize the configuration

View File

@ -10,27 +10,27 @@
"test": "echo \"No test specified\" && exit 0" "test": "echo \"No test specified\" && exit 0"
}, },
"dependencies": { "dependencies": {
"@dreamonkey/vue-routes-flattener": "^0.1.0",
"@quasar/extras": "^1.9.10", "@quasar/extras": "^1.9.10",
"@types/crypto-js": "^4.0.1",
"@vue/composition-api": "^0.6.4", "@vue/composition-api": "^0.6.4",
"axios": "^0.18.1", "axios": "^0.21.0",
"core-js": "^3.7.0", "core-js": "^3.7.0",
"quasar": "^1.14.3", "quasar": "^1.14.5",
"vue-router": "3.3.2" "vue-router": "3.3.2"
}, },
"devDependencies": { "devDependencies": {
"@quasar/app": "^2.1.6", "@quasar/app": "^2.1.8",
"@types/node": "^10.17.44", "@types/node": "^12.19.6",
"@types/webpack": "^4.41.25", "@types/webpack": "^4.41.25",
"@types/webpack-env": "^1.15.3", "@types/webpack-env": "^1.16.0",
"@typescript-eslint/eslint-plugin": "^3.3.0", "@typescript-eslint/eslint-plugin": "^4.8.2",
"@typescript-eslint/parser": "^3.3.0", "@typescript-eslint/parser": "^4.8.2",
"babel-eslint": "^10.0.1", "babel-eslint": "^10.1.0",
"eslint": "^6.8.0", "eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0", "eslint-config-prettier": "^6.15.0",
"eslint-loader": "^3.0.3", "eslint-plugin-vue": "^7.1.0",
"eslint-plugin-vue": "^6.1.2", "eslint-webpack-plugin": "^2.4.0",
"typescript": "^4.0.5" "typescript": "^4.1.2"
}, },
"browserslist": [ "browserslist": [
"last 10 Chrome versions", "last 10 Chrome versions",
@ -43,7 +43,7 @@
"last 6 iOS versions" "last 6 iOS versions"
], ],
"engines": { "engines": {
"node": ">= 11.0.0", "node": ">= 12.0.0",
"npm": ">= 6.13.4", "npm": ">= 6.13.4",
"yarn": ">= 1.21.1" "yarn": ">= 1.21.1"
} }

View File

@ -67,12 +67,11 @@ module.exports = configure(function(ctx) {
extendWebpack(cfg) { extendWebpack(cfg) {
// linting is slow in TS projects, we execute it only for production builds // linting is slow in TS projects, we execute it only for production builds
if (ctx.prod) { if (ctx.prod) {
cfg.module.rules.push({ const ESLintPlugin = require('eslint-webpack-plugin');
enforce: 'pre',
test: /\.(js|vue)$/, cfg.plugins.push(new ESLintPlugin({
loader: 'eslint-loader', extensions: ['ts']
exclude: /node_modules/ }));
});
} }
} }
}, },

8934
yarn.lock Normal file

File diff suppressed because it is too large Load Diff