Skip to content

Commit 7ea0bd0

Browse files
committed
chore: init
1 parent e3c1215 commit 7ea0bd0

32 files changed

Lines changed: 7600 additions & 1 deletion

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
open_collective: antfu
2+
github: [antfu]

.github/workflows/test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
16+
timeout-minutes: 10
17+
18+
strategy:
19+
matrix:
20+
node_version: [lts/*]
21+
os: [ubuntu-latest, windows-latest]
22+
fail-fast: false
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: pnpm/action-setup@v4
27+
28+
- name: Set node version to ${{ matrix.node_version }}
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: ${{ matrix.node_version }}
32+
cache: pnpm
33+
34+
- name: Install
35+
run: pnpm i
36+
37+
- name: Build
38+
run: pnpm run build
39+
40+
- name: Test
41+
run: pnpm run test
42+
43+
- name: Lint
44+
run: pnpm run lint
45+
46+
- name: TypeCheck
47+
run: pnpm run typecheck

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.DS_Store
2+
.vite-ssg-dist
3+
.vite-ssg-temp
4+
*.local
5+
dist
6+
dist-ssr
7+
node_modules
8+
.idea/
9+
*.log
10+
11+
auto-imports.d.ts
12+
components.d.ts

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"EditorConfig.EditorConfig"
6+
]
7+
}

.vscode/settings.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"files.associations": {
3+
"*.css": "postcss"
4+
},
5+
6+
// Enable the ESlint flat config support
7+
"eslint.experimental.useFlatConfig": true,
8+
9+
// Disable the default formatter
10+
"prettier.enable": false,
11+
"editor.formatOnSave": false,
12+
13+
// Auto fix
14+
"editor.codeActionsOnSave": {
15+
"source.fixAll.eslint": "explicit",
16+
"source.organizeImports": "never"
17+
},
18+
19+
// Silent the stylistic rules in you IDE, but still auto fix them
20+
"eslint.rules.customizations": [
21+
{ "rule": "style/*", "severity": "off" },
22+
{ "rule": "*-indent", "severity": "off" },
23+
{ "rule": "*-spacing", "severity": "off" },
24+
{ "rule": "*-spaces", "severity": "off" },
25+
{ "rule": "*-order", "severity": "off" },
26+
{ "rule": "*-dangle", "severity": "off" },
27+
{ "rule": "*-newline", "severity": "off" },
28+
{ "rule": "*quotes", "severity": "off" },
29+
{ "rule": "*semi", "severity": "off" }
30+
],
31+
32+
// The following is optional.
33+
// It's better to put under project setting `.vscode/settings.json`
34+
// to avoid conflicts with working with different eslint configs
35+
// that does not support all formats.
36+
"eslint.validate": [
37+
"javascript",
38+
"javascriptreact",
39+
"typescript",
40+
"typescriptreact",
41+
"vue",
42+
"html",
43+
"markdown",
44+
"json",
45+
"jsonc",
46+
"yaml"
47+
]
48+
}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# element-plus-demo
2-
Sandbox demo
2+
3+
Sandbox demo fork of vitesse-lite

eslint.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu(
4+
{
5+
formatters: true,
6+
pnpm: true,
7+
},
8+
)

index.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
7+
<title>ElementPlus Demo</title>
8+
<meta name="description" content="ElementPlus Demo" />
9+
</head>
10+
<body class="font-sans dark:text-white dark:bg-hex-121212">
11+
<div id="app"></div>
12+
<noscript>
13+
<div>Please enable JavaScript to use this application.</div>
14+
</noscript>
15+
<script>
16+
;(function () {
17+
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
18+
const setting = localStorage.getItem('color-schema') || 'auto'
19+
if (setting === 'dark' || (prefersDark && setting !== 'light'))
20+
document.documentElement.classList.toggle('dark', true)
21+
})()
22+
</script>
23+
<script type="module" src="/src/main.ts"></script>
24+
</body>
25+
</html>

0 commit comments

Comments
 (0)