Browse Source

no more warning when running npm + usage of repository and license

master
pvincent 3 years ago
parent
commit
2e6faacc6d
  1. 8
      .eslintrc.yml
  2. 2
      README.md
  3. 91
      package-lock.json
  4. 5
      package.json
  5. 7
      src/App.vue
  6. 6
      src/components/HelloWorld.vue
  7. 2
      src/main.ts
  8. 3
      src/shims-vue.d.ts
  9. 3
      vite.config.ts

8
.eslintrc.yml

@ -1,7 +1,7 @@
extends:
- "plugin:vue/vue3-recommended"
- "plugin:vue/base"
- "eslint:recommended"
- "@vue/typescript"
- 'plugin:vue/vue3-recommended'
- 'plugin:vue/base'
- 'eslint:recommended'
- '@vue/typescript'
- prettier
rules: {}

2
README.md

@ -8,5 +8,5 @@ VAPARA-VUE3
RUN
---
* npm install --dev
* npm install --also=dev
* npm run dev

91
package-lock.json

@ -1,6 +1,6 @@
{
"name": "vapara-vue3",
"version": "0.0.15",
"version": "0.0.18",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -342,89 +342,6 @@
"vue-eslint-parser": "^7.0.0"
}
},
"@vue/eslint-plugin": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/@vue/eslint-plugin/-/eslint-plugin-4.2.0.tgz",
"integrity": "sha512-XVSLEVoNnrjaxvsun5kqZyeuWyUkp97gSnLkLOvkPkoAnLwIfjG3TuZQNm7yTEukZWmaa+7FpgMdSFqL8Z0XkA==",
"dev": true,
"requires": {
"vue-eslint-parser": "^2.0.1"
},
"dependencies": {
"acorn": {
"version": "5.7.4",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz",
"integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==",
"dev": true
},
"acorn-jsx": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz",
"integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=",
"dev": true,
"requires": {
"acorn": "^3.0.4"
},
"dependencies": {
"acorn": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz",
"integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=",
"dev": true
}
}
},
"debug": {
"version": "3.2.7",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
"integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
"dev": true,
"requires": {
"ms": "^2.1.1"
}
},
"eslint-scope": {
"version": "3.7.3",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-3.7.3.tgz",
"integrity": "sha512-W+B0SvF4gamyCTmUc+uITPY0989iXVfKvhwtmJocTaYoc/3khEHmEmvfY/Gn9HA9VV75jrQECsHizkNw1b68FA==",
"dev": true,
"requires": {
"esrecurse": "^4.1.0",
"estraverse": "^4.1.1"
}
},
"eslint-visitor-keys": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
"integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
"dev": true
},
"espree": {
"version": "3.5.4",
"resolved": "https://registry.npmjs.org/espree/-/espree-3.5.4.tgz",
"integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==",
"dev": true,
"requires": {
"acorn": "^5.5.0",
"acorn-jsx": "^3.0.0"
}
},
"vue-eslint-parser": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-2.0.3.tgz",
"integrity": "sha512-ZezcU71Owm84xVF6gfurBQUGg8WQ+WZGxgDEQu1IHFBZNx7BFZg3L1yHxrCBNNwbwFtE1GuvfJKMtb6Xuwc/Bw==",
"dev": true,
"requires": {
"debug": "^3.1.0",
"eslint-scope": "^3.7.1",
"eslint-visitor-keys": "^1.0.0",
"espree": "^3.5.2",
"esquery": "^1.0.0",
"lodash": "^4.17.4"
}
}
}
},
"@vue/reactivity": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.0.6.tgz",
@ -1538,6 +1455,12 @@
"integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
"dev": true
},
"prettier": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz",
"integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==",
"dev": true
},
"prettier-linter-helpers": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",

5
package.json

@ -1,7 +1,8 @@
{
"name": "vapara-vue3",
"version": "0.0.18",
"origin": "https://git.artcode.re/pvincent/vapara-vue3",
"license": "AGPL-3.0-or-later",
"repository": "https://git.artcode.re/pvincent/vapara-vue3",
"scripts": {
"dev": "vite",
"build": "vite build",
@ -18,11 +19,11 @@
"@vitejs/plugin-vue": "^1.1.5",
"@vue/compiler-sfc": "3.x",
"@vue/eslint-config-typescript": "^7.0.0",
"@vue/eslint-plugin": "^4.2.0",
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.6.0",
"prettier": "^2.2.1",
"vite": "^2.0.4"
}
}

7
src/App.vue

@ -2,8 +2,8 @@
<img alt="Vue logo" src="./assets/logo.png" width="150" />
<HelloWorld :msg="title" />
<footer style="margin-top: 2em">
AGPLv3 :
<a :href="origin" alt="origin">
{{ license }} :
<a :href="repository" alt="repository">
{{ version }}
</a>
</footer>
@ -21,7 +21,8 @@ export default {
return {
title: APP_TITLE, //Rk: note the 'eslint-disable no-undef' comment above
version: APP_VERSION,
origin: APP_ORIGIN
origin: APP_REPOSITORY,
license: APP_LICENSE
}
}
}

6
src/components/HelloWorld.vue

@ -8,13 +8,9 @@
<script lang="ts">
/* standard composition api */
import { ref } from 'vue'
export default {
props: {
msg: {
type: String,
required: true
}
msg: { type: String, required: true }
},
setup() {
return {

2
src/main.ts

@ -3,8 +3,6 @@ import App from './App.vue'
import './index.css'
// define title and version from package.json
// eslint-disable-next-line no-undef
document.title = APP_TITLE
createApp(App).mount('#app')

3
src/shims-vue.d.ts

@ -12,4 +12,5 @@ declare module "*.vue" {
/* declare const which helps leveraging visibility of defined constants, loaded from `main.ts` file */
declare const APP_VERSION: string
declare const APP_TITLE: string
declare const APP_ORIGIN: string
declare const APP_REPOSITORY: string
declare const APP_LICENSE: string

3
vite.config.ts

@ -7,7 +7,8 @@ export default {
define: {
APP_TITLE: JSON.stringify(pkg.name),
APP_VERSION: JSON.stringify(buildVersion()),
APP_ORIGIN: JSON.stringify(pkg.origin),
APP_REPOSITORY: JSON.stringify(pkg.repository),
APP_LICENSE: JSON.stringify(pkg.license),
}
}

Loading…
Cancel
Save