mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
Development
Building & Running Ionic Source
npm installgulp watch- Go to http://localhost:8000/e2e/
- Stay cool
Building & Running Component Demos
- Clone the
ionic-siterepo 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:demosfrom the top level directory - Navigate to
ionic2/dist/ionic-siteand runnpm install - Run
gulp watchin this directory - A browser should launch at
http://localhost:3000at which point you can navigate tohttp://localhost:3000/docs/v2/components/
Building API Docs
gulp docsto build the nightly versiongulp docs --doc-version=2.0.0to 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