Angular4 + Cordova (iOS) Boilerplate Project.
Run npm start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run npm run emu
to build the project and run on iOS Simulator. The build artifacts will be stored in the www/
directory. Use the -prod
flag for a production build.
Run npm test
to execute the unit tests via Karma.
Run npm run e2e
to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via npm start
.
Run npm run e2e-ios-appium
. and npm run e2e-ios-exec
to execute the end-to-end tests via Protractor and Appium.
# Create Angular Boilerplate
$ ng new angular-cordova --skip-git --skip-commit --style scss --routing
# Create Cordova Boilerplate
$ cordova new angular-cordova-boilerplate com.example.angular.cordova angular-cordova
# Merge files...
# Install Cordova
$ npm install --save cordova
$ npm run cordova platform add ios
$ npm run cordova plugin add cordova-plugin-console
$ npm run cordova plugin add cordova-plugin-statusbar
# Install Appium
$ npm install --save-dev appium wd wd-bridge