Skip to content

Instantly share code, notes, and snippets.

@hdeshev
Created February 3, 2016 09:44
Show Gist options
  • Save hdeshev/6b87da27ae724a1cd11a to your computer and use it in GitHub Desktop.
Save hdeshev/6b87da27ae724a1cd11a to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
NS_DIR=$(pwd)
APP_DIR=$1
grunt default --test-app-only=true --runtslint=false
rsync -XPav bin/dist/apps/tests/ $1/app/
#rsync -XPav bin/dist/modules/apps/tests/ $1/app/
rm -rf $1/node_modules/tns-core-modules
(cd $1 && npm install "$NS_DIR"/bin/dist/modules/tns-core-modules*.tgz)
cd $1 &&\
#tns emulate android --avd nexus4-x64
tns run android
#!/bin/sh
set -e
NS_DIR=$(pwd)
APP_DIR=$1
grunt default --test-app-only=true --runtslint=false
rsync -av bin/dist/apps/tests/ $1/app/
rm -rf $1/node_modules/tns-core-modules
(cd $1 && npm install "$NS_DIR"/bin/dist/modules/tns-core-modules*.tgz)
cd $1 &&\
#tns emulate android --avd nexus4-x64
tns run ios --emulator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment