Skip to content

Commit 94605d6

Browse files
committed
feat(angular-cli): add basic angular-cli support for generators
## Minimal) Angular-CLI integration - This is to be used mainly for Generating Components/Services/etc. - Usage examples: - `ng g c components/example-component` - `ng g s shared/some-service`
1 parent 265e9a7 commit 94605d6

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.angular-cli.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"project": {
4+
"name": "AspnetCore-Angular-Universal"
5+
},
6+
"apps": [
7+
{
8+
"root": "ClientApp"
9+
}
10+
],
11+
"defaults": {
12+
"styleExt": "scss",
13+
"component": {
14+
"spec": false
15+
}
16+
}
17+
}

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ This utilizes all the latest standards, no gulp, no bower, no typings, no manual
4949
- SignalR Chat demo! (Thanks to [@hakonamatata](https://github.com/hakonamatata))
5050

5151
- **Angular 4.0.0** :
52-
- Featuring Server-side rendering (Platform-Server)
52+
- (Minimal) Angular-CLI integration
53+
- This is to be used mainly for Generating Components/Services/etc.
54+
- Usage examples:
55+
- `ng g c components/example-component`
56+
- `ng g s shared/some-service`
57+
- Featuring Server-side rendering (Platform-Server, aka: "Universal")
5358
- Faster initial paints, SEO (Search-engine optimization w Title/Meta/Link tags), social media link-previews, etc
5459
- i18n internationalization support (via/ ngx-translate)
5560
- Baked in best-practices (follows Angular style guide)
@@ -62,7 +67,7 @@ This utilizes all the latest standards, no gulp, no bower, no typings, no manual
6267
- Production builds w/ AoT Compilation
6368

6469
- **Testing frameworks**
65-
- Unit testing with Karma/Jasmine
70+
- Unit testing with Jest (Going back to Karma soon)
6671

6772
- **Productivity**
6873
- Typescript 2

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,16 @@
7777
"zone.js": "^0.8.9"
7878
},
7979
"devDependencies": {
80+
"@angular/cli": "^1.3.2",
8081
"@ngtools/webpack": "^1.3.0",
8182
"@types/chai": "^3.4.34",
8283
"@types/jasmine": "^2.5.37",
8384
"@types/jest": "^19.2.3",
8485
"chai": "^3.5.0",
8586
"codelyzer": "^3.0.0",
86-
"tslint": "^5.0.0",
8787
"jasmine-core": "^2.5.2",
8888
"jest": "^20.0.0",
89-
"jest-preset-angular": "^2.0.1"
89+
"jest-preset-angular": "^2.0.1",
90+
"tslint": "^5.0.0"
9091
}
9192
}

0 commit comments

Comments
 (0)