Skip to content

Commit fbfc352

Browse files
committed
chore: init
0 parents  commit fbfc352

26 files changed

+4784
-0
lines changed

.eslintignore

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

.eslintrc

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

.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: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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@v2
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@v2
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

.github/workflows/cr.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Code Review
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
pull_request:
9+
types: [opened, reopened, synchronize]
10+
11+
jobs:
12+
test:
13+
if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: anc95/ChatGPT-CodeReview@main
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
20+
# Optional
21+
LANGUAGE: Chinese
22+
MODEL:
23+
top_p: 1
24+
temperature: 1

.github/workflows/release.yml

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

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.cache
2+
.DS_Store
3+
.idea
4+
*.log
5+
*.tgz
6+
*.vsix
7+
coverage
8+
dist
9+
lib-cov
10+
logs
11+
node_modules
12+
temp
13+
.eslintcache

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore-workspace-root-check=true
2+
node-linker=hoisted

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"amodio.tsl-problem-matcher"
4+
]
5+
}

.vscode/launch.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": [
10+
"--extensionDevelopmentPath=${workspaceFolder}"
11+
],
12+
"outFiles": [
13+
"${workspaceFolder}/dist/**/*.js"
14+
],
15+
"preLaunchTask": "npm: dev"
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)