Skip to content

Commit

Permalink
feat(deps): upgrade to Angular v10
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Now library is built using Angular v10
  • Loading branch information
gund committed Jun 28, 2020
1 parent 414148b commit f6a6ef7
Show file tree
Hide file tree
Showing 8 changed files with 15,546 additions and 9,332 deletions.
24,698 changes: 15,415 additions & 9,283 deletions package-lock.json

Large diffs are not rendered by default.

39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@
},
"private": true,
"dependencies": {
"@angular/common": "^9.0.0",
"@angular/compiler": "^9.0.0",
"@angular/core": "^9.0.0",
"@angular/platform-browser": "^9.0.0",
"@angular/platform-browser-dynamic": "^9.0.0",
"rxjs": "^6.5.4",
"tslib": "^1.10.0",
"zone.js": "^0.10.2"
"@angular/common": "^10.0.1",
"@angular/compiler": "^10.0.1",
"@angular/core": "^10.0.1",
"@angular/platform-browser": "^10.0.1",
"@angular/platform-browser-dynamic": "^10.0.1",
"rxjs": "^6.5.5",
"tslib": "^2.0.0",
"zone.js": "^0.10.3"
},
"devDependencies": {
"@angular-builders/jest": "^9.0.0-beta.3",
"@angular-devkit/build-angular": "^0.900.0",
"@angular-devkit/build-ng-packagr": "^0.900.0",
"@angular/cli": "^9.0.0",
"@angular/compiler-cli": "^9.0.0",
"@angular/language-service": "^9.0.0",
"@angular-builders/jest": "^9.0.1",
"@angular-devkit/build-angular": "^0.1000.0",
"@angular-devkit/build-ng-packagr": "^0.1000.0",
"@angular/cli": "^10.0.0",
"@angular/compiler-cli": "^10.0.1",
"@angular/language-service": "^10.0.1",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@semantic-release/changelog": "^5.0.0",
Expand All @@ -48,22 +48,23 @@
"@types/jest": "^24.0.0",
"@types/node": "^13.5.1",
"codecov": "^3.6.5",
"codelyzer": "^5.2.1",
"codelyzer": "^5.2.2",
"commitizen": "^4.0.3",
"copyfiles": "^2.2.0",
"core-js": "^3.6.4",
"cz-conventional-changelog": "^3.1.0",
"husky": "^4.2.1",
"istanbul": "^0.4.5",
"jest": "^24.0.0",
"jest": "^26.0.0",
"lint-staged": "^10.0.3",
"ng-packagr": "^9.0.0",
"ng-packagr": "^10.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"semantic-release": "^17.0.1",
"ts-node": "^8.6.2",
"tslint": "^5.15.0",
"typescript": "~3.7.5"
"tsickle": "^0.38.1",
"tslint": "~6.1.0",
"typescript": "~3.9.5"
},
"config": {
"commitizen": {
Expand Down
3 changes: 3 additions & 0 deletions projects/ng-dynamic-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@
"@angular/common": "^9.0.0-rc.0",
"@angular/core": "^9.0.0-rc.0",
"rxjs": "^6.0.0"
},
"dependencies": {
"tslib": "^2.0.0"
}
}
2 changes: 1 addition & 1 deletion projects/ng-dynamic-component/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
Expand Down
2 changes: 1 addition & 1 deletion projects/ng-dynamic-component/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": ["jest", "node"]
Expand Down
29 changes: 29 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"typeRoots": ["node_modules/@types"],
"types": ["jest"],
"lib": ["es2018", "dom"],
"paths": {
"ng-dynamic-component": [
"projects/ng-dynamic-component/src/public-api.ts"
],
"ng-dynamic-component/*": ["projects/ng-dynamic-component/src/*"]
}
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}
39 changes: 12 additions & 27 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
/*
This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience.
It is not intended to be used to perform a compilation.
To learn more about this file see: https://angular.io/config/solution-tsconfig.
*/
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"typeRoots": ["node_modules/@types"],
"types": ["jest"],
"lib": ["es2018", "dom"],
"paths": {
"ng-dynamic-component": [
"projects/ng-dynamic-component/src/public-api.ts"
],
"ng-dynamic-component/*": ["projects/ng-dynamic-component/src/*"]
"files": [],
"references": [
{
"path": "./projects/ng-dynamic-component/tsconfig.lib.json"
}
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}
]
}
66 changes: 65 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,30 @@
"codelyzer"
],
"rules": {
"align": {
"options": [
"parameters",
"statements"
]
},
"array-type": false,
"arrow-parens": false,
"arrow-return-shorthand": true,
"curly": true,
"deprecation": {
"severity": "warning"
},
"eofline": true,
"import-blacklist": [
true,
"rxjs/Rx"
],
"import-spacing": true,
"indent": {
"options": [
"spaces"
]
},
"interface-name": false,
"max-classes-per-file": false,
"max-line-length": [
Expand Down Expand Up @@ -59,6 +74,20 @@
true,
"single"
],
"semicolon": {
"options": [
"always"
]
},
"space-before-function-paren": {
"options": {
"anonymous": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never",
"named": "never"
}
},
"trailing-comma": false,
"component-class-suffix": true,
"contextual-lifecycle": true,
Expand All @@ -73,7 +102,42 @@
"no-outputs-metadata-property": true,
"template-banana-in-box": true,
"template-no-negated-async": true,
"typedef-whitespace": {
"options": [
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
]
},
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true
}
, "variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-pascal-case"
]
},
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
}
}
}

0 comments on commit f6a6ef7

Please sign in to comment.