Skip to content

Commit d530afa

Browse files
committed
πŸ—οΈ add new vite application to our site
1 parent 3b51ed8 commit d530afa

27 files changed

Lines changed: 432 additions & 0 deletions

β€Ž.eslintrc.cjsβ€Ž

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-essential',
8+
'eslint:recommended',
9+
'@vue/eslint-config-prettier/skip-formatting'
10+
],
11+
parserOptions: {
12+
ecmaVersion: 'latest'
13+
}
14+
}

β€Ž.gitignoreβ€Ž

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
.idea
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?
29+
30+
*.tsbuildinfo

β€Ž.prettierrc.jsonβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"printWidth": 100,
7+
"trailingComma": "none"
8+
}

β€ŽREADME.mdβ€Ž

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# io.github.andrepg
2+
3+
This template should help get you started developing with Vue 3 in Vite.
4+
5+
## Recommended IDE Setup
6+
7+
[VSCode](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+
## Customize configuration
10+
11+
See [Vite Configuration Reference](https://vitejs.dev/config/).
12+
13+
## Project Setup
14+
15+
```sh
16+
npm install
17+
```
18+
19+
### Compile and Hot-Reload for Development
20+
21+
```sh
22+
npm run dev
23+
```
24+
25+
### Compile and Minify for Production
26+
27+
```sh
28+
npm run build
29+
```
30+
31+
### Run Unit Tests with [Vitest](https://vitest.dev/)
32+
33+
```sh
34+
npm run test:unit
35+
```
36+
37+
### Lint with [ESLint](https://eslint.org/)
38+
39+
```sh
40+
npm run lint
41+
```

β€Ž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" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Vite App</title>
8+
</head>
9+
<body>
10+
<div id="app" class="min-h-screen bg-gradient-to-br from-purple-900 to-purple-800"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

β€Žjsconfig.jsonβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
},
7+
"exclude": ["node_modules", "dist"]
8+
}

β€Žpackage.jsonβ€Ž

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "io.github.andrepg",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"test:unit": "vitest",
11+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
12+
"format": "prettier --write src/"
13+
},
14+
"dependencies": {
15+
"vue": "^3.4.15",
16+
"vue-router": "^4.2.5"
17+
},
18+
"devDependencies": {
19+
"@heroicons/vue": "^2.1.1",
20+
"@rushstack/eslint-patch": "^1.3.3",
21+
"@vitejs/plugin-vue": "^5.0.3",
22+
"@vitejs/plugin-vue-jsx": "^3.1.0",
23+
"@vue/eslint-config-prettier": "^8.0.0",
24+
"@vue/test-utils": "^2.4.4",
25+
"autoprefixer": "^10.4.17",
26+
"eslint": "^8.49.0",
27+
"eslint-plugin-vue": "^9.17.0",
28+
"jsdom": "^24.0.0",
29+
"postcss": "^8.4.35",
30+
"prettier": "^3.0.3",
31+
"tailwindcss": "^3.4.1",
32+
"vite": "^5.0.11",
33+
"vitest": "^1.2.2"
34+
}
35+
}

β€Žpostcss.config.jsβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

β€Žpublic/favicon.icoβ€Ž

4.19 KB
Binary file not shown.

β€Žsrc/App.vueβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<script setup>
2+
import {RouterView} from 'vue-router'
3+
import MainHeader from "@/MainHeader.vue";
4+
</script>
5+
6+
<template>
7+
<MainHeader/>
8+
<RouterView />
9+
</template>
10+

0 commit comments

Comments
Β (0)