https://github.com/killercodemonkey/ionic-starter-requirejs
A starter template for ionic with requirejs
https://github.com/killercodemonkey/ionic-starter-requirejs
Last synced: about 1 month ago
JSON representation
A starter template for ionic with requirejs
- Host: GitHub
- URL: https://github.com/killercodemonkey/ionic-starter-requirejs
- Owner: KillerCodeMonkey
- License: mit
- Created: 2015-09-02T17:06:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-07T12:19:05.000Z (over 9 years ago)
- Last Synced: 2025-03-29T00:33:34.004Z (about 2 months ago)
- Language: JavaScript
- Size: 1.69 MB
- Stars: 20
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ionic-starter-requirejs
This is an addon starter template with [RequireJS](http://requirejs.org/) for the [Ionic Framework](http://ionicframework.com/).

## How to use this template
To use this, either create a new ionic project using the ionic node.js utility, or copy and paste this into an existing Cordova project.
## Explanation
With RequireJS you can simply split your projects js-files in as many parts you want.
### special files:
- main.js --> RequireJS config
- app/boot.js --> manual bootstrap of the app
- app/app.js --> Definition of the app/module
- app/routes.js --> Definition of states
- app/config.js --> additional config-blocks (e.g. configure your ionic here)
- app/run.js --> run-blocksBut you can structure your app as you want --> no need to split everything in separated files.
Additionally you can use the packaging tool [almond](https://github.com/jrburke/almond) to build own releases (uglified, minified and packaged in one file).
For a simple way to use you can install grund-cli and use [grunt-contrib-requirejs](https://github.com/gruntjs/grunt-contrib-requirejs)
[](https://bitdeli.com/free "Bitdeli Badge")