Skip to content

Commit 79c085c

Browse files
authored
v1.0.0 (#93)
1 parent dfe0012 commit 79c085c

Some content is hidden

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

72 files changed

+2494
-937
lines changed

.github/contributing.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
1212
## Prerequisites
1313

14-
- [Node.js](https://nodejs.org) (>= 14.17)
15-
- [npm](https://www.npmjs.com) (>= 6.14)
14+
- [Node.js](https://nodejs.org) (>= 16.13)
15+
- [npm](https://www.npmjs.com) (>= 7.x)
16+
- [pnpm](https://pnpm.io) (>= 6.x)
1617
- [yarn](https://yarnpkg.com) (>= 1.22)
1718
- [Git](https://git-scm.com) (>= 2.20)
1819

@@ -22,6 +23,7 @@
2223
$ git clone https://github.com/zce/caz.git
2324
$ cd caz
2425
$ npm install
26+
$ npm run build
2527
$ npm link
2628
```
2729

.github/workflows/main.yml

+8-17
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,30 @@ on: [push, pull_request]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
98
strategy:
109
matrix:
11-
node-version: [12, 14, 16]
12-
10+
node-version: [14, 16, 17]
1311
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
1614
with:
1715
node-version: ${{ matrix.node-version }}
16+
- run: npm i pnpm yarn -g
17+
- run: git config --global user.name "GitHub Actions"
18+
- run: git config --global user.email "[email protected]"
1819
- run: npm install
1920
- run: npm run lint
2021
- run: npm run build
2122
- run: npm run test
22-
23-
codecov:
24-
if: github.ref == 'refs/heads/main'
25-
needs: build
26-
runs-on: ubuntu-latest
27-
steps:
28-
- uses: actions/checkout@v2
29-
- uses: actions/setup-node@v2
30-
- run: npm install
31-
- run: npm run test
3223
- run: npx codecov
3324

3425
publish:
3526
if: startsWith(github.ref, 'refs/tags')
3627
needs: build
3728
runs-on: ubuntu-latest
3829
steps:
39-
- uses: actions/checkout@v2
40-
- uses: actions/setup-node@v2
30+
- uses: actions/checkout@v3
31+
- uses: actions/setup-node@v3
4132
with:
4233
registry-url: https://registry.npmjs.org
4334
- run: npm install

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
node_modules
44

5-
/lib
5+
/dist
66

77
/coverage
88
/test/.temp
99

1010
package-lock.json
11+
pnpm-lock.yaml
1112
yarn.lock

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## [1.0.0] - 2022-03-24
4+
5+
- zero dependency by tsup
6+
- node v14.14.0 required
7+
- auto install template dependencies
8+
- support native esm
9+
- upgrade all dependencies
10+
- refactor test
11+
- chore: minify output dist
12+
- docs: chinese docs
13+
- fix: dts output
14+
315
## [0.8.2] - 2022-01-20
416

517
- fix: output types.d.ts
@@ -84,6 +96,7 @@
8496

8597
<!-- http://keepachangelog.com/ -->
8698

99+
[1.0.0]: https://github.com/zce/caz/compare/v0.8.2...v1.0.0
87100
[0.8.2]: https://github.com/zce/caz/compare/v0.8.1...v0.8.2
88101
[0.8.1]: https://github.com/zce/caz/compare/v0.8.0...v0.8.1
89102
[0.8.0]: https://github.com/zce/caz/compare/v0.7.0...v0.8.0

0 commit comments

Comments
 (0)