Skip to content

Commit

Permalink
Merge pull request #14 from SoCreate/master
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
mgmarlow committed Jan 12, 2018
2 parents fca621e + 394c96d commit 1bcf353
Show file tree
Hide file tree
Showing 18 changed files with 208 additions and 165 deletions.
5 changes: 4 additions & 1 deletion examples/cli-example/.angular-cli.json
Expand Up @@ -18,6 +18,7 @@
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"serviceWorker": true,
"styles": [
"styles.css"
],
Expand All @@ -41,6 +42,7 @@
"polyfills": "polyfills.ts",
"tsconfig": "tsconfig.app.json",
"prefix": "app",
"serviceWorker": true,
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
Expand Down Expand Up @@ -74,6 +76,7 @@
},
"defaults": {
"styleExt": "css",
"component": {}
"component": {
}
}
}
33 changes: 10 additions & 23 deletions examples/cli-example/README.md
@@ -1,27 +1,14 @@
# CliExample
# Playground Angular CLI Example

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.6.2.
## Development:

## Development server
Install dependencies:
```
cd examples/cli-example/
npm i
```

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
Run `npm run playground:build` to replace the installed angular-playground with the development version.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
`npm run playground` accesses `node_modules/angular-playground/dist/bin/index.js` directory, so changes
within the CLI will require `npm run playground:build` to be run before changes will appear.

0 comments on commit 1bcf353

Please sign in to comment.