Skip to content

Commit 71167d5

Browse files
authored
chore: update newly created projects to use the latest {N} and Angular packages (#175)
1 parent 7d9622d commit 71167d5

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

src/add-ns/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,16 +263,16 @@ const addDependencies = () => (tree: Tree, context: SchematicContext) => {
263263

264264
// @UPGRADE: Update all versions whenever {N} version updates
265265
const depsToAdd = {
266-
'nativescript-angular': '~7.0.0',
266+
'nativescript-angular': '~7.1.0',
267267
'nativescript-theme-core': '~1.0.4',
268268
'reflect-metadata': '~0.1.8',
269-
'tns-core-modules': '~5.0.0'
269+
'tns-core-modules': '~5.1.1'
270270
};
271271
packageJson.dependencies = Object.assign({}, depsToAdd, packageJson.dependencies);
272272

273273
const devDepsToAdd = {
274-
'nativescript-dev-webpack': '^0.17.0',
275-
'@nativescript/schematics': '~0.3.0',
274+
'nativescript-dev-webpack': '^0.18.0',
275+
'@nativescript/schematics': '~0.4.0',
276276
};
277277
packageJson.devDependencies = Object.assign({}, devDepsToAdd, packageJson.devDependencies);
278278

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@
66
"id": "org.nativescript.<%= utils.sanitize(name) %>"
77
},
88
"dependencies": {
9-
"@angular/animations": "~7.0.0",
10-
"@angular/common": "~7.0.0",
11-
"@angular/compiler": "~7.0.0",
12-
"@angular/core": "~7.0.0",
13-
"@angular/forms": "~7.0.0",
14-
"@angular/http": "~7.0.0",
15-
"@angular/platform-browser": "~7.0.0",
16-
"@angular/platform-browser-dynamic": "~7.0.0",
17-
"@angular/router": "~7.0.0",
18-
"nativescript-angular": "~7.0.0",<% if(theme) { %>
9+
"@angular/animations": "~7.1.0",
10+
"@angular/common": "~7.1.0",
11+
"@angular/compiler": "~7.1.0",
12+
"@angular/core": "~7.1.0",
13+
"@angular/forms": "~7.1.0",
14+
"@angular/http": "~7.1.0",
15+
"@angular/platform-browser": "~7.1.0",
16+
"@angular/platform-browser-dynamic": "~7.1.0",
17+
"@angular/router": "~7.1.0",
18+
"nativescript-angular": "~7.1.0",<% if(theme) { %>
1919
"nativescript-theme-core": "~1.0.4",
2020
<% } %>"reflect-metadata": "~0.1.8",
21-
"rxjs": "~6.2.0",
22-
"tns-core-modules": "~5.0.0",
21+
"rxjs": "~6.3.3",
22+
"tns-core-modules": "~5.1.0",
2323
"zone.js": "^0.8.26"
2424
},
2525
"devDependencies": {
26-
"@angular/cli": "^7.0.0",
27-
"@angular/compiler-cli": "~7.0.0",
28-
"@angular-devkit/core": "^0.8.0",
29-
"@nativescript/schematics": "~0.3.0",
26+
"@angular/cli": "^7.1.0",
27+
"@angular/compiler-cli": "~7.1.0",
28+
"@angular-devkit/core": "~7.1.0",
29+
"@nativescript/schematics": "~0.4.0",
3030
"nativescript-dev-typescript": "~0.7.0",<% if(webpack) {%>
3131
"nativescript-dev-webpack": "^0.18.0",
32-
"@ngtools/webpack": "~7.0.5",
32+
"@ngtools/webpack": "~7.1.0",
3333
<% } %>"typescript": "~3.1.1"
3434
}
3535
}

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,28 @@
1616
},
1717
"private": true,
1818
"dependencies": {
19-
"@angular/animations": "~7.0.0",
20-
"@angular/common": "~7.0.0",
21-
"@angular/compiler": "~7.0.0",
22-
"@angular/core": "~7.0.0",
23-
"@angular/forms": "~7.0.0",
24-
"@angular/http": "~7.0.0",
25-
"@angular/platform-browser": "~7.0.0",
26-
"@angular/platform-browser-dynamic": "~7.0.0",
27-
"@angular/router": "~7.0.0",
19+
"@angular/animations": "~7.1.0",
20+
"@angular/common": "~7.1.0",
21+
"@angular/compiler": "~7.1.0",
22+
"@angular/core": "~7.1.0",
23+
"@angular/forms": "~7.1.0",
24+
"@angular/http": "~7.1.0",
25+
"@angular/platform-browser": "~7.1.0",
26+
"@angular/platform-browser-dynamic": "~7.1.0",
27+
"@angular/router": "~7.1.0",
2828
"core-js": "^2.5.4",
29-
"nativescript-angular": "~7.0.0",<% if(theme) { %>
29+
"nativescript-angular": "~7.1.0",<% if(theme) { %>
3030
"nativescript-theme-core": "~1.0.4",
3131
<% } %>"reflect-metadata": "~0.1.8",
32-
"rxjs": "^6.2.0",
33-
"tns-core-modules": "~5.0.0",
32+
"rxjs": "~6.3.3",
33+
"tns-core-modules": "~5.1.1",
3434
"zone.js": "^0.8.26"
3535
},
3636
"devDependencies": {
37-
"@angular/cli": "^7.0.0",
38-
"@angular/compiler-cli": "~7.0.0",
39-
"@angular-devkit/build-angular": "^0.8.0",
40-
"@nativescript/schematics": "~0.3.0",
37+
"@angular/cli": "^7.1.0",
38+
"@angular/compiler-cli": "~7.1.0",
39+
"@angular-devkit/build-angular": "~0.11.4",
40+
"@nativescript/schematics": "~0.4.0",
4141
"@types/jasmine": "2.8.6",
4242
"@types/jasminewd2": "~2.0.3",
4343
"@types/node": "~8.9.4",
@@ -50,7 +50,7 @@
5050
"karma-jasmine": "~1.1.1",
5151
"karma-jasmine-html-reporter": "^0.2.2",
5252
"nativescript-dev-typescript": "~0.7.0",
53-
"nativescript-dev-webpack": "^0.17.0",
53+
"nativescript-dev-webpack": "^0.18.0",
5454
"protractor": "~5.3.0",
5555
"ts-node": "~5.0.1",
5656
"tslint": "~5.9.1",

0 commit comments

Comments
 (0)