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

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

View File

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

View File

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

View File

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

8934
yarn.lock Normal file

File diff suppressed because it is too large Load Diff