-
Notifications
You must be signed in to change notification settings - Fork 61
Fix Example Builds #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fix Build Process for Example Apps
scripts/clean.ps1
Outdated
| @@ -0,0 +1,5 @@ | |||
| if (Test-Path "./dist") { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this script or change it to run with node
example-app-angular-cli/package.json
Outdated
| "playground:fresh": "npm i ../ && npm run playground", | ||
| "playground": "angular-playground", | ||
| "playground2": "angular-playground angular-playground2.json", | ||
| "playground:fresh": "node ../scripts/build-examples.js && npm run playground", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove fresh and just have "npm run playground"
example-app-angular-cli/README.md
Outdated
| Development Steps: | ||
| 1. `npm i` in root (`angular-playground/`) | ||
| 2. `npm i` in this directory (`example-app-angular-cli`) | ||
| 3. `npm run playground:fresh` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to "npm run playground"
New build process will create the
node_modules/angular-playground/dist/directory andpackage.jsonfile without the extra stuff that was causing errors in the CLI example.To start developing in an example, do the following:
npm iin root,angular-playgroundnpm iin example,angular-playground/example-app-angular-clinpm playground:fresh