Skip to content

Commit eebfc2b

Browse files
authored
feat(app): update project to new angular framework
1 parent 80ca5fd commit eebfc2b

File tree

182 files changed

+18460
-3995
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+18460
-3995
lines changed

.angular-cli.json

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

.bowerrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# CircleCI configuration for angular-starter
3+
#
4+
5+
version: 2
6+
jobs:
7+
build:
8+
working_directory: ~/angular-starter
9+
docker:
10+
- image: circleci/node:8-browsers
11+
steps:
12+
- checkout
13+
- restore_cache:
14+
key: angular-starter-{{ .Branch }}-{{ checksum "package.json" }}
15+
- run: npm i --no-progress
16+
- save_cache:
17+
key: angular-starter-{{ .Branch }}-{{ checksum "package.json" }}
18+
paths:
19+
- "node_modules"
20+
- run: npm run lint
21+
- run: xvfb-run -a npm run test -- --single-run --code-coverage --no-progress --browser=ChromeNoSandbox
22+
- run: xvfb-run -a npm run e2e -- --no-progress
23+
- run: npm run coverage

.csslintrc

Lines changed: 0 additions & 19 deletions
This file was deleted.

.editorconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ lines_after_imports=2
3434
indent_style = space
3535
indent_size = 2
3636

37-
# Front End Languages (HTML, JS, CSS etc)
37+
# Front End Languages (HTML, JS/TS, CSS etc)
3838

39-
[*.{js, css, html}]
39+
[*.{js, ts, css, html}]
4040
indent_style = space
4141
indent_size = 2
4242
charset = utf-8
4343
trim_trailing_whitespace = true
4444

45-
## JS
46-
[*.js]
45+
## JS/TS
46+
[*.{js, ts}]
4747
quote_type = single
4848

4949
# Misc

.gitignore

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

.htmllintrc

Lines changed: 0 additions & 13 deletions
This file was deleted.

.jshintrc

Lines changed: 0 additions & 89 deletions
This file was deleted.

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package.json
2+
package-lock.json

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"singleQuote": true,
3+
"useTabs": false,
4+
"tabWidth": 2,
5+
"semi": true,
6+
"bracketSpacing": true,
7+
"overrides": [
8+
{
9+
"files": "src/**/*.scss",
10+
"options": {
11+
"singleQuote": false
12+
}
13+
}
14+
]
15+
}

.stylelintrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-recommended-scss"],
3+
"rules": {
4+
"order/order": [
5+
"custom-properties",
6+
"declarations"
7+
],
8+
"order/properties-alphabetical-order": true,
9+
"no-empty-source": null,
10+
"selector-type-no-unknown": [
11+
true,
12+
{
13+
"ignore": ["custom-elements", "default-namespace"]
14+
}
15+
],
16+
"selector-pseudo-element-no-unknown": [
17+
true,
18+
{
19+
"ignorePseudoElements": ["ng-deep"]
20+
}
21+
],
22+
"declaration-colon-newline-after": null,
23+
"at-rule-empty-line-before": null,
24+
"block-closing-brace-newline-after": null
25+
},
26+
"plugins": [
27+
"stylelint-order"
28+
]
29+
}

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)