Skip to content

Commit 95ad80e

Browse files
committed
chore: init
0 parents  commit 95ad80e

Some content is hidden

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

65 files changed

+9977
-0
lines changed

.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+
github: Simon-He95
2+
custom: ['https://github.com/Simon-He95/sponsor']

.github/workflows/ci.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set node
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 16.x
21+
22+
- name: Setup
23+
run: npm i -g @antfu/ni
24+
25+
- name: Install
26+
run: nci
27+
28+
- name: Lint
29+
run: nr lint
30+
31+
typecheck:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v3
35+
- name: Set node
36+
uses: actions/setup-node@v3
37+
with:
38+
node-version: 16.x
39+
40+
- name: Setup
41+
run: npm i -g @antfu/ni
42+
43+
- name: Install
44+
run: nci
45+
46+
- name: Typecheck
47+
run: nr typecheck
48+
49+
test:
50+
runs-on: ${{ matrix.os }}
51+
52+
strategy:
53+
matrix:
54+
node: [14.x, 16.x]
55+
os: [ubuntu-latest, windows-latest, macos-latest]
56+
fail-fast: false
57+
58+
steps:
59+
- uses: actions/checkout@v3
60+
- name: Set node ${{ matrix.node }}
61+
uses: actions/setup-node@v3
62+
with:
63+
node-version: ${{ matrix.node }}
64+
65+
- name: Setup
66+
run: npm i -g @antfu/ni
67+
68+
- name: Install
69+
run: nci
70+
71+
- name: Build
72+
run: nr build
73+
74+
- name: Test
75+
run: nr test

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 16.x
19+
20+
- run: npx changelogithub
21+
env:
22+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
*.DS_Store
2+
node_modules
3+
*.log
4+
idea/
5+
*.local
6+
.DS_Store
7+
dist
8+
.cache
9+
.idea
10+
.history
11+
logs
12+
&-debug.log
13+
*-error.log
14+
.eslintcache
15+
tmp
16+

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-workspace-root-check=true

.prettierignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
packages/*/CHANGELOG.md
2+
playground-temp/
3+
dist/
4+
temp/
5+
LICENSE.md
6+
pnpm-lock.yaml
7+
pnpm-workspace.yaml
8+
playground/tsconfig-json-load-error/has-error/tsconfig.json
9+
playground/html/invalid.html
10+
playground/html/valid.html
11+
playground/worker/classic-worker.js
12+
.history

.prettierrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"semi": false,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"printWidth": 80,
6+
"trailingComma": "all",
7+
"overrides": [
8+
{
9+
"files": ["*.json5"],
10+
"options": {
11+
"singleQuote": false,
12+
"quoteProps": "preserve"
13+
}
14+
},
15+
{
16+
"files": ["*.yml"],
17+
"options": {
18+
"singleQuote": false
19+
}
20+
}
21+
]
22+
}

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Vitesse
2+
3+
## :coffee:
4+
5+
[buy me a cup of coffee](https://github.com/Simon-He95/sponsor)
6+
7+
## License
8+
9+
[MIT](./license)
10+
11+
## Sponsors
12+
13+
<p align="center">
14+
<a href="https://cdn.jsdelivr.net/gh/Simon-He95/sponsor/sponsors.svg">
15+
<img src="https://cdn.jsdelivr.net/gh/Simon-He95/sponsor/sponsors.png"/>
16+
</a>
17+
</p>

cli.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env node --no-warnings
2+
import('./dist/index.js')

0 commit comments

Comments
 (0)