Skip to content

Commit 26dbe84

Browse files
committed
chore: init
0 parents  commit 26dbe84

Some content is hidden

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

58 files changed

+7710
-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

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
pnpm-lock.yaml
4+
!.*

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@antfu"
3+
}

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* text=auto eol=lf
2+
*.ts linguist-detectable=false
3+
*.css linguist-detectable=false
4+
*.scss linguist-detectable=false
5+
*.js linguist-detectable=true
6+
*.vue linguist-detectable=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']
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: 🐞 Bug report
2+
description: Report an issue with vitepress
3+
labels: [pending triage]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report!
9+
- type: textarea
10+
id: bug-description
11+
attributes:
12+
label: Describe the bug
13+
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
14+
placeholder: I am doing ... What I expect is ... What actually happening is ...
15+
validations:
16+
required: true
17+
- type: input
18+
id: reproduction
19+
attributes:
20+
label: Reproduction
21+
description: Please provide a link via [vite.new](https://vite.new/) or a link to a repo that can reproduce the problem you ran into. `npm create vite@latest` and `npm create vite-extra@latest` (for SSR or library repros) can be used as a starter template. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required ([Why?](https://antfu.me/posts/why-reproductions-are-required)). If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "need reproduction" label. If no reproduction is provided after 3 days, it will be auto-closed.
22+
placeholder: Reproduction URL and steps
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: system-info
27+
attributes:
28+
label: System Info
29+
description: Output of `npx envinfo --system --npmPackages '{vite,@vitejs/*}' --binaries --browsers`
30+
render: shell
31+
placeholder: System, Binaries, Browsers
32+
validations:
33+
required: true
34+
- type: dropdown
35+
id: package-manager
36+
attributes:
37+
label: Used Package Manager
38+
description: Select the used package manager
39+
options:
40+
- npm
41+
- yarn
42+
- pnpm
43+
validations:
44+
required: true
45+
- type: textarea
46+
id: logs
47+
attributes:
48+
label: Logs
49+
description: |
50+
Optional if provided reproduction. Please try not to insert an image but copy paste the log text.
51+
52+
1. Run `vite` or `vite build` with the `--debug` flag.
53+
2. Provide the error log here in the format below.
54+
55+
````
56+
<details>
57+
<summary>Click to expand!</summary>
58+
59+
```shell
60+
// paste the log text here
61+
```
62+
</details>
63+
````

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Discord Chat
4+
url: https://discord.gg/vkzdkjeRCW
5+
about: Ask questions and discuss with other Vite users in real time.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 🚀 New feature proposal
2+
description: Propose a new feature to be added to vitepress
3+
labels: ['enhancement: pending triage']
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for your interest in the project and taking the time to fill out this feature report!
9+
- type: textarea
10+
id: feature-description
11+
attributes:
12+
label: Description
13+
description: 'Clear and concise description of the problem. Please make the reason and usecases as detailed as possible. If you intend to submit a PR for this issue, tell us in the description. Thanks!'
14+
placeholder: As a developer using Vite I want [goal / wish] so that [benefit].
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: suggested-solution
19+
attributes:
20+
label: Suggested solution
21+
description: 'In module [xy] we could provide following implementation...'
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: alternative
26+
attributes:
27+
label: Alternative
28+
description: Clear and concise description of any alternative solutions or features you've considered.
29+
- type: textarea
30+
id: additional-context
31+
attributes:
32+
label: Additional context
33+
description: Any other context or screenshots about the feature request here.

.github/workflows/code-review.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Code Review
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
pull_request_target:
9+
branches:
10+
- master
11+
- release-*
12+
paths-ignore:
13+
- 'docs/**'
14+
- '**.md'
15+
16+
jobs:
17+
code-review:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: oilbeater/ChatGPT-CodeReview@main
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
24+
MODEL: gpt-3.5-turbo
25+
top_p: 1
26+
temperature: 0.1

.github/workflows/test.yml

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

0 commit comments

Comments
 (0)