Feat: installation de vue-router

This commit is contained in:
Bertrand Benjamin 2021-06-08 20:20:58 +02:00
parent 21b4a2cea1
commit 28a58c43db
5 changed files with 7052 additions and 49 deletions

3
.gitignore vendored
View File

@ -21,3 +21,6 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
#Electron-builder output
/dist_electron

5847
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,11 +5,17 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
"lint": "vue-cli-service lint",
"electron:build": "vue-cli-service electron:build",
"electron:serve": "vue-cli-service electron:serve",
"postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps"
},
"main": "background.js",
"dependencies": {
"core-js": "^3.6.5",
"vue": "^3.0.0"
"vue": "^3.0.0",
"vue-router": "^3.5.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
@ -18,8 +24,10 @@
"@vue/compiler-sfc": "^3.0.0",
"babel-eslint": "^10.1.0",
"electron": "^13.1.1",
"electron-devtools-installer": "^3.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^7.0.0"
"eslint-plugin-vue": "^7.0.0",
"vue-cli-plugin-electron-builder": "~2.0.0"
},
"eslintConfig": {
"root": true,

View File

@ -1,4 +1,7 @@
import { createApp } from 'vue'
import VueRouter from "vue-router"
import App from './App.vue'
vue.use(VueRouter)
createApp(App).mount('#app')

1234
yarn.lock

File diff suppressed because it is too large Load Diff