Skip to content

Commit

Permalink
feat: upgrade to Angular 11
Browse files Browse the repository at this point in the history
  • Loading branch information
toverux committed Dec 27, 2020
1 parent b1a9310 commit 0526399
Show file tree
Hide file tree
Showing 8 changed files with 1,739 additions and 1,595 deletions.
3 changes: 1 addition & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prefix": "swal",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/ngx-sweetalert2/tsconfig.lib.json",
"project": "projects/ngx-sweetalert2/ng-package.json"
Expand Down Expand Up @@ -86,7 +86,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
Expand Down
45 changes: 22 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,39 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~10.1.2",
"@angular/common": "~10.1.2",
"@angular/compiler": "~10.1.2",
"@angular/core": "~10.1.2",
"@angular/forms": "~10.1.2",
"@angular/platform-browser": "~10.1.2",
"@angular/platform-browser-dynamic": "~10.1.2",
"@angular/router": "~10.1.2",
"@angular/animations": "~11.0.5",
"@angular/common": "~11.0.5",
"@angular/compiler": "~11.0.5",
"@angular/core": "~11.0.5",
"@angular/forms": "~11.0.5",
"@angular/platform-browser": "~11.0.5",
"@angular/platform-browser-dynamic": "~11.0.5",
"@angular/router": "~11.0.5",
"rxjs": "~6.6.3",
"sweetalert2": "^10.3.0",
"tslib": "^2.0.0",
"zone.js": "~0.11.1"
"sweetalert2": "^10.12.6",
"tslib": "^2.0.3",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1001.2",
"@angular-devkit/build-ng-packagr": "~0.1001.2",
"@angular/cli": "~10.1.2",
"@angular/compiler-cli": "~10.1.2",
"@angular/language-service": "~10.1.2",
"@types/jasmine": "~3.5.10",
"@angular-devkit/build-angular": "~0.1100.5",
"@angular/cli": "~11.0.5",
"@angular/compiler-cli": "~11.0.5",
"@angular/language-service": "~11.0.5",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.8",
"@types/node": "^14.11.1",
"codelyzer": "^6.0.0",
"@types/node": "^14.14.16",
"codelyzer": "^6.0.1",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~6.0.0",
"karma": "~5.2.2",
"karma": "~5.2.3",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^10.1.0",
"ng-packagr": "^11.0.3",
"npm-run-all": "^4.1.5",
"semantic-release": "^17.1.2",
"ts-node": "~9.0.0",
"semantic-release": "^17.3.0",
"ts-node": "~9.1.1",
"tslint": "~6.1.0",
"typescript": "~4.0.3"
}
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-sweetalert2-demo/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class AppComponent {

private readonly dynamicTextChunks = 'This dynamic content is controlled by Angular'.split(' ');

private dynamicTextChunksIntervalHandle?: number;
private dynamicTextChunksIntervalHandle?: any;

private currentTextChunkOffset = 0;

Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-sweetalert2-demo/src/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
import 'zone.js/dist/zone-testing';

declare const require: any;

Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-sweetalert2/src/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

declare const require: any;

Expand Down
1 change: 1 addition & 0 deletions projects/ngx-sweetalert2/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"declarationMap": true,
"target": "es2015",
"declaration": true,
"inlineSources": true,
Expand Down
3 changes: 3 additions & 0 deletions projects/ngx-sweetalert2/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
},
"angularCompilerOptions": {
"enableIvy": false
}
Expand Down
Loading

0 comments on commit 0526399

Please sign in to comment.