chore: refactor a lot, add codegen and upgrade vue

This commit is contained in:
2022-08-03 18:40:05 +02:00
parent 0e1ce42af2
commit e24b65c85b
42 changed files with 3854 additions and 1073 deletions
+40 -25
View File
@@ -6,52 +6,60 @@
},
"author": "Joakim Olsson <joakim@unbound.se>",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"lint:js": "eslint --ext \".ts,.js,.vue\" --ignore-path .gitignore .",
"lint:style": "stylelint \"**/*.{css,scss,sass,html,vue}\" --ignore-path .gitignore",
"lint:prettier": "prettier --check .",
"lint": "yarn lint:js && yarn lint:style # ignore prettier for now # && yarn lint:prettier",
"lintfix": "prettier --write --list-different . && yarn lint:js --fix && yarn lint:style --fix",
"prepare": "husky install",
"test": "jest",
"codegen": "graphql-codegen"
},
"dependencies": {
"@apollo/client": "^3.6.9",
"@auth0/auth0-spa-js": "^1.22.2",
"@nuxtjs/composition-api": "^0.32.0",
"@graphql-codegen/typescript": "^2.7.2",
"@graphql-codegen/typescript-operations": "^2.5.2",
"@graphql-codegen/typescript-vue-apollo": "^3.3.2",
"@nuxtjs/composition-api": "^0.33.0",
"@nuxtjs/i18n": "^7.2.3",
"@nuxtjs/moment": "^1.1.0",
"@nuxtjs/sentry": "^5.1.7",
"@nuxtjs/vuetify": "^1.12.3",
"@snyk/protect": "^1.982.0",
"@u3u/vue-hooks": "^2.0.1",
"@vue/apollo-composable": "^4.0.0-alpha.19",
"@vue/apollo-option": "^4.0.0-alpha.20",
"@vue/composition-api": "^1.7.0",
"@vueuse/core": "^9.0.2",
"@vueuse/nuxt": "^9.0.2",
"core-js": "3",
"dayjs": "^1.11.4",
"date-fns": "^2.29.1",
"graphql": "^15.8.0",
"graphql-tag": "^2.12.6",
"moment": "^2.29.4",
"node-sass": "^7.0.1",
"nuxt": "^2.15.8",
"sass-loader": "^7.0.3",
"vue": "^2.6.14",
"sass-loader": "^10.1.1",
"vue": "2.7.8",
"vue-demi": "^0.13.6",
"vue-numeral-filter": "^2.2.0",
"vue-server-renderer": "^2.6.14",
"vue-template-compiler": "2.6.14",
"vuetify": "^2.6.8"
},
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"generate": "nuxt generate",
"lint": "eslint --quiet --fix --ext .js,.vue --ignore-path .gitignore .",
"generate-gql": "graphql-codegen",
"precommit": "yarn lint",
"prepush": "yarn test",
"prepare": "yarn run snyk-protect",
"snyk-protect": "snyk-protect",
"start": "node server/index.js",
"start:ci": "NODE_ENV=production CI=true node server/index.js",
"test:cypress": "cypress run",
"wait": "wait-on http://localhost:3000"
"vue-server-renderer": "2.7.8",
"vue-template-compiler": "2.7.8",
"vuetify": "^2.6.8",
"vuex": "3.6.2"
},
"devDependencies": {
"@babel/runtime-corejs3": "^7.18.9",
"@graphql-codegen/cli": "^2.11.3",
"@graphql-codegen/fragment-matcher": "^3.3.0",
"@nuxt/types": "^2.15.8",
"@nuxt/typescript-build": "^2.1.0",
"@nuxtjs/eslint-config-typescript": "^10.0.0",
"@nuxtjs/eslint-module": "^3.1.0",
"@nuxtjs/stylelint-module": "^4.1.0",
"babel-eslint": "^10.0.3",
"cli-engine": "^4.7.6",
"cypress": "^10.4.0",
@@ -60,9 +68,16 @@
"eslint-config-prettier": "^8.5.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-nuxt": "^3.2.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.3.0",
"husky": "^8.0.1",
"postcss-html": "^1.5.0",
"prettier": "^2.7.1",
"stylelint": "^14.9.1",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-recommended-vue": "^1.4.0",
"stylelint-config-standard": "^26.0.0",
"wait-on": "^6.0.1"
},
"snyk": true