update script

This commit is contained in:
pengfei.zhou 2019-12-21 23:15:09 +08:00
parent 529ae56f7f
commit 6c3060d358
3 changed files with 34 additions and 7 deletions

9
.gitignore vendored
View File

@ -66,6 +66,9 @@ fastlane/readme.md
.DS_Store
*/.DS_Store
iOS/Example/Podfile.lock
iOS/Example/Example.xcworkspace/*
iOS/Example/Pods/*
doric-iOS/Example/Podfile.lock
doric-iOS/Example/Example.xcworkspace/*
doric-iOS/Example/Pods/*
.project
.classpath
.settings/

26
bundle.sh Normal file
View File

@ -0,0 +1,26 @@
#!/usr/bin/env bash
##############################################################################
##
## Package JS Bundles
##
##############################################################################
CURRENT_DIR=$(cd $(dirname $0); pwd)
cd $CURRENT_DIR/doric-js && npm run build
rm -rf $CURRENT_DIR/doric-Android/doric/src/main/assets/bundle/*.js
cp -rf $CURRENT_DIR/doric-js/bundle/*.js $CURRENT_DIR/doric-Android/doric/src/main/assets/bundle
rm -rf $CURRENT_DIR/doric-iOS/Pod/Assets/bundle/*.js
cp -rf $CURRENT_DIR/doric-js/bundle/*.js $CURRENT_DIR/doric-iOS/Pod/Assets/bundle
rm -rf $CURRENT_DIR/doric-iOS-framework/Assets/bundle/*.js
cp -rf $CURRENT_DIR/doric-js/bundle/*.js $CURRENT_DIR/doric-iOS-framework/Assets/bundle
cd $CURRENT_DIR/doric-demo && npm run build
rm -rf $CURRENT_DIR/doric-Android/app/src/main/assets/demo/*.js
cp -rf $CURRENT_DIR/doric-demo/bundle/src/*.js $CURRENT_DIR/doric-Android/app/src/main/assets/demo
rm -rf $CURRENT_DIR/doric-iOS/Example/Example/demo/*.js
cp -rf $CURRENT_DIR/doric-demo/bundle/src/*.js $CURRENT_DIR/doric-iOS/Example/Example/demo

View File

@ -4,8 +4,6 @@
## Init Develop Environment
##
##############################################################################
cd js-framework && npm install && npm run build && cd ..
cd debugger && npm install && npm run build && cd ..
cd demo && npm install && npm run build && cd ..
cd doric-js && npm install && npm run build && cd ..
cd doric-demo && npm install && npm run build && cd ..
cd doric-cli && npm install && npm link && cd ..