Skip to content

Commit 75db580

Browse files
committed
feat(init): initialized vite vue3 project
1 parent 11f9341 commit 75db580

30 files changed

+9375
-1
lines changed

.eslintrc.cjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
root: true,
3+
plugins: ['@dvcol/presets'],
4+
extends: ['plugin:@dvcol/presets/vue', 'plugin:@dvcol/presets/jest', 'plugin:@dvcol/presets/vitest'],
5+
// to apply jest linting even-though we use vitest
6+
settings: { jest: { version: 27 } },
7+
};

.gitignore

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ logs
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7+
pnpm-debug.log*
78
lerna-debug.log*
89

910
# Diagnostic reports (https://nodejs.org/api/report.html)
@@ -103,5 +104,13 @@ dist
103104
# TernJS port file
104105
.tern-port
105106

106-
# intellij
107+
# Editor directories and files
108+
.vscode/*
109+
!.vscode/extensions.json
107110
.idea
111+
.DS_Store
112+
*.suo
113+
*.ntvs*
114+
*.njsproj
115+
*.sln
116+
*.sw?

.stylelintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@dvcol/stylelint-plugin-presets/config/vue"]
3+
}

env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

index.html

+13
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"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

package.json

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"name": "@dvcol/traktv-companion",
3+
"version": "0.0.0",
4+
"description": "A basic chrome extension for trakt.tv",
5+
"author": "dvcol",
6+
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/dvcol/traktv-companion.git"
10+
},
11+
"engines": {
12+
"node": ">=16",
13+
"pnpm": ">= 6.32.0"
14+
},
15+
"scripts": {
16+
"prepare": "husky install",
17+
"dev": "vite",
18+
"prod": "vite preview --port 5050",
19+
"build": "vue-tsc --noEmit && vite build",
20+
"test:unit": "vitest run --environment jsdom --coverage",
21+
"test:wartch": "vitest --environment jsdom",
22+
"typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
23+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
24+
"lint:fix": "pnpm run lint --fix",
25+
"release": "standard-version",
26+
"release:changelog": "extract-changelog-release > RELEASE.md"
27+
},
28+
"dependencies": {
29+
"@dvcol/web-extension-utils": "^1.0.3",
30+
"pinia": "^2.0.13",
31+
"vue": "^3.2.33",
32+
"vue-router": "^4.0.14"
33+
},
34+
"devDependencies": {
35+
"@commitlint/cli": "^16.2.3",
36+
"@commitlint/config-conventional": "^16.2.1",
37+
"@dvcol/eslint-plugin-presets": "^1.2.0",
38+
"@dvcol/stylelint-plugin-presets": "^1.1.0",
39+
"@types/chrome": "^0.0.181",
40+
"@types/jsdom": "^16.2.14",
41+
"@types/node": "^16.11.27",
42+
"@vitejs/plugin-vue": "^2.3.1",
43+
"@vue/eslint-config-prettier": "^7.0.0",
44+
"@vue/eslint-config-typescript": "^10.0.0",
45+
"@vue/test-utils": "^2.0.0-rc.20",
46+
"@vue/tsconfig": "^0.1.3",
47+
"c8": "^7.11.2",
48+
"eslint": "^8.5.0",
49+
"extract-changelog-release": "^1.0.2",
50+
"husky": "^7.0.4",
51+
"jsdom": "^19.0.0",
52+
"prettier": "^2.5.1",
53+
"standard-version": "^9.3.2",
54+
"stylelint": "^14.8.1",
55+
"typescript": "~4.6.3",
56+
"vite": "^2.9.5",
57+
"vitest": "^0.9.3",
58+
"vue-tsc": "^0.34.7"
59+
}
60+
}

0 commit comments

Comments
 (0)