Skip to content

Commit

Permalink
feat: vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaochenchen-igg-com committed Apr 23, 2022
1 parent 48390cf commit 0dfc637
Show file tree
Hide file tree
Showing 5 changed files with 700 additions and 691 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ dist-ssr
*.local
# tests
coverage
# __snapshots__/
__snapshots__/
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,29 @@

- 🦾 Resolve all resource files dynamic publicPath, like Webpack's `__webpack_public_path__`.


## Installation

```bash
npm i vite-plugin-dynamic-base -D
```


## Changelog

### 0.3.0

_2022-04-23_

#### Features

- setup simple unit tests with `vitest`. (#5 by @zhoujinfu)

#### Bug fixes

- import.env.LEGACY cause undefined errors with vite config `define`. (#5 by @zhoujinfu)


## Build Mode

- [x] es
Expand Down
15 changes: 15 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
```bash
npm i vite-plugin-dynamic-base -D
```

## 变更日志

### 0.3.0

_2022-04-23_

#### 新特性

- 添加简单的单元测试 `vitest`. (#5 by @zhoujinfu)

#### Bug fixes

- import.env.LEGACY 未定义的错误. (#5 by @zhoujinfu)

## 编译模式

- [x] es
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "vitest run",
"coverage": "vitest run --coverage",
"tdd": "vitest -w",
"update": "vitest run --update"
"snap": "vitest run --update"
},
"files": [
"dist"
Expand All @@ -25,14 +25,14 @@
},
"homepage": "https://github.com/chenxch/vite-plugin-dynamic-base",
"devDependencies": {
"@types/node": "^16.0.0",
"@types/node": "^16.11.27",
"c8": "^7.11.2",
"typescript": "^4.6.3",
"vite": "^2.4.0",
"vite": "^2.9.5",
"vitest": "^0.9.4"
},
"dependencies": {
"node-html-parser": "^5.2.0"
"node-html-parser": "^5.3.3"
},
"keywords": [
"vite",
Expand Down
Loading

0 comments on commit 0dfc637

Please sign in to comment.