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 install
gulp watch
- Go to http://localhost:8000/dist/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 & Running API Demos
- Follow the steps for Building & Running Ionic Source
- Run
gulp demos
- Run
gulp watch:demos
- Navigate to
http://localhost:8000/dist/demos
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
Releasing
Releasing Ionic Source
- Run
gulp prepublish
- Pulls latest, updates package.json minor version, updates changelog
- Verify that changelog changes and package.json update are correct (
git status
&&git diff
) - Run snapshot & update if necessary
- Publish to npm:
npm publish ./dist
- Commit and push
- Sit back and have a beer 🍺 (or wine 🍷)
Releasing Component Demos
Releasing API Demos
TODO