Skip to content

Commit

Permalink
feat: update to angular 12
Browse files Browse the repository at this point in the history
update angular version
update peerDependencies
  • Loading branch information
geromegrignon committed Jul 8, 2021
1 parent 72208ca commit 01763fd
Show file tree
Hide file tree
Showing 8 changed files with 8,838 additions and 10,855 deletions.
12 changes: 9 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand Down Expand Up @@ -56,7 +61,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down
19,623 changes: 8,800 additions & 10,823 deletions package-lock.json

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"contributors:add": "all-contributors add",
"hooks:pre-commit": "node hooks/pre-commit.js",
"commit": "git-cz",
"build:lib": "ng build @ngneat/edit-in-place --prod && npm run schematics:build && npm run copy",
"build:lib": "ng build @ngneat/edit-in-place --configuration production && npm run schematics:build && npm run copy",
"test:lib": "ng test @ngneat/edit-in-place",
"release": "cd projects/ngneat/edit-in-place && standard-version --infile ../../../CHANGELOG.md",
"copy": "npm run schematics:copy && cp -r README.md dist/ngneat/edit-in-place",
Expand All @@ -47,27 +47,27 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~11.0.0",
"@angular/common": "~11.0.0",
"@angular/compiler": "~11.0.0",
"@angular/core": "~11.0.0",
"@angular/forms": "~11.0.0",
"@angular/localize": "~11.0.0",
"@angular/platform-browser": "~11.0.0",
"@angular/platform-browser-dynamic": "~11.0.0",
"@angular/router": "~11.0.0",
"@ng-bootstrap/ng-bootstrap": "^7.0.0",
"@ngneat/lib": "^1.0.4",
"bootstrap": "^4.5.0",
"@angular/animations": "~12.1.1",
"@angular/common": "~12.1.1",
"@angular/compiler": "~12.1.1",
"@angular/core": "~12.1.1",
"@angular/forms": "~12.1.1",
"@angular/localize": "~12.1.1",
"@angular/platform-browser": "~12.1.1",
"@angular/platform-browser-dynamic": "~12.1.1",
"@angular/router": "~12.1.1",
"@ng-bootstrap/ng-bootstrap": "^10.0.0",
"@ngneat/lib": "^2.0.1",
"bootstrap": "^5.0.2",
"rxjs": "~6.5.5",
"tslib": "^2.0.0",
"zone.js": "~0.10.3"
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1100.1",
"@angular-devkit/build-angular": "~12.1.1",
"@angular-devkit/build-ng-packagr": "~0.1000.3",
"@angular/cli": "~11.0.1",
"@angular/compiler-cli": "~11.0.0",
"@angular/cli": "~12.1.1",
"@angular/compiler-cli": "~12.1.1",
"@commitlint/cli": "8.1.0",
"@commitlint/config-angular": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
Expand All @@ -76,26 +76,26 @@
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"all-contributors-cli": "^6.8.1",
"angular-cli-ghpages": "^0.6.2",
"angular-cli-ghpages": "^1.0.0-rc.2",
"codelyzer": "^6.0.1",
"cross-env": "^5.2.0",
"git-cz": "^3.2.1",
"husky": "^3.0.1",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.1.1",
"karma": "~6.3.4",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~3.3.0",
"karma-jasmine-html-reporter": "^1.5.0",
"lint-staged": "^9.2.0",
"ng-packagr": "^11.0.2",
"ng-packagr": "^12.1.0",
"prettier": "^2.0.5",
"protractor": "~7.0.0",
"standard-version": "^6.0.1",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~4.0.5"
"typescript": "~4.3.5"
},
"config": {
"commitizen": {
Expand Down
4 changes: 2 additions & 2 deletions projects/ngneat/edit-in-place/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "A flexible and unopinionated edit in place library for Angular applications",
"schematics": "./schematics/collection.json",
"peerDependencies": {
"@angular/common": ">=8.0.0 <12.0.0",
"@angular/core": ">=8.0.0 <12.0.0"
"@angular/common": ">=8.0.0",
"@angular/core": ">=8.0.0"
},
"dependencies": {
"tslib": "^2.0.0"
Expand Down
4 changes: 2 additions & 2 deletions projects/ngneat/edit-in-place/src/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import 'zone.js';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
2 changes: 1 addition & 1 deletion src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import '@angular/localize/init';
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'zone.js'; // Included with Angular CLI.

/***************************************************************************************************
* APPLICATION IMPORTS
Expand Down
2 changes: 1 addition & 1 deletion src/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import 'zone.js/dist/zone-testing';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

Expand Down

0 comments on commit 01763fd

Please sign in to comment.