Skip to content

Commit 025ed07

Browse files
committed
fix(adev): 添加本地构建脚本
1 parent c942959 commit 025ed07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
"devtools:test": "bazelisk test --//devtools/projects/shell-browser/src:flag_browser=chrome -- //devtools/...",
4444
"docs": "[[ -n $CI ]] && echo 'Cannot run this yarn script on CI' && exit 1 || yarn ibazel run //adev:serve",
4545
"docs:build": "[[ -n $CI ]] && echo 'Cannot run this yarn script on CI' && exit 1 || yarn bazel build //adev:build",
46-
"docs:build-release": "nvm use 20 && yarn bazel build //adev:build --full_build_adev --config=release",
47-
"docs:writable": "sudo chmod +w -R dist/bin/adev/build && find dist/bin/adev/build -type f -name \"index.html\" | grep -v \"/assets/\" | xargs rm -f && mv index.csr.html index.html",
48-
"docs:remove-prerender": "find dist/bin/adev/build -type f -name \"index.html\" | grep -v \"/assets/\" | xargs rm -f && mv index.csr.html index.html",
46+
"docs:build-release": "yarn bazel build //adev:build --full_build_adev --config=release",
47+
"docs:writable": "sudo chmod +w -R dist/bin/adev/build/browser",
48+
"docs:remove-prerender": "cd dist/bin/adev/build/browser && find . -type f -name \"index.html\" | grep -v \"/assets/\" | xargs rm -f && mv index.csr.html index.html",
4949
"docs:copy-to-host": " rsync -avr dist/bin/adev/build/browser/ /mnt/f/work/translation/v19.angular.cn-csr",
5050
"docs:build-local": "npm run docs:build-release && npm run docs:writable && npm run docs:remove-prerender && npm run docs:copy-to-host",
5151
"benchmarks": "tsx --tsconfig=scripts/tsconfig.json scripts/benchmarks/index.mts"

0 commit comments

Comments
 (0)