feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
24
common/_templates/rspack-web/scm_build.sh
Normal file
24
common/_templates/rspack-web/scm_build.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
# Switch cwd to the project folder
|
||||
cd $(dirname "$0")
|
||||
|
||||
# Import the utilities functions
|
||||
source ../../scripts/scm_base.sh
|
||||
|
||||
# Clean up the build directory
|
||||
rm -rf output
|
||||
rm -rf "${ROOT_DIR}"/output
|
||||
|
||||
# Prepare
|
||||
prepare_environment
|
||||
|
||||
# Install the dependencies
|
||||
install_project_deps
|
||||
|
||||
build_project
|
||||
|
||||
mkdir -p ${ROOT_DIR}/output
|
||||
cp -r ./output/* ${ROOT_DIR}/output/
|
||||
Reference in New Issue
Block a user