Skip to content

Commit c942959

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
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",
49+
"docs:copy-to-host": " rsync -avr dist/bin/adev/build/browser/ /mnt/f/work/translation/v19.angular.cn-csr",
50+
"docs:build-local": "npm run docs:build-release && npm run docs:writable && npm run docs:remove-prerender && npm run docs:copy-to-host",
4651
"benchmarks": "tsx --tsconfig=scripts/tsconfig.json scripts/benchmarks/index.mts"
4752
},
4853
"// 1": "dependencies are used locally and by bazel",

0 commit comments

Comments
 (0)