Skip to content

Commit 80608ca

Browse files
committed
feat: initial repository
0 parents  commit 80608ca

16 files changed

+1540
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
10+
[{.*.min.js.map,.husky/.gitignore}]
11+
insert_final_newline = false
12+
13+
[{*.svg}]
14+
indent_size = unset

.eslintignore

Whitespace-only changes.

.eslintrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:prettier/recommended",
8+
"plugin:@typescript-eslint/recommended"
9+
],
10+
"rules": {}
11+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test
5+
npm lint:fix

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 80,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "all",
6+
"arrowParens": "avoid"
7+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"cSpell.words": [
3+
"esbuild",
4+
"Lich",
5+
"Parens",
6+
"vite",
7+
"vitest"
8+
]
9+
}

global.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* @Author: DM
3+
* @Date: 2022-01-14 13:40:08
4+
* @LastEditors: DM
5+
* @LastEditTime: 2022-01-14 13:43:26
6+
* @Descriptions:
7+
* @FilePath: /components/global.d.ts
8+
*/

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Lich Component</title>
8+
</head>
9+
<body>
10+
<div id="app">
11+
<script type="module" src="/src/main.ts"></script>
12+
</div>
13+
</body>
14+
</html>

package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "components",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"prepare": "husky install",
11+
"test": "vitest run",
12+
"lint": "eslint ./src/** --ext .js,.jsx,.ts,.tsx",
13+
"lint:fix": "eslint ./src/** --ext .js,.jsx,.ts,.tsx --fix",
14+
"test:ui": "vitest --ui"
15+
},
16+
"keywords": [],
17+
"author": "",
18+
"license": "ISC",
19+
"devDependencies": {
20+
"@typescript-eslint/eslint-plugin": "^5.9.1",
21+
"@typescript-eslint/parser": "^5.9.1",
22+
"@vitest/ui": "^0.1.12",
23+
"eslint": "^8.6.0",
24+
"eslint-config-prettier": "^8.3.0",
25+
"eslint-plugin-prettier": "^4.0.0",
26+
"husky": "^7.0.4",
27+
"prettier": "^2.5.1",
28+
"typescript": "^4.5.4",
29+
"vite": "^2.7.12",
30+
"vitest": "^0.1.12"
31+
}
32+
}

0 commit comments

Comments
 (0)