mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
Development
Building & Running Ionic Source
npm install
gulp watch
- Go to http://localhost:8000/e2e/
- Stay cool
Building & Running Component Demos
- Clone the
ionic-site
repo inionic2/dist/
:git clone git@github.com:driftyco/ionic-site.git
- You may need to remove the existing directory first:
rm -rf ionic2/dist/ionic-site
- Run
gulp watch:demos
from the top level directory - Navigate to
ionic2/dist/ionic-site
and runnpm install
- Run
gulp watch
in this directory - A browser should launch at
http://localhost:3000
at which point you can navigate tohttp://localhost:3000/docs/v2/components/
Building API Docs
gulp docs
to build the nightly versiongulp docs --doc-version=2.0.0
to build a specific API version
Running Snapshot
- Install Protractor:
npm install -g protractor
- Export
IONIC_SNAPSHOT_KEY
(get from someone) - Run
gulp snapshot
Running Tests
gulp karma