Skip to content

Commit

Permalink
v1.0.0 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
zce authored Mar 24, 2022
1 parent dfe0012 commit 79c085c
Show file tree
Hide file tree
Showing 72 changed files with 2,494 additions and 937 deletions.
6 changes: 4 additions & 2 deletions .github/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
## Prerequisites

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

Expand All @@ -22,6 +23,7 @@
$ git clone https://github.com/zce/caz.git
$ cd caz
$ npm install
$ npm run build
$ npm link
```

Expand Down
25 changes: 8 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,30 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12, 14, 16]

node-version: [14, 16, 17]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i pnpm yarn -g
- run: git config --global user.name "GitHub Actions"
- run: git config --global user.email "bots@github.com"
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm run test

codecov:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm install
- run: npm run test
- run: npx codecov

publish:
if: startsWith(github.ref, 'refs/tags')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org
- run: npm install
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

node_modules

/lib
/dist

/coverage
/test/.temp

package-lock.json
pnpm-lock.yaml
yarn.lock
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## [1.0.0] - 2022-03-24

- zero dependency by tsup
- node v14.14.0 required
- auto install template dependencies
- support native esm
- upgrade all dependencies
- refactor test
- chore: minify output dist
- docs: chinese docs
- fix: dts output

## [0.8.2] - 2022-01-20

- fix: output types.d.ts
Expand Down Expand Up @@ -84,6 +96,7 @@

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

[1.0.0]: https://github.com/zce/caz/compare/v0.8.2...v1.0.0
[0.8.2]: https://github.com/zce/caz/compare/v0.8.1...v0.8.2
[0.8.1]: https://github.com/zce/caz/compare/v0.8.0...v0.8.1
[0.8.0]: https://github.com/zce/caz/compare/v0.7.0...v0.8.0
Expand Down
Loading

0 comments on commit 79c085c

Please sign in to comment.