Skip to content

Commit ccf90a0

Browse files
committed
feat: Angular 11 and TypeScript 4
1 parent 8d913e7 commit ccf90a0

File tree

4 files changed

+38
-40
lines changed

4 files changed

+38
-40
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@
2525
},
2626
"schematics": "./src/collection.json",
2727
"dependencies": {
28-
"@angular-devkit/core": "~10.1.0",
29-
"@angular-devkit/schematics": "~10.1.0",
28+
"@angular-devkit/core": "~11.0.0",
29+
"@angular-devkit/schematics": "~11.0.0",
3030
"@nativescript/tslint-rules": "~0.0.5",
3131
"@phenomnomnominal/tsquery": "^4.1.0",
3232
"strip-json-comments": "~3.1.1"
3333
},
3434
"devDependencies": {
35-
"@angular/cli": "~10.1.0",
36-
"@schematics/angular": "~10.1.0",
35+
"@angular/cli": "~11.0.0",
36+
"@schematics/angular": "~11.0.0",
3737
"@types/jasmine": "~3.5.0",
3838
"@types/jasminewd2": "~2.0.3",
3939
"@types/node": "^12.11.1",
4040
"conventional-changelog-cli": "^2.0.1",
4141
"jasmine": "^3.5.0",
4242
"jasmine-spec-reporter": "^5.0.2",
4343
"tslint": "~6.1.0",
44-
"typescript": "~3.9.0"
44+
"typescript": "~4.0.0"
4545
},
4646
"repository": {
4747
"type": "git",

src/generate/component/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default function(options: ComponentOptions): Rule {
5353
options.spec = false;
5454
}
5555

56-
const projectObject = getProjectObject(tree, options.project);
56+
const projectObject: any = getProjectObject(tree, options.project);
5757
const style = (projectObject && projectObject.schematics && projectObject.schematics['@schematics/angular:component']
5858
&& projectObject.schematics['@schematics/angular:component'].style);
5959
if (style) {

src/ng-new/application/_files/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@
44
"license": "SEE LICENSE IN <your-license-filename>",
55
"version": "0.0.0",
66
"dependencies": {
7-
"@angular/animations": "~10.1.0",
8-
"@angular/common": "~10.1.0",
9-
"@angular/compiler": "~10.1.0",
10-
"@angular/core": "~10.1.0",
11-
"@angular/forms": "~10.1.0",
12-
"@angular/platform-browser": "~10.1.0",
13-
"@angular/platform-browser-dynamic": "~10.1.0",
14-
"@angular/router": "~10.1.0",
15-
"@nativescript/angular": "~10.1.0",
7+
"@angular/animations": "~11.0.0",
8+
"@angular/common": "~11.0.0",
9+
"@angular/compiler": "~11.0.0",
10+
"@angular/core": "~11.0.0",
11+
"@angular/forms": "~11.0.0",
12+
"@angular/platform-browser": "~11.0.0",
13+
"@angular/platform-browser-dynamic": "~11.0.0",
14+
"@angular/router": "~11.0.0",
15+
"@nativescript/angular": "~11.0.0",
1616
"@nativescript/core": "~7.0.0",<% if(theme) { %>
17-
"@nativescript/theme": "~2.5.0",
17+
"@nativescript/theme": "~3.0.0",
1818
<% } %>"reflect-metadata": "~0.1.12",
1919
"rxjs": "~6.6.0",
20-
"tslib": "1.10.0",
20+
"tslib": "~2.0.0",
2121
"zone.js": "~0.11.1"
2222
},
2323
"devDependencies": {
24-
"@angular/cli": "~10.1.0",
25-
"@angular/compiler-cli": "~10.1.0",
26-
"@angular-devkit/core": "~10.1.0",<% if(webpack) { %>
24+
"@angular/cli": "~11.0.0",
25+
"@angular/compiler-cli": "~11.0.0",
26+
"@angular-devkit/core": "~11.0.0",<% if(webpack) { %>
2727
"@nativescript/webpack": "~3.0.0",
28-
"@ngtools/webpack": "~10.1.0",
29-
<% } %>"typescript": "~3.9.0"
28+
"@ngtools/webpack": "~11.0.0",
29+
<% } %>"typescript": "~4.0.0"
3030
}
3131
}

src/ng-new/shared/_files/package.json

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,31 @@
1212
"android": "tns run android --no-hmr",
1313
"ios": "tns run ios --no-hmr",
1414
"mobile": "tns run",
15-
"preview": "tns preview",
16-
"ngcc": "ngcc --properties es2015 module main --first-only",
17-
"postinstall": "npm run ngcc"
15+
"preview": "tns preview"
1816
},
1917
"private": true,
2018
"dependencies": {
21-
"@angular/animations": "~10.1.0",
22-
"@angular/common": "~10.1.0",
23-
"@angular/compiler": "~10.1.0",
24-
"@angular/core": "~10.1.0",
25-
"@angular/forms": "~10.1.0",
26-
"@angular/platform-browser": "~10.1.0",
27-
"@angular/platform-browser-dynamic": "~10.1.0",
28-
"@angular/router": "~10.1.0",
29-
"core-js": "^3.6.0",
30-
"@nativescript/angular": "~10.1.0",
19+
"@angular/animations": "~11.0.0",
20+
"@angular/common": "~11.0.0",
21+
"@angular/compiler": "~11.0.0",
22+
"@angular/core": "~11.0.0",
23+
"@angular/forms": "~11.0.0",
24+
"@angular/platform-browser": "~11.0.0",
25+
"@angular/platform-browser-dynamic": "~11.0.0",
26+
"@angular/router": "~11.0.0",
27+
"@nativescript/angular": "~11.0.0",
28+
"core-js": "^3.8.0",
3129
"@nativescript/core": "~7.0.0",<% if(theme) { %>
32-
"@nativescript/theme": "~2.5.0",
30+
"@nativescript/theme": "~3.0.0",
3331
<% } %>"reflect-metadata": "~0.1.12",
3432
"rxjs": "~6.6.0",
35-
"tslib": "1.10.0",
33+
"tslib": "~2.0.0",
3634
"zone.js": "~0.11.1"
3735
},
3836
"devDependencies": {
39-
"@angular/cli": "~10.1.0",
40-
"@angular/compiler-cli": "~10.1.0",
41-
"@angular-devkit/build-angular": "~0.1001.0",
37+
"@angular/cli": "~11.0.0",
38+
"@angular/compiler-cli": "~11.0.0",
39+
"@angular-devkit/build-angular": "~0.1100.0",
4240
"@nativescript/tslint-rules": "~0.0.5",
4341
"@types/jasmine": "~3.5.0",
4442
"@types/jasminewd2": "~2.0.3",

0 commit comments

Comments
 (0)