Skip to content

Commit b3d2bba

Browse files
committed
2 parents 63f77aa + 3a25996 commit b3d2bba

File tree

8 files changed

+38
-29
lines changed

8 files changed

+38
-29
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# dependencies
1111
/node_modules
1212
package-lock.json
13+
yarn.lock
1314

1415
# profiling files
1516
chrome-profiler-events*.json

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ CoreUI is an Open Source UI Kit built on top of Bootstrap 4. CoreUI is the faste
5555
Before you begin, make sure your development environment includes `Node.js®` and an `npm` package manager.
5656

5757
###### Node.js
58-
Angular 11 requires `Node.js` version 10.19 or later.
58+
Angular 12 requires `Node.js` version 12.20.0 or later.
5959

6060
- To check your version, run `node -v` in a terminal/console window.
6161
- To get `Node.js`, go to [nodejs.org](https://nodejs.org/).
@@ -66,7 +66,7 @@ Install the Angular CLI globally using a terminal/console window.
6666
npm install -g @angular/cli
6767
```
6868

69-
##### Update to Angular 11
69+
##### Update to Angular 12
7070
see: [https://update.angular.io](https://update.angular.io)
7171

7272
## CoreUI Installation

angular.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,14 @@
2626
"node_modules/simple-line-icons/css/simple-line-icons.css",
2727
"src/scss/style.scss"
2828
],
29-
"scripts": []
29+
"scripts": [],
30+
"aot": false,
31+
"vendorChunk": true,
32+
"extractLicenses": false,
33+
"buildOptimizer": false,
34+
"sourceMap": true,
35+
"optimization": false,
36+
"namedChunks": true
3037
},
3138
"configurations": {
3239
"production": {
@@ -51,7 +58,8 @@
5158
"vendorChunk": false,
5259
"buildOptimizer": true
5360
}
54-
}
61+
},
62+
"defaultConfiguration": ""
5563
},
5664
"serve": {
5765
"builder": "@angular-devkit/build-angular:dev-server",

package.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"ng": "ng",
1919
"postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points",
2020
"build-lib:dev": "ng build @coreui/angular --watch",
21-
"build-lib:prod": "ng build @coreui/angular --prod",
21+
"build-lib:prod": "ng build @coreui/angular --configuration production",
2222
"test-lib:dev": "ng test @coreui/angular",
2323
"test-lib:prod": "ng test @coreui/angular --karmaConfig=projects/coreui/angular/karma.conf.github.js",
2424
"prestart": "npm run postinstall",
@@ -33,43 +33,43 @@
3333
},
3434
"private": true,
3535
"dependencies": {
36-
"@angular/animations": "^11.2.14",
37-
"@angular/common": "^11.2.14",
38-
"@angular/compiler": "^11.2.14",
39-
"@angular/core": "^11.2.14",
40-
"@angular/forms": "^11.2.14",
41-
"@angular/localize": "^11.2.14",
42-
"@angular/platform-browser": "^11.2.14",
43-
"@angular/platform-browser-dynamic": "^11.2.14",
44-
"@angular/router": "^11.2.14",
45-
"rxjs": "^6.6.7",
46-
"tslib": "^2.3.1",
47-
"zone.js": "^0.11.5"
36+
"@angular/animations": "^12.2.3",
37+
"@angular/common": "^12.2.3",
38+
"@angular/compiler": "^12.2.3",
39+
"@angular/core": "^12.2.3",
40+
"@angular/forms": "^12.2.3",
41+
"@angular/localize": "^12.2.3",
42+
"@angular/platform-browser": "^12.2.3",
43+
"@angular/platform-browser-dynamic": "^12.2.3",
44+
"@angular/router": "^12.2.3",
45+
"rxjs": "^6.6.3",
46+
"tslib": "^2.1.0",
47+
"zone.js": "~0.11.4"
4848
},
4949
"devDependencies": {
50-
"@angular-devkit/build-angular": "^0.1102.18",
51-
"@angular/cli": "^11.2.18",
52-
"@angular/compiler-cli": "^11.2.14",
53-
"@angular/language-service": "^11.2.14",
50+
"@angular-devkit/build-angular": "^12.2.3",
51+
"@angular/cli": "^12.2.3",
52+
"@angular/compiler-cli": "^12.2.3",
53+
"@angular/language-service": "^12.2.3",
5454
"@coreui/coreui": "^2.1.16",
5555
"@types/jasmine": "^3.6.11",
5656
"@types/node": "^14.18.12",
5757
"codelyzer": "^6.0.2",
5858
"jasmine-core": "~3.10.1",
5959
"jasmine-spec-reporter": "~5.0.2",
60-
"karma": "^5.2.3",
60+
"karma": "^6.3.4",
6161
"karma-chrome-launcher": "~3.1.1",
6262
"karma-coverage": "~2.0.3",
6363
"karma-jasmine": "~4.0.1",
6464
"karma-jasmine-html-reporter": "^1.7.0",
65-
"ng-packagr": "^11.2.4",
65+
"ng-packagr": "^12.2.1",
6666
"ngx-perfect-scrollbar": "^10.1.1",
6767
"protractor": "~7.0.0",
6868
"shelljs": "^0.8.5",
6969
"simple-line-icons": "^2.5.5",
7070
"ts-node": "^9.1.1",
7171
"tslint": "~6.1.3",
72-
"typescript": "~4.0.8"
72+
"typescript": "~4.3.8"
7373
},
7474
"engines": {
7575
"node": ">= 10.19",

projects/coreui/angular/src/test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
22

3-
import 'zone.js/dist/zone';
4-
import 'zone.js/dist/zone-testing';
3+
import 'zone.js';
4+
import 'zone.js/testing';
55
import { getTestBed } from '@angular/core/testing';
66
import {
77
BrowserDynamicTestingModule,

src/environments/environment.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ export const environment = {
1212
* import the following file, but please comment it out in production mode
1313
* because it will have performance impact when throw error
1414
*/
15-
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
15+
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

src/polyfills.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import 'core-js/es/reflect';
6666
/***************************************************************************************************
6767
* Zone JS is required by default for Angular itself.
6868
*/
69-
import 'zone.js/dist/zone'; // Included with Angular CLI.
69+
import 'zone.js'; // Included with Angular CLI.
7070

7171

7272
/***************************************************************************************************

src/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
22

3-
import 'zone.js/dist/zone-testing';
3+
import 'zone.js/testing';
44
import { getTestBed } from '@angular/core/testing';
55
import {
66
BrowserDynamicTestingModule,

0 commit comments

Comments
 (0)