Skip to content

Commit f11f81a

Browse files
committed
fix(adev): 添加本地构建脚本
(cherry picked from commit 33adc10)
1 parent 05690f8 commit f11f81a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
"devtools:test": "bazelisk test --//devtools/projects/shell-browser/src:flag_browser=chrome -- //devtools/...",
4545
"docs": "[[ -n $CI ]] && echo 'Cannot run this yarn script on CI' && exit 1 || yarn ibazel run //adev:serve",
4646
"docs:build": "[[ -n $CI ]] && echo 'Cannot run this yarn script on CI' && exit 1 || yarn bazel build //adev:build",
47-
"docs:build-release": "nvm use 20 && yarn bazel build //adev:build --full_build_adev --config=release",
48-
"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",
49-
"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",
50-
"docs:copy-to-host": " rsync -avr dist/bin/adev/build/browser/ /mnt/f/work/translation/v19.angular.cn-csr",
47+
"docs:build-release": "yarn bazel build //adev:build --full_build_adev --config=release",
48+
"docs:writable": "sudo chmod +w -R dist/bin/adev/build/browser",
49+
"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",
50+
"docs:copy-to-host": " rsync -avmr dist/bin/adev/build/browser/ /mnt/f/work/translation/v19.angular.cn-csr",
5151
"docs:build-local": "npm run docs:build-release && npm run docs:writable && npm run docs:remove-prerender && npm run docs:copy-to-host",
5252
"benchmarks": "tsx --tsconfig=scripts/tsconfig.json scripts/benchmarks/index.mts"
5353
},

0 commit comments

Comments
 (0)