Skip to content

Commit 1c68c81

Browse files
committed
first commit
0 parents  commit 1c68c81

File tree

93 files changed

+4059
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+4059
-0
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
*.js
3+
dist

.eslintrc.cjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
amd: true,
5+
node: true,
6+
},
7+
extends: [
8+
// add more generic rulesets here, such as:
9+
'eslint:recommended',
10+
'plugin:@typescript-eslint/recommended',
11+
'plugin:vue/vue3-recommended',
12+
'@vue/eslint-config-typescript',
13+
'@vue/eslint-config-prettier',
14+
// 'plugin:vue/recommended' // Use this if you are using Vue.js 2.x.
15+
],
16+
parser: 'vue-eslint-parser',
17+
parserOptions: {
18+
parser: '@typescript-eslint/parser',
19+
},
20+
21+
plugins: ['@typescript-eslint', 'prettier'],
22+
23+
rules: {
24+
'prettier/prettier': 'error',
25+
'no-unused-vars': 'off',
26+
'@typescript-eslint/no-unused-vars': [
27+
'error', // or "error"
28+
{
29+
argsIgnorePattern: '^_',
30+
varsIgnorePattern: '^_',
31+
caughtErrorsIgnorePattern: '^_',
32+
},
33+
],
34+
},
35+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

.prettierignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
**/dist
2+
**/node_modules
3+
**/coverage
4+
**/build
5+
6+
.github
7+
.yarn
8+
.vscode
9+
10+
yarn.lock
11+
LICENSE.md
12+
README.md
13+
CONTRIBUTING.md
14+
15+
**/e2e/vendor
16+
**/playwright-report
17+
18+
examples

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"bracketSpacing": true,
3+
"jsxSingleQuote": false,
4+
"printWidth": 120,
5+
"proseWrap": "always",
6+
"semi": false,
7+
"singleQuote": true,
8+
"tabWidth": 2,
9+
"trailingComma": "all"
10+
}
11+

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3+
}

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Vue 3 + TypeScript + Vite
2+
3+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
## Recommended IDE Setup
6+
7+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
8+
9+
## Type Support For `.vue` Imports in TS
10+
11+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
12+
13+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
14+
15+
1. Disable the built-in TypeScript Extension
16+
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17+
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "faucet-front",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vue-tsc && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@vueuse/core": "^10.7.2",
13+
"gsap": "^3.12.5",
14+
"pinia": "^2.1.7",
15+
"vue": "^3.4.15",
16+
"vue-router": "^4.2.5",
17+
"vue3-lottie": "^3.2.0"
18+
},
19+
"devDependencies": {
20+
"@typescript-eslint/eslint-plugin": "^6.13.2",
21+
"@typescript-eslint/parser": "^6.13.2",
22+
"@vitejs/plugin-vue": "^5.0.3",
23+
"autoprefixer": "^10.4.16",
24+
"eslint": "^8.55.0",
25+
"eslint-plugin-prettier": "^5.0.1",
26+
"postcss": "^8.4.32",
27+
"prettier": "^3.1.0",
28+
"tailwindcss": "^3.4.1",
29+
"typescript": "^5.2.2",
30+
"vite": "^5.1.0",
31+
"vue-tsc": "^1.8.27"
32+
}
33+
}

0 commit comments

Comments
 (0)