Skip to content

Commit

Permalink
feat: update dependencies & add dev script
Browse files Browse the repository at this point in the history
  • Loading branch information
yzh990918 committed Feb 23, 2023
1 parent 6fddfdc commit 2445fa6
Show file tree
Hide file tree
Showing 9 changed files with 419 additions and 36 deletions.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ rush add -p @vbs/magic-cli-utils -all
npm run start
```

## 开发环境调试

```shell
npm run dev
```

## 打包

```shell
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"bootstrap": "zi && rush update",
"build": "rush build",
"start": "zr build && cd packages/core && pnpm link -g",
"dev": "pnpm -r --parallel --filter=./packages/* run stub",
"docs": "pnpm -C docs run dev",
"docs:build": "pnpm run -C docs build",
"lint": "eslint packages --fix",
Expand All @@ -26,11 +27,11 @@
"@vbs/eslint-config": "^1.0.0",
"bumpp": "^8.2.1",
"consola": "^2.15.3",
"eslint": "^8.23.0",
"eslint": "^8.34.0",
"husky": "^7.0.4",
"lint-staged": "^10.5.4",
"vitepress": "1.0.0-alpha.12",
"vitest": "^0.10.5",
"vitest": "^0.28.5",
"za-zi": "^0.0.10"
},
"lint-staged": {
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export async function prepare() {

spinner.start()
try {
// TODO: 构建环境异常测试
rootCheck()
checkUserHome(homePath)
checkEnv()
Expand Down
3 changes: 2 additions & 1 deletion packages/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"scripts": {
"dev": "unbuild -w",
"build": "unbuild",
"test": "vitest"
"test": "vitest",
"stub": "unbuild --stub"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/models/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"scripts": {
"dev": "unbuild -w",
"build": "unbuild",
"test": "vitest"
"test": "vitest",
"stub": "unbuild --stub"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"scripts": {
"dev": "unbuild -w",
"build": "unbuild",
"test": "vitest"
"test": "vitest",
"stub": "unbuild --stub"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"scripts": {
"dev": "unbuild -w",
"build": "unbuild",
"test": "vitest"
"test": "vitest",
"stub": "unbuild --stub"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 2445fa6

Please sign in to comment.