Skip to content

docs: introduce help for migrate command #4830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 10, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions docs/man_pages/general/migrate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<% if (isJekyll) { %>---
title: tns migrate
position: 15
---<% } %>

# tns migrate

### Description

Migrates the app dependencies to a form compatible with NativeScript 6.0. Running this command will not affect the codebase of the application and you might need to do additional changes manually.

The migrate command will update **"webpack.config.js"**, **"karma.conf.js"**, **"tsconfig.tns.json"**(not for code sharing projects) and **"package-lock.json"**. The original files will be moved to **".migration_backup"** folder.
The following folders will be removed: **"hooks"**, **"platforms"** and **"node_modules"**. The **"hooks"** folder will also be backed up in **".migration_backup"** folder.

The **"nativescript-dev-sass"** and **"nativescript-dev-typescript"** dependencies will be replaced with **"node-sass"** and **"typescript"** respectively.
The **"nativescript-dev-less"** dependency will be removed, but to enable LESS CSS support the user should follow the steps in this<% if(isConsole) { %> feature request: https://github.com/NativeScript/nativescript-dev-webpack/issues/967.<% } %><% if(isHtml) { %> [feature request](https://github.com/NativeScript/nativescript-dev-webpack/issues/967).<% } %>

The following dependencies will be updated if needed:
* tns-core-modules
* tns-core-modules-widgets
* tns-platform-declarations
* nativescript-dev-webpack
* nativescript-camera
* nativescript-geolocation
* nativescript-imagepicker
* nativescript-permissions
* nativescript-social-share
* nativescript-ui-chart
* nativescript-ui-dataform
* nativescript-ui-gauge
* nativescript-ui-listview
* nativescript-ui-sidedrawer
* nativescript-ui-calendar
* nativescript-ui-autocomplete
* nativescript-cardview
* nativescript-datetimepicker
* kinvey-nativescript-sdk
* nativescript-plugin-firebase
* nativescript-vue
* nativescript-unit-test-runner
* karma-webpack
* karma-jasmine
* karma-mocha
* karma-chai
* karma-qunit
* karma


### Commands

Usage | Synopsis
------|-------
General | `$ tns migrate`

<% if(isHtml) { %>

### Related Commands

Command | Description
----------|----------
[update](update.html) | Updates the project with the latest versions of iOS/Android runtimes and cross-platform modules.
[help](help.html) | Lists the available commands or shows information about the selected command.
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
<% } %>
2 changes: 1 addition & 1 deletion docs/man_pages/general/package-manager-get.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if (isJekyll) { %>---
title: tns package-manager get
position: 18
position: 19
---<% } %>

# tns package-manager get
Expand Down
2 changes: 1 addition & 1 deletion docs/man_pages/general/package-manager-set.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if (isJekyll) { %>---
title: tns package-manager set
position: 17
position: 18
---<% } %>

# tns package-manager set
Expand Down
2 changes: 1 addition & 1 deletion docs/man_pages/general/update.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if (isJekyll) { %>---
title: tns update
position: 15
position: 16
---<% } %>

# tns update
Expand Down
2 changes: 1 addition & 1 deletion docs/man_pages/general/usage-reporting.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if (isJekyll) { %>---
title: tns usage-reporting
position: 16
position: 17
---<% } %>

# tns usage-reporting
Expand Down
1 change: 1 addition & 0 deletions docs/man_pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Command | Description
[doctor](general/doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
[info](general/info.html) | Displays version information about the NativeScript CLI, core modules, and runtimes.
[proxy](general/proxy.html) | Displays proxy settings.
[migrate](general/migrate.html) | Migrates the app dependencies to a form compatible with NativeScript 6.0.
[update](general/update.html) | Updates the project with the latest versions of iOS/Android runtimes and cross-platform modules.

## Project Development Commands
Expand Down