Merge pull request #2298 from foghina/yo

[cli] convert project generation to use yeoman
This commit is contained in:
Felix Oghină
2015-08-17 13:51:24 +01:00
28 changed files with 1546 additions and 39 deletions

View File

@@ -15,7 +15,7 @@ export REACT_PACKAGER_LOG="$TEMP/server.log"
# To make sure we actually installed the local version
# of react-native, we will create a temp file inside SampleApp
# and check that it exists after `react-native init`
MARKER=$(mktemp $ROOT/Examples/SampleApp/XXXXXXXX)
MARKER=$(mktemp $ROOT/local-cli/generator-ios/templates/main/XXXXXXXX)
function cleanup {
EXIT_CODE=$?
@@ -61,14 +61,14 @@ npm publish $ROOT/react-native-cli
npm install -g react-native-cli
react-native init EndToEndTest
cd EndToEndTest
cd EndToEndTest/ios
# Make sure we installed local version of react-native
ls `basename $MARKER` > /dev/null
flow --retries 10
node ./node_modules/react-native/packager/packager.js --nonPersistent &
node ../node_modules/react-native/packager/packager.js --nonPersistent &
SERVER_PID=$!
cd iOS
xctool -scheme EndToEndTest -sdk iphonesimulator test