Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/add-ns/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function (options: MigrationOptions): Rule {
addRunScriptsToPackageJson,
addNativeScriptProjectId,
excludeNsFilesFromTsconfig,

options.skipAutoGeneratedComponent ?
noop() :
addSampleComponent(options.nsExtension, options.webExtension, options.project),
Expand Down Expand Up @@ -265,15 +265,15 @@ const addDependencies = () => (tree: Tree, context: SchematicContext) => {

// @UPGRADE: Update all versions whenever {N} version updates
const depsToAdd = {
'nativescript-angular': '~7.1.0',
'nativescript-angular': '~7.2.0',
'nativescript-theme-core': '~1.0.4',
'reflect-metadata': '~0.1.8',
'tns-core-modules': '~5.1.1'
'reflect-metadata': '~0.1.12',
'tns-core-modules': '~5.2.0'
};
packageJson.dependencies = Object.assign({}, depsToAdd, packageJson.dependencies);

const devDepsToAdd = {
'nativescript-dev-webpack': '^0.18.0',
'nativescript-dev-webpack': '^0.20.0',
'@nativescript/schematics': '~0.4.0',
};
packageJson.devDependencies = Object.assign({}, devDepsToAdd, packageJson.devDependencies);
Expand Down
66 changes: 33 additions & 33 deletions src/ng-new/application/_files/package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"name": "<%= utils.classify(name) %>",
"license": "SEE LICENSE IN <your-license-filename>",
"version": "0.0.0",
"nativescript": {
"id": "org.nativescript.<%= utils.sanitize(name) %>"
},
"dependencies": {
"@angular/animations": "~7.1.0",
"@angular/common": "~7.1.0",
"@angular/compiler": "~7.1.0",
"@angular/core": "~7.1.0",
"@angular/forms": "~7.1.0",
"@angular/http": "~7.1.0",
"@angular/platform-browser": "~7.1.0",
"@angular/platform-browser-dynamic": "~7.1.0",
"@angular/router": "~7.1.0",
"nativescript-angular": "~7.1.0",<% if(theme) { %>
"nativescript-theme-core": "~1.0.4",
<% } %>"reflect-metadata": "~0.1.8",
"rxjs": "~6.3.3",
"tns-core-modules": "~5.1.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/cli": "^7.1.0",
"@angular/compiler-cli": "~7.1.0",
"@angular-devkit/core": "~7.1.0",
"@nativescript/schematics": "~0.4.0",
"nativescript-dev-typescript": "~0.7.0",<% if(webpack) {%>
"nativescript-dev-webpack": "^0.18.0",
"@ngtools/webpack": "~7.1.0",
<% } %>"typescript": "~3.1.1"
}
"name": "<%= utils.classify(name) %>",
"license": "SEE LICENSE IN <your-license-filename>",
"version": "0.0.0",
"nativescript": {
"id": "org.nativescript.<%= utils.sanitize(name) %>"
},
"dependencies": {
"@angular/animations": "~7.2.0",
"@angular/common": "~7.2.0",
"@angular/compiler": "~7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/http": "~7.2.0",
"@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0",
"nativescript-angular": "~7.2.0",<% if(theme) { %>
"nativescript-theme-core": "~1.0.4",
<% } %>"reflect-metadata": "~0.1.12",
"rxjs": "~6.3.3",
"tns-core-modules": "~5.2.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/cli": "^7.2.0",
"@angular/compiler-cli": "~7.2.0",
"@angular-devkit/core": "~7.2.0",
"@nativescript/schematics": "~0.4.0",
"nativescript-dev-typescript": "~0.8.0",<% if(webpack) { %>
"nativescript-dev-webpack": "^0.20.0",
"@ngtools/webpack": "~7.2.0",
<% } %>"typescript": "~3.1.1"
}
}
34 changes: 17 additions & 17 deletions src/ng-new/shared/_files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~7.1.0",
"@angular/common": "~7.1.0",
"@angular/compiler": "~7.1.0",
"@angular/core": "~7.1.0",
"@angular/forms": "~7.1.0",
"@angular/http": "~7.1.0",
"@angular/platform-browser": "~7.1.0",
"@angular/platform-browser-dynamic": "~7.1.0",
"@angular/router": "~7.1.0",
"@angular/animations": "~7.2.0",
"@angular/common": "~7.2.0",
"@angular/compiler": "~7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/http": "~7.2.0",
"@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0",
"core-js": "^2.5.4",
"nativescript-angular": "~7.1.0",<% if(theme) { %>
"nativescript-angular": "~7.2.0",<% if(theme) { %>
"nativescript-theme-core": "~1.0.4",
<% } %>"reflect-metadata": "~0.1.8",
<% } %>"reflect-metadata": "~0.1.12",
"rxjs": "~6.3.3",
"tns-core-modules": "~5.1.1",
"tns-core-modules": "~5.2.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/cli": "^7.1.0",
"@angular/compiler-cli": "~7.1.0",
"@angular/cli": "^7.2.0",
"@angular/compiler-cli": "~7.2.0",
"@angular-devkit/build-angular": "~0.11.4",
"@nativescript/schematics": "~0.4.0",
"@types/jasmine": "2.8.6",
Expand All @@ -51,11 +51,11 @@
"karma-coverage-istanbul-reporter": "~2.0.0",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"nativescript-dev-typescript": "~0.7.0",
"nativescript-dev-webpack": "^0.18.0",
"nativescript-dev-typescript": "~0.8.0",
"nativescript-dev-webpack": "^0.20.0",
"protractor": "~5.3.0",
"ts-node": "~5.0.1",
"tslint": "~5.9.1",
"typescript": "~3.1.1"
}
}
}