Skip to content

Commit d37a5d9

Browse files
committed
feat(app): update v12
1 parent f1a5cae commit d37a5d9

34 files changed

+7722
-8974
lines changed

.browserslistrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR
17+
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ indent_size = 2
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11+
[*.ts]
12+
quote_type = single
13+
1114
[*.md]
1215
max_line_length = off
1316
trim_trailing_whitespace = false

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
# profiling files
1414
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
1615

1716
# IDEs and editors
1817
/.idea

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# AngularCulqi
1+
# CulqiAngular
22

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

55
## Development server
66

@@ -12,16 +12,16 @@ Run `ng generate component component-name` to generate a new component. You can
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.github.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://github.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.

angular.json

+47-61
Original file line numberDiff line numberDiff line change
@@ -3,78 +3,87 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"angular-culqi": {
6+
"culqi-angular": {
77
"projectType": "application",
8-
"schematics": {},
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
},
12+
"@schematics/angular:application": {
13+
"strict": true
14+
}
15+
},
916
"root": "",
1017
"sourceRoot": "src",
1118
"prefix": "app",
1219
"architect": {
1320
"build": {
1421
"builder": "@angular-devkit/build-angular:browser",
1522
"options": {
16-
"outputPath": "dist/angular-culqi",
23+
"outputPath": "dist/culqi-angular",
1724
"index": "src/index.html",
1825
"main": "src/main.ts",
1926
"polyfills": "src/polyfills.ts",
2027
"tsConfig": "tsconfig.app.json",
21-
"aot": false,
28+
"inlineStyleLanguage": "scss",
2229
"assets": [
2330
"src/favicon.ico",
2431
"src/assets"
2532
],
2633
"styles": [
27-
"src/styles.css"
34+
"src/styles.scss"
2835
],
2936
"scripts": []
3037
},
3138
"configurations": {
3239
"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,
4840
"budgets": [
4941
{
5042
"type": "initial",
51-
"maximumWarning": "2mb",
52-
"maximumError": "5mb"
43+
"maximumWarning": "500kb",
44+
"maximumError": "1mb"
5345
},
5446
{
5547
"type": "anyComponentStyle",
56-
"maximumWarning": "6kb",
57-
"maximumError": "10kb"
48+
"maximumWarning": "2kb",
49+
"maximumError": "4kb"
5850
}
59-
]
51+
],
52+
"fileReplacements": [
53+
{
54+
"replace": "src/environments/environment.ts",
55+
"with": "src/environments/environment.prod.ts"
56+
}
57+
],
58+
"outputHashing": "all"
59+
},
60+
"development": {
61+
"buildOptimizer": false,
62+
"optimization": false,
63+
"vendorChunk": true,
64+
"extractLicenses": false,
65+
"sourceMap": true,
66+
"namedChunks": true
6067
}
61-
}
68+
},
69+
"defaultConfiguration": "production"
6270
},
6371
"serve": {
6472
"builder": "@angular-devkit/build-angular:dev-server",
65-
"options": {
66-
"browserTarget": "angular-culqi:build"
67-
},
6873
"configurations": {
6974
"production": {
70-
"browserTarget": "angular-culqi:build:production"
75+
"browserTarget": "culqi-angular:build:production"
76+
},
77+
"development": {
78+
"browserTarget": "culqi-angular:build:development"
7179
}
72-
}
80+
},
81+
"defaultConfiguration": "development"
7382
},
7483
"extract-i18n": {
7584
"builder": "@angular-devkit/build-angular:extract-i18n",
7685
"options": {
77-
"browserTarget": "angular-culqi:build"
86+
"browserTarget": "culqi-angular:build"
7887
}
7988
},
8089
"test": {
@@ -84,42 +93,19 @@
8493
"polyfills": "src/polyfills.ts",
8594
"tsConfig": "tsconfig.spec.json",
8695
"karmaConfig": "karma.conf.js",
96+
"inlineStyleLanguage": "scss",
8797
"assets": [
8898
"src/favicon.ico",
8999
"src/assets"
90100
],
91101
"styles": [
92-
"src/styles.css"
102+
"src/styles.scss"
93103
],
94104
"scripts": []
95105
}
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": "angular-culqi:serve"
115-
},
116-
"configurations": {
117-
"production": {
118-
"devServerTarget": "angular-culqi:serve:production"
119-
}
120-
}
121106
}
122107
}
123-
}},
124-
"defaultProject": "angular-culqi"
125-
}
108+
}
109+
},
110+
"defaultProject": "culqi-angular"
111+
}

browserslist

-12
This file was deleted.

e2e/protractor.conf.js

-32
This file was deleted.

e2e/src/app.e2e-spec.ts

-23
This file was deleted.

e2e/src/app.po.ts

-11
This file was deleted.

e2e/tsconfig.json

-13
This file was deleted.

karma.conf.js

+17-5
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.github.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: {
19-
dir: require('path').join(__dirname, './coverage/angular-culqi'),
20-
reports: ['html', 'lcovonly', 'text-summary'],
21-
fixWebpackSourcePaths: true
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
26+
},
27+
coverageReporter: {
28+
dir: require('path').join(__dirname, './coverage/culqi-angular'),
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)