a Generator to generate a mobile Hybrid Application with Ionic 2
First, install Yeoman and generator-ionic-2 using npm (we assume you have pre-installed node.js).
npm i -g webpack
npm i -g yo
npm i -g generator-ionic-2
Then generate your new project:
mkdir myProject && cd myProject
yo ionic-2
npm start
open now http://localhost:3000
//or prod
npm run build
//cordova commands
npm run cordova --command platform add ios|android
npm run cordova --command build ios|android
npm run cordova --command run ios|android
npm run cordova --command plugin add cordova-plugin-device
//or bundle
npm run bundle
npm run bundle-android
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.
MIT © DrMabuse