Use Ionic framework with sensible defaults and best practices for AngularJS development. yo-angular-ionic-cli is a seed project for Ionic Framework that was generated using AngularJS generator and Ionic CLI. By using this seed project, you will have access to both AngularJS generator and Ionic CLI so that you can have the confidence you are following the best practices and your tools will not go out of date.
Inspired by https://github.com/diegonetto/generator-ionic.
Install ionic
, yo
, and generator-angular
:
$ npm install -g ionic yo generator-angular
Note: For a global install of -g ionic yo generator-angular
, OSX/Linux users may need to prefix the command with sudo
.
Clone this git repository:
$ git clone https://github.com/OminStyle/yo-angular-ionic-cli.git
Install components:
$ bower install & npm install
Run grunt
for building and grunt serve
for preview
Run ionic build
after grunt
in order to build to platforms
Summary of Yeoman generators for AngularJs:
- yo angular:controller
- yo angular:directive
- yo angular:filter
- yo angular:route
- yo angular:service
- yo angular:provider
- yo angular:factory
- yo angular:value
- yo angular:constant
- yo angular:decorator
- yo angular:view
Please visit AngularJS generator and Ionic CLI for detailed documentations.