mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
Update README.md
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
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`.
|
||||
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/js/ionic.bundle.js` and `dist/js/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
|
||||
|
Reference in New Issue
Block a user