mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
32 lines
1.3 KiB
Markdown
32 lines
1.3 KiB
Markdown
# Demo
|
|
|
|
The purpose of this application is to provide an Angular CLI application where Ionic Core components can be tested in a simple manner. This application allows the developer to experiment with interactions between Angular and Ionic in an easy and safe manner.
|
|
|
|
## Getting started
|
|
|
|
**Note:** This application now uses the last published `@ionic/core` package. To test against changes that you have made locally to core use `npm link` (see below).
|
|
|
|
To use _this_ application perform the following commands from this directory:
|
|
|
|
- `npm i`
|
|
- `npm start` - to serve the application
|
|
- `npm test` - to run the unit tests
|
|
- `npm run e2e` - to run the end to end tests
|
|
|
|
See the `package.json` file for a complete list of script. The above are just the most common.
|
|
|
|
## Running the Angular CLI
|
|
|
|
This application installs the Angular CLI locally so you do not need to have it installed globally. You can use `npm` to run any of the `ng` commands. For example:
|
|
|
|
- `npm run ng build -- --prod` - run a production build
|
|
- `npm run ng g component my-cool-thing`
|
|
|
|
## Testing Local Changes
|
|
|
|
In order to test local core changes, use `npm link` as such:
|
|
|
|
1. In `packages/core`, run `npm run build`
|
|
2. In `packages/core`, run `npm link`
|
|
3. In `packages/angular/demo`, run `npm link @ionic/core`
|