25 files changed

+17953
-11114
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
# SalesProject
22

3-
This project was generated with [Angular CLI](https://.com/angular/angular-cli) version 9.0.5.
3+
This project was generated with [Angular CLI](https://.com/angular/angular-cli) version 13.3.4.
44

55
## Development server
66

7-
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.
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
88

99
## Code scaffolding
1010

1111
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`.
1212

1313
## Build
1414

15-
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.
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
1616

1717
## Running unit tests
1818

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

2121
## Running end-to-end tests
2222

23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
23+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
2424

2525
## Further help
2626

27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://.com/angular/angular-cli/blob/master/README.md).
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"projects": {
66
"sales-project": {
77
"projectType": "application",
8-
"schematics": {},
8+
"schematics": {
9+
"@schematics/angular:application": {
10+
"strict": true
11+
}
12+
},
913
"root": "",
1014
"sourceRoot": "src",
1115
"prefix": "app",
@@ -18,7 +22,6 @@
1822
"main": "src/main.ts",
1923
"polyfills": "src/polyfills.ts",
2024
"tsConfig": "tsconfig.app.json",
21-
"aot": false,
2225
"assets": [
2326
"src/favicon.ico",
2427
"src/assets"
@@ -30,46 +33,48 @@
3033
},
3134
"configurations": {
3235
"production": {
33-
"fileReplacements": [
34-
{
35-
"replace": "src/environments/environment.ts",
36-
"with": "src/environments/environment.prod.ts"
37-
}
38-
],
39-
"optimization": true,
40-
"outputHashing": "all",
41-
"sourceMap": false,
42-
"extractCss": true,
43-
"namedChunks": false,
44-
"aot": true,
45-
"extractLicenses": true,
46-
"vendorChunk": false,
47-
"buildOptimizer": true,
4836
"budgets": [
4937
{
5038
"type": "initial",
51-
"maximumWarning": "2mb",
52-
"maximumError": "5mb"
39+
"maximumWarning": "500kb",
40+
"maximumError": "1mb"
5341
},
5442
{
5543
"type": "anyComponentStyle",
56-
"maximumWarning": "6kb",
57-
"maximumError": "10kb"
44+
"maximumWarning": "2kb",
45+
"maximumError": "4kb"
46+
}
47+
],
48+
"fileReplacements": [
49+
{
50+
"replace": "src/environments/environment.ts",
51+
"with": "src/environments/environment.prod.ts"
5852
}
59-
]
53+
],
54+
"outputHashing": "all"
55+
},
56+
"development": {
57+
"buildOptimizer": false,
58+
"optimization": false,
59+
"vendorChunk": true,
60+
"extractLicenses": false,
61+
"sourceMap": true,
62+
"namedChunks": true
6063
}
61-
}
64+
},
65+
"defaultConfiguration": "production"
6266
},
6367
"serve": {
6468
"builder": "@angular-devkit/build-angular:dev-server",
65-
"options": {
66-
"browserTarget": "sales-project:build"
67-
},
6869
"configurations": {
6970
"production": {
7071
"browserTarget": "sales-project:build:production"
72+
},
73+
"development": {
74+
"browserTarget": "sales-project:build:development"
7175
}
72-
}
76+
},
77+
"defaultConfiguration": "development"
7378
},
7479
"extract-i18n": {
7580
"builder": "@angular-devkit/build-angular:extract-i18n",
@@ -93,33 +98,9 @@
9398
],
9499
"scripts": []
95100
}
96-
},
97-
"lint": {
98-
"builder": "@angular-devkit/build-angular:tslint",
99-
"options": {
100-
"tsConfig": [
101-
"tsconfig.app.json",
102-
"tsconfig.spec.json",
103-
"e2e/tsconfig.json"
104-
],
105-
"exclude": [
106-
"**/node_modules/**"
107-
]
108-
}
109-
},
110-
"e2e": {
111-
"builder": "@angular-devkit/build-angular:protractor",
112-
"options": {
113-
"protractorConfig": "e2e/protractor.conf.js",
114-
"devServerTarget": "sales-project:serve"
115-
},
116-
"configurations": {
117-
"production": {
118-
"devServerTarget": "sales-project:serve:production"
119-
}
120-
}
121101
}
122102
}
123-
}},
103+
}
104+
},
124105
"defaultProject": "sales-project"
125-
}
106+
}
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,28 @@ module.exports = function (config) {
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage-istanbul-reporter'),
12+
require('karma-coverage'),
1313
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine..io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
1622
clearContext: false // leave Jasmine Spec Runner output visible in browser
1723
},
18-
coverageIstanbulReporter: {
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
26+
},
27+
coverageReporter: {
1928
dir: require('path').join(__dirname, './coverage/sales-project'),
20-
reports: ['html', 'lcovonly', 'text-summary'],
21-
fixWebpackSourcePaths: true
29+
subdir: '.',
30+
reporters: [
31+
{ type: 'html' },
32+
{ type: 'text-summary' }
33+
]
2234
},
2335
reporters: ['progress', 'kjhtml'],
2436
port: 9876,

0 commit comments

Comments
 (0)