Skip to content
This repository has been archived by the owner on May 13, 2018. It is now read-only.

Latest commit

 

History

History
52 lines (35 loc) · 2.09 KB

DEFAULT_IONIC_README.md

File metadata and controls

52 lines (35 loc) · 2.09 KB

Ionic App Base

A starting project for Ionic that optionally supports using custom SCSS.

Using this project

We recommend using the Ionic CLI to create new Ionic projects that are based on this project but use a ready-made starter template.

For example, to start a new Ionic project with the default tabs interface, make sure the ionic utility is installed:

$ npm install -g ionic

Then run:

$ ionic start myProject tabs

To install test environment:

$ npm install -g karma phantomjs karma-phantomjs-launcher karma-cli bower jasmine-core karma-jasmine karma-chrome-launcher --save-dev
$ bower install angular-mocks#1.3.13 --save-dev

Note: Always make sure you install the version of angular-mocks that is the same version as the Angular library included in Ionic.

We'll also need to install the Karma CLI to run Karma from the command line.

$ npm install -g karma-cli    # use '-g' since we need this in the PATH env variable

Lastly, we need to decide on a browser to run our unit tests. Karma supports most browsers, but the most popular choice is PhantomJS. It's a headless (no GUI) browser built on WebKit and is perfect for running automated unit tests.

$ npm install -g phantomjs    # use '-g' since we need this in the PATH env variable

Note: if you want to use another browser, you'll have to install a launcher for it, so that Karma can call it. Chrome and PhantomJS launchers are included with the default installation.

To run tests:

$ karma start tests/unit-tests.conf.js

More info on this can be found on the Ionic Getting Started page and the Ionic CLI repo.

Issues

Issues have been disabled on this repo, if you do find an issue or have a question consider posting it on the Ionic Forum. Or else if there is truly an error, follow our guidelines for submitting an issue to the main Ionic repository.