update script
This commit is contained in:
parent
529ae56f7f
commit
6c3060d358
9
.gitignore
vendored
9
.gitignore
vendored
@ -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
26
bundle.sh
Normal 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
|
6
setup.sh
6
setup.sh
@ -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 ..
|
||||
|
Reference in New Issue
Block a user