refactor(demo): move the demo app

This commit is contained in:
Ken Sodemann
2017-12-05 16:38:12 -06:00
parent 05a6f17379
commit 303cd75aaa
58 changed files with 9 additions and 6 deletions

View File

@ -1,7 +1,8 @@
{ {
"lerna": "2.0.0-rc.5", "lerna": "2.0.0-rc.5",
"packages": [ "packages": [
"packages/*" "packages/*",
"packages/demos/*"
], ],
"commands": { "commands": {
"bootstrap": { "bootstrap": {

View File

@ -13,7 +13,7 @@ To use _this_ application perform the following commands from this directory:
- `npm test` - to run the unit tests - `npm test` - to run the unit tests
- `npm run e2e` - to run the end to end 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. See the `package.json` file for a complete list of scripts. The above are just the most common.
## Running the Angular CLI ## Running the Angular CLI
@ -24,8 +24,10 @@ This application installs the Angular CLI locally so you do not need to have it
## Testing Local Changes ## Testing Local Changes
In order to test local core changes, use `npm link` as such: In order to test local changes they need to be copied into `node_modules` after the initial `npm i`
1. In `packages/core`, run `npm run build` 1. In `packages/core`, run `npm run build`
2. In `packages/core`, run `npm link` 1. In `packages/demos/angular`, run `rm -rf node_modules/\@ionic/core/dist`
3. In `packages/angular/demo`, run `npm link @ionic/core` 1. In `packages/demos/angular`, run `cp -r ../../core/dist node_modules/\@ionic/core/dist`
Use a similar procedure if you want to test local changes to `@ionic/angular`

View File

@ -1,5 +1,5 @@
{ {
"name": "demo", "name": "@ionic/angular-demo",
"version": "0.0.0", "version": "0.0.0",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB