Skip to content

Commit

Permalink
feat: support --incremental for dev (#768)
Browse files Browse the repository at this point in the history
* feat: support --watch-only

* docs: update

* chore: use tsx instead esno

* build: release 4.0.0-canary.20240731.1

* build: release 4.0.0-canary.20240731.2

* fix: don't clean when watchOnly is supplied

* build: release 4.0.0-canary.20240801.1

* chore: [email protected]

* chore: --watch-only > --incremental

* docs: update

---------

Co-authored-by: Peach <[email protected]>
  • Loading branch information
sorrycc and PeachScript authored Aug 1, 2024
1 parent 515b136 commit dd7d676
Show file tree
Hide file tree
Showing 7 changed files with 462 additions and 443 deletions.
2 changes: 2 additions & 0 deletions docs/guide/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
```bash
# 执行 dev 命令,开启实时编译
$ father dev
# 跳过初次全量构建,只监听文件变化执行增量构建
$ father dev --incremental
```

一旦源码或配置文件发生变化,产物将会实时增量编译到输出目录。
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dev": "pnpm build --watch",
"format": "prettier --write .",
"prepare": "husky install",
"release": "esno scripts/release.ts",
"release": "tsx scripts/release.ts",
"test": "jest",
"test:cov": "jest --collectCoverage"
},
Expand All @@ -43,12 +43,12 @@
},
"dependencies": {
"@microsoft/api-extractor": "7.39.1",
"@umijs/babel-preset-umi": "^4.3.5",
"@umijs/bundler-utils": "^4.3.5",
"@umijs/bundler-webpack": "^4.3.5",
"@umijs/babel-preset-umi": "^4.3.10",
"@umijs/bundler-utils": "^4.3.10",
"@umijs/bundler-webpack": "^4.3.10",
"@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
"@umijs/core": "^4.3.5",
"@umijs/utils": "^4.3.5",
"@umijs/core": "^4.3.10",
"@umijs/utils": "^4.3.10",
"@vercel/ncc": "0.33.3",
"babel-plugin-dynamic-import-node": "2.3.3",
"babel-plugin-module-resolver": "4.1.0",
Expand All @@ -74,7 +74,6 @@
"@types/minimatch": "3.0.5",
"@types/node": "^18.15.13",
"@umijs/test": "^4.0.68",
"esno": "^0.16.3",
"git-repo-info": "^2.1.1",
"husky": "^8.0.3",
"jest": "^27",
Expand All @@ -85,6 +84,7 @@
"prettier-plugin-packagejson": "^2.4.3",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"tsx": "^4.16.3",
"zx": "^4.3.0"
},
"packageManager": "[email protected]",
Expand Down
Loading

0 comments on commit dd7d676

Please sign in to comment.