A simple base project for Ionic Projects.
For more information, read the blog post.
It's the same as the default project from Ionic, but has the following extras:
- Better file structure
- Unit test support using karma
- Better gulp tasks.
npm install
bower install
More organised angular app structure using a single controller/service/... per file
For example, here's the default app:
src
├── js
│ ├── app.js
│ ├── controllers
│ │ ├── account.ctrl.js
│ │ ├── chatdetail.ctrl.js
│ │ ├── chats.ctrl.js
│ │ └── dash.ctrl.js
│ └── services
│ └── chats.service.js
├── scss
│ └── ionic.app.scss
└── templates
├── chat-detail.html
├── tab-account.html
├── tab-chats.html
├── tab-dash.html
└── tabs.html
- Add karma to enable unit testing the angular app
- Run unit tests using
npm test
. - Easy CI with travis. Simply add .travis.yml
gulp build
: Concatenate and uglify app into one JS file. A sourcemap is included to enable easy debugging.gulp templates
: Concatenate templates into a single file that's included in the app (no requests during runtime).gulp bump
: Better app version changing using gulp-bump