Skip to content

Commit 53b446c

Browse files
committed
feat: update to angular 10
1 parent 74bf535 commit 53b446c

File tree

6 files changed

+2614
-2154
lines changed

6 files changed

+2614
-2154
lines changed

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,24 @@
4343
"pkgRoot": "dist/ngx-raptorize"
4444
},
4545
"dependencies": {
46-
"@angular/animations": "~9.0.7",
47-
"@angular/common": "~9.0.7",
48-
"@angular/compiler": "~9.0.7",
49-
"@angular/core": "~9.0.7",
50-
"@angular/forms": "~9.0.7",
51-
"@angular/platform-browser": "~9.0.7",
52-
"@angular/platform-browser-dynamic": "~9.0.7",
53-
"@angular/router": "~9.0.7",
54-
"rxjs": "~6.5.4",
55-
"tslib": "^1.11.1",
46+
"@angular/animations": "~10.1.4",
47+
"@angular/common": "~10.1.4",
48+
"@angular/compiler": "~10.1.4",
49+
"@angular/core": "~10.1.4",
50+
"@angular/forms": "~10.1.4",
51+
"@angular/platform-browser": "~10.1.4",
52+
"@angular/platform-browser-dynamic": "~10.1.4",
53+
"@angular/router": "~10.1.4",
54+
"rxjs": "~6.6.3",
55+
"tslib": "^2.0.0",
5656
"zone.js": "~0.10.3"
5757
},
5858
"devDependencies": {
59-
"@angular-devkit/build-angular": "~0.900.7",
60-
"@angular-devkit/build-ng-packagr": "~0.900.7",
61-
"@angular/cli": "~9.0.7",
62-
"@angular/compiler-cli": "~9.0.7",
63-
"@angular/language-service": "~9.0.7",
59+
"@angular-devkit/build-angular": "~0.1001.4",
60+
"@angular-devkit/build-ng-packagr": "~0.1001.4",
61+
"@angular/cli": "~10.1.4",
62+
"@angular/compiler-cli": "~10.1.4",
63+
"@angular/language-service": "~10.1.4",
6464
"@commitlint/cli": "^8.3.5",
6565
"@commitlint/config-conventional": "^8.3.4",
6666
"@types/jasmine": "~3.5.10",
@@ -69,18 +69,18 @@
6969
"codelyzer": "^5.1.2",
7070
"husky": "^4.2.3",
7171
"jasmine-core": "~3.5.0",
72-
"jasmine-spec-reporter": "~5.0.1",
73-
"karma": "~4.4.1",
72+
"jasmine-spec-reporter": "~5.0.0",
73+
"karma": "~5.0.0",
7474
"karma-chrome-launcher": "~3.1.0",
75-
"karma-coverage-istanbul-reporter": "~2.1.1",
76-
"karma-jasmine": "~3.1.1",
77-
"karma-jasmine-html-reporter": "^1.5.3",
78-
"ng-packagr": "^9.0.3",
75+
"karma-coverage-istanbul-reporter": "~3.0.2",
76+
"karma-jasmine": "~4.0.0",
77+
"karma-jasmine-html-reporter": "^1.5.0",
78+
"ng-packagr": "^10.1.0",
7979
"prettier": "^1.19.1",
80-
"protractor": "~5.4.3",
80+
"protractor": "~7.0.0",
8181
"semantic-release": "^17.0.4",
8282
"ts-node": "~8.8.1",
8383
"tslint": "~6.1.0",
84-
"typescript": "~3.7.5"
84+
"typescript": "~4.0.3"
8585
}
8686
}

projects/ngx-raptorize/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
"publishConfig": {
1010
"access": "public"
1111
},
12+
"dependencies": {
13+
"tslib": "^2.0.0"
14+
},
1215
"peerDependencies": {
1316
"@angular/common": "^9.0.7",
14-
"@angular/core": "^9.0.7",
15-
"tslib": "^1.10.0"
17+
"@angular/core": "^9.0.7"
1618
}
1719
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"declaration": false,
88
"downlevelIteration": true,
99
"experimentalDecorators": true,
10-
"module": "esnext",
10+
"module": "es2020",
1111
"moduleResolution": "node",
1212
"importHelpers": true,
1313
"target": "es2015",

tslint.json

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@
22
"extends": "tslint:recommended",
33
"rulesDirectory": ["codelyzer"],
44
"rules": {
5+
"align": {
6+
"options": ["parameters", "statements"]
7+
},
58
"array-type": false,
69
"arrow-parens": false,
10+
"arrow-return-shorthand": true,
711
"deprecation": {
812
"severity": "warning"
913
},
1014
"import-blacklist": [true, "rxjs/Rx"],
15+
"curly": true,
1116
"interface-name": false,
1217
"max-classes-per-file": false,
18+
"eofline": true,
1319
"max-line-length": [true, 140],
20+
"import-spacing": true,
21+
"indent": {
22+
"options": ["spaces"]
23+
},
1424
"member-access": false,
1525
"member-ordering": [
1626
true,
@@ -46,10 +56,53 @@
4656
"no-output-native": true,
4757
"no-output-on-prefix": true,
4858
"no-output-rename": true,
59+
"semicolon": {
60+
"options": ["always"]
61+
},
62+
"space-before-function-paren": {
63+
"options": {
64+
"anonymous": "never",
65+
"asyncArrow": "always",
66+
"constructor": "never",
67+
"method": "never",
68+
"named": "never"
69+
}
70+
},
4971
"no-outputs-metadata-property": true,
5072
"template-banana-in-box": true,
5173
"template-no-negated-async": true,
74+
"typedef-whitespace": {
75+
"options": [
76+
{
77+
"call-signature": "nospace",
78+
"index-signature": "nospace",
79+
"parameter": "nospace",
80+
"property-declaration": "nospace",
81+
"variable-declaration": "nospace"
82+
},
83+
{
84+
"call-signature": "onespace",
85+
"index-signature": "onespace",
86+
"parameter": "onespace",
87+
"property-declaration": "onespace",
88+
"variable-declaration": "onespace"
89+
}
90+
]
91+
},
5292
"use-lifecycle-interface": true,
53-
"use-pipe-transform-interface": true
93+
"use-pipe-transform-interface": true,
94+
"variable-name": {
95+
"options": ["ban-keywords", "check-format", "allow-pascal-case"]
96+
},
97+
"whitespace": {
98+
"options": [
99+
"check-branch",
100+
"check-decl",
101+
"check-operator",
102+
"check-separator",
103+
"check-type",
104+
"check-typecast"
105+
]
106+
}
54107
}
55108
}

0 commit comments

Comments
 (0)