Files

Development

Building & Running Ionic Source

  1. npm install
  2. gulp watch
  3. Go to http://localhost:8000/dist/e2e/
  4. Stay cool

Building & Running Component Demos

  1. Clone the ionic-site repo in ionic2/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
  1. Run gulp watch:demos from the top level directory
  2. Navigate to ionic2/dist/ionic-site and run npm install
  3. Run gulp watch in this directory
  4. A browser should launch at http://localhost:3000 at which point you can navigate to http://localhost:3000/docs/v2/components/

Building & Running API Demos

  1. Follow the steps for Building & Running Ionic Source
  2. Run gulp demos
  3. Run gulp watch:demos
  4. Navigate to http://localhost:8000/dist/demos

Building API Docs

  1. gulp docs to build the nightly version
  2. gulp docs --doc-version=2.0.0 to build a specific API version

Running Snapshot

  1. Install Protractor: npm install -g protractor
  2. Export IONIC_SNAPSHOT_KEY (get from someone)
  3. Run gulp snapshot

Running Tests

  1. gulp karma

Releasing

Releasing Ionic Source

  1. Run gulp prepublish
  • Pulls latest, updates package.json minor version, updates changelog
  1. Verify that changelog changes and package.json update are correct (git status && git diff)
  2. Run snapshot & update if necessary
  3. Publish to npm: npm publish ./dist
  4. Commit and push
  5. Sit back and have a beer 🍺 (or wine 🍷)

Releasing Component Demos

See ionic-preview-app

Releasing API Demos

TODO