Skip to content

Commit bbef8a8

Browse files
authored
feat: finalization (#4)
1 parent aee0186 commit bbef8a8

28 files changed

+4706
-2133
lines changed

.eslintrc.json

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

.github/workflows/ci.yml

Lines changed: 61 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,61 @@
1-
name: CLI Completion Tests
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
10-
11-
jobs:
12-
test:
13-
strategy:
14-
matrix:
15-
os: [ubuntu-latest, macos-latest, windows-latest]
16-
runs-on: ${{ matrix.os }}
17-
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v4
21-
22-
- name: Install pnpm
23-
uses: pnpm/[email protected]
24-
with:
25-
version: 8
26-
27-
- name: Set node version to 20
28-
uses: actions/setup-node@v4
29-
with:
30-
node-version: 20
31-
registry-url: https://registry.npmjs.org/
32-
cache: "pnpm"
33-
34-
- name: Install deps
35-
run: pnpm install
36-
37-
- name: Run tests
38-
run: pnpm test
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: Tests
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Install pnpm
24+
uses: pnpm/[email protected]
25+
26+
- name: Set node version to 20
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
registry-url: https://registry.npmjs.org/
31+
cache: 'pnpm'
32+
33+
- name: Install deps
34+
run: pnpm install
35+
36+
- name: Run tests
37+
run: pnpm test
38+
39+
typecheck:
40+
name: Type Check
41+
runs-on: ubuntu-latest
42+
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v4
46+
47+
- name: Install pnpm
48+
uses: pnpm/[email protected]
49+
50+
- name: Set node version to 20
51+
uses: actions/setup-node@v4
52+
with:
53+
node-version: 20
54+
registry-url: https://registry.npmjs.org/
55+
cache: pnpm
56+
57+
- name: Install deps
58+
run: pnpm install
59+
60+
- name: Type-check
61+
run: pnpm type-check

.github/workflows/format.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Prettier Check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
prettier:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Install pnpm
14+
uses: pnpm/[email protected]
15+
16+
- name: Set node version to 20
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
registry-url: https://registry.npmjs.org/
21+
cache: pnpm
22+
23+
- name: Install deps
24+
run: pnpm install
25+
26+
- name: Run Prettier Check
27+
run: npm run format:check

.github/workflows/pkg.pr.new.yml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
name: pkg.pr.new
2-
on: [push, pull_request]
3-
4-
jobs:
5-
build:
6-
runs-on: ubuntu-latest
7-
8-
steps:
9-
- name: Checkout
10-
uses: actions/checkout@v4
11-
12-
- name: Install pnpm
13-
uses: pnpm/[email protected]
14-
with:
15-
version: 8
16-
17-
- name: Set node version to 20
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: 20
21-
registry-url: https://registry.npmjs.org/
22-
cache: "pnpm"
23-
24-
- name: Install deps
25-
run: pnpm install
26-
27-
- run: pnpx pkg-pr-new publish
1+
name: pkg.pr.new
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
12+
- name: Install pnpm
13+
uses: pnpm/[email protected]
14+
15+
- name: Set node version to 20
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
registry-url: https://registry.npmjs.org/
20+
cache: 'pnpm'
21+
22+
- name: Install deps
23+
run: pnpm install
24+
25+
- run: pnpx pkg-pr-new publish

.prettierignore

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

.prettierrc

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

0 commit comments

Comments
 (0)