Skip to content

Commit

Permalink
ref: use vitest (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangWeixian authored May 2, 2022
1 parent f8f30d6 commit 05f51e8
Show file tree
Hide file tree
Showing 5 changed files with 370 additions and 1,968 deletions.
5 changes: 5 additions & 0 deletions .changeset/popular-sheep-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aiou/rollup-template": minor
---

use vitest
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# @aiou/rollup-template
*rollup-template for single lib with condition exports*


![rollup-template](https://realme-ten.vercel.app/api/v1/banner?colorA=7c2d12&colorB=c2410c&textColor=fb923c&title=rollup-template&subtitle=NEO&desc=build%20lib%20with%20condition%20exports)

[![npm](https://img.shields.io/npm/v/@aiou/rollup-template)](https://github.com/neo-hack/rollup-template) [![GitHub](https://img.shields.io/npm/l/@aiou/rollup-template)](https://github.com/neo-hack/rollup-template) [![stackblitz](https://img.shields.io/badge/%E2%9A%A1%EF%B8%8Fstackblitz-online-blue)](https://stackblitz.com/github/neo-hack/rollup-template)

Expand All @@ -13,11 +10,12 @@
- 📦 Exclude `dependencies` and `peerDependencies`, and bundle `devDependencies`
- 💪 Typescript - type safe
- 🃏 Auto setup package condition exports
- ✅ Vitest

## install

```console
pnpm add @aiou/rollup-template
pnpm i @aiou/rollup-template
```

## development
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"scripts": {
"build": "rimraf dist && rollup -c --silent",
"dev": "rollup -c -w --silent",
"test": "jest",
"test": "vitest",
"pretest": "pnpm run build",
"prepare": "husky install",
"release": "pnpm run build && np --no-cleanup --yolo --no-publish --any-branch",
Expand All @@ -54,13 +54,11 @@
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-commonjs": "^21.0.2",
"@rollup/plugin-node-resolve": "^13.1.3",
"@types/jest": "27.0.2",
"@types/node": "^17.0.22",
"cz-emoji": "^1.3.1",
"eslint": "^8.11.0",
"esrua": "^0.2.1",
"husky": "^7.0.4",
"jest": "27.2.5",
"lint-staged": "^11.2.6",
"prettier": "2.4.1",
"rimraf": "3.0.2",
Expand All @@ -69,10 +67,9 @@
"rollup-plugin-filesize": "^9.1.2",
"rollup-plugin-node-externals": "^4.0.0",
"rollup-plugin-typescript2": "0.31.2",
"ts-jest": "27.0.5",
"ts-node": "10.2.1",
"tslib": "2.4.0",
"typescript": "4.4.3"
"typescript": "4.4.3",
"vitest": "^0.10.0"
},
"config": {
"commitizen": {
Expand Down
Loading

0 comments on commit 05f51e8

Please sign in to comment.