Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit b23d000

Browse files
author
Wassim CHEGHAM
committed
feat(angular-cli): add an angular-cli app
FIX #2 #3 Note: we're removing angular + system.js (not relevant anymore)
1 parent b8ff69b commit b23d000

26 files changed

+8561
-348
lines changed

angular-cli/.angular-cli.json

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"project": {
4+
"name": "angular-cli"
5+
},
6+
"apps": [
7+
{
8+
"root": "src",
9+
"outDir": "dist",
10+
"assets": [
11+
"assets",
12+
"favicon.ico"
13+
],
14+
"index": "index.html",
15+
"main": "main.ts",
16+
"polyfills": "polyfills.ts",
17+
"test": "test.ts",
18+
"tsconfig": "tsconfig.app.json",
19+
"testTsconfig": "tsconfig.spec.json",
20+
"prefix": "app",
21+
"styles": [
22+
"styles.css"
23+
],
24+
"scripts": [],
25+
"environmentSource": "environments/environment.ts",
26+
"environments": {
27+
"dev": "environments/environment.ts",
28+
"prod": "environments/environment.prod.ts"
29+
}
30+
}
31+
],
32+
"e2e": {
33+
"protractor": {
34+
"config": "./protractor.conf.js"
35+
}
36+
},
37+
"lint": [
38+
{
39+
"project": "src/tsconfig.app.json",
40+
"exclude": "**/node_modules/**"
41+
},
42+
{
43+
"project": "src/tsconfig.spec.json",
44+
"exclude": "**/node_modules/**"
45+
},
46+
{
47+
"project": "e2e/tsconfig.e2e.json",
48+
"exclude": "**/node_modules/**"
49+
}
50+
],
51+
"test": {
52+
"karma": {
53+
"config": "./karma.conf.js"
54+
}
55+
},
56+
"defaults": {
57+
"styleExt": "css",
58+
"component": {
59+
"spec": false,
60+
"inlineStyle": true,
61+
"inlineTemplate": true
62+
},
63+
"directive": {
64+
"spec": false
65+
},
66+
"class": {
67+
"spec": false
68+
},
69+
"guard": {
70+
"spec": false
71+
},
72+
"module": {
73+
"spec": false
74+
},
75+
"pipe": {
76+
"spec": false
77+
},
78+
"service": {
79+
"spec": false
80+
}
81+
}
82+
}

angular-cli/.gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
8+
# dependencies
9+
/node_modules
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
26+
27+
# misc
28+
/.sass-cache
29+
/connect.lock
30+
/coverage
31+
/libpeerconnection.log
32+
npm-debug.log
33+
testem.log
34+
/typings
35+
36+
# e2e
37+
/e2e/*.js
38+
/e2e/*.map
39+
40+
# System Files
41+
.DS_Store
42+
Thumbs.db

angular/README.md renamed to angular-cli/README.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,23 @@
77

88
## Getting started
99

10-
You can see this demo directly [here on rawgit](https://cdn.rawgit.com/webcomponents/angular-interop/5bf92049/angular/index.html)
11-
(Thanks to [Kent C. Dodds](https://github.com/kentcdodds) for the pro tip!)
12-
13-
Or, in order to run it locally you'll need to:
10+
In order to run it locally you'll need to:
1411

1512
* Start a local web server:
1613

1714
```sh
18-
$ python -m SimpleHTTPServer
15+
$ cd angular-cli/ # this folder
16+
$ npm install
17+
$ ng serve
1918
```
2019

21-
* Open the browser and navigate to [localhost:8000](http://localhost:8000/)
20+
* Open the browser and navigate to [localhost:4200](http://localhost:4200/)
2221

2322
## Contributing
2423

2524
1. Fork it!
2625
2. Create your feature branch: `git checkout -b my-new-feature`
27-
3. Commit your changes: `git commit -m 'Add some feature'`
26+
3. Commit your changes: `git commit -m 'feat(my-new-feature): Add some feature'`
2827
4. Push to the branch: `git push origin my-new-feature`
2928
5. Submit a pull request :D
3029

0 commit comments

Comments
 (0)