Update README.md

This commit is contained in:
Tim Lancina
2015-06-04 15:26:51 -05:00
parent c60a225301
commit 0899e02f30

View File

@ -1,16 +1,16 @@
#### Building & Running
_** WARNING: This is a temporary hack **_
1. At the root of your `ionic2` directory/repo, run: `gulp update.angular`. This will get the latest version of Angular2 master and install it as a sibling directory `../angular-ionic` to wherever your `ionic2` directory is. (It'll take a while to npm install angular2, so go grab a beer).
2. In the `ionic2` working directory, run `gulp watch`. This will copy ionic2 components and test files to the correct angular directories as you're developing.
3. In another terminal, `cd` into the `../angular-ionic` directory, and run `gulp serve.js.dev`. This will build out ionic examples too.
4. Go to [http://localhost:8000/examples/src/ionic/](http://localhost:8000/examples/src/ionic/)
5. Stay cool
_** WARNING: This is a temporary hack **_
2. Cd into the `../angular-ionic` directory and run `gulp build` to build out the Angular files. If you are on a clean install, but `../angular-ionic` already exists, run `gulp link.angular` to symlink `angular2` in your `ionic2` working directory to `../angular-ionic`. This is for the SystemJS builder, which
can't see below the root directory.
3. Run `npm install` and `jspm install`. Make sure you have at least version 15.6 of JSPM. It should not alter your `config.js` or `package.json` files, if it does, make sure you have the proper version of JSPM.
4. In the `ionic2` working directory, run `gulp build.clean`. This will transpile the Ionic project files to es5, bundle them using the [SystemJS builder](https://github.com/systemjs/builder), bundle all of Ionic's dependencies (ie Angular2 and all of its dependencies) into a separate file, and build out all the Ionic examples as well. In `dist/js/es6/ionic` you will find clean es6 Ionic files (no @Annotations), and in `dist/js/es5/ionic` you will find all of the Babel-transpiled es5 Ionic project files. The two bundles are located at `dist/ionic.bundle.js` and `dist/dependencies.js`, and the examples are located in `dist/examples`.
5. Run `gulp watch`.
6. Go to [http://localhost:8000/dist/examples/](http://localhost:8000/dist/examples/)
7. Stay cool
Note: Once you're setup, you just need to run `gulp watch`, unless you've updated angular and want to rebuild `dependencies.js`.
#### Things you'll probably need to fix