-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add vite project with example app for development
- Loading branch information
0 parents
commit 606010c
Showing
12 changed files
with
16,598 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"node": true, | ||
"vue/setup-compiler-macros": true | ||
}, | ||
"parser": "vue-eslint-parser", | ||
"parserOptions": { | ||
"parser": "@typescript-eslint/parser" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"prettier", | ||
"import" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:vue/vue3-recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"], | ||
"newlines-between": "never" | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.vue","*.ts", "*.js", "*.mjs"] | ||
} | ||
], | ||
"ignorePatterns": ["node_modules", "dist", "coverage"], | ||
"settings": { | ||
"import/internal-regex": "^@/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
dist | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "es5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# vite-plugin-vue-examples | ||
|
||
## Development | ||
|
||
Install nvm [https://github.com/nvm-sh/nvm#installing-and-updating](https://github.com/nvm-sh/nvm#installing-and-updating) | ||
|
||
Install and initialize node with version used in project | ||
``` | ||
nvm install | ||
npm install | ||
``` | ||
|
||
Run example app locally | ||
``` | ||
npm run dev | ||
``` | ||
|
||
Build app locally (bundle will be created in `/dist` folder) | ||
``` | ||
npm run build | ||
``` | ||
|
||
Check code format issues | ||
``` | ||
npm run lint | ||
``` | ||
|
||
Fix automatically fixable format/lint issues | ||
``` | ||
npm run fix | ||
``` | ||
|
||
Check typescript types | ||
``` | ||
npm run check-types | ||
``` | ||
|
||
Run vitest test runner in watch mode | ||
``` | ||
npm run test | ||
``` | ||
|
||
Check format/lint issues, typescript types and run tests | ||
``` | ||
npm run verify | ||
``` | ||
|
||
### Dependencies | ||
|
||
Check for updated dependencies | ||
``` | ||
npx npm-check-updates | ||
``` | ||
|
||
Update version in package.json | ||
``` | ||
npx npm-check-updates -u | ||
``` | ||
|
||
Updated modules and package-lock file | ||
``` | ||
npm update | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<h1>Example App for vite-plugin-vue-examples</h1> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { createApp } from 'vue' | ||
import App from './App.vue' | ||
|
||
createApp(App).mount('#app') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite Plugin Vue Examples</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="example/main.ts"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.