Skip to content

Commit f0009ae

Browse files
authored
Merge pull request #3 from jotaijs/modernize
modernize repo
2 parents 331e2ce + 6c58605 commit f0009ae

24 files changed

+2649
-18942
lines changed

.eslintignore

-2
This file was deleted.

.eslintrc.json

-122
This file was deleted.

.github/workflows/cd.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: pnpm/action-setup@v2
14+
with:
15+
version: 8.15.0
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 20
19+
registry-url: 'https://registry.npmjs.org'
20+
cache: 'pnpm'
21+
cache-dependency-path: '**/pnpm-lock.yaml'
22+
- run: pnpm install --frozen-lockfile
23+
- run: npm test
24+
- run: npm run compile
25+
- run: npm publish
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/ci.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: pnpm/action-setup@v2
13+
with:
14+
version: 8.15.0
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 20
18+
cache: 'pnpm'
19+
cache-dependency-path: '**/pnpm-lock.yaml'
20+
- run: pnpm install --frozen-lockfile
21+
- run: npm test

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
*~
22
*.swp
3+
.vscode
4+
dist
5+
jotai
36
node_modules
4-
/dist

.prettierignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
*.md
2-
pnpm-lock.yaml
1+
/pnpm-lock.yaml
2+
/dist
3+
README.md

01_typescript/package.json

-27
This file was deleted.

0 commit comments

Comments
 (0)