ツール /
コマンドラインインターフェース /
一般 / tns migrate
tns migrate
詳細
アプリの依存関係をNativeScript 6.0と互換性のあるフォームに移行します。このコマンドを実行しても、アプリケーションのコードベースには影響しないため、手動による追加の変更が必要な場合があります。
migrateコマンドは、
webpack.config.js、karma.conf.js、
tsconfig.tns.json(コード共有プロジェクト用ではない)、package-lock.jsonを更新します。
元のファイルは.migration_backupフォルダーに移動されます。
次のフォルダーが削除されます:hooks、platforms、node_modules。
hooksフォルダーも.migration_backupフォルダーにバックアップされます。
nativescript-dev-sassおよびnativescript-dev-typescript依存関係は、
それぞれnode-sassおよびtypescriptに置き換えられます。
nativescript-dev-less依存関係は削除されますが、LESS CSSサポートを有効にするには、ユーザーは次の機能リクエストの手順に従う必要があります:
https://github.com/NativeScript/nativescript-dev-webpack/issues/967t
必要に応じて、次の依存関係が更新されます。
- 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-vue-template-compiler
- nativescript-angular
- @angular/animiations
- @angular/platform-browser-dynamic
- @angular/common
- @angular/compiler
- @angular/compiler-cli
- @angular/core
- @angular/forms
- @angular/http
- @angular/platform-browser
- @angular/router
- @ngtools/webpack
- @angular-devkit/build-angular
- rxjs
- zone.js
- nativescript-unit-test-runner
- karma-webpack
- karma-jasmine
- karma-mocha
- karma-chai
- karma-qunit
- karma
コマンド
使用法 |
コマンドライン |
一般 |
$ tns migrate |
コマンド | 説明 |
update | iOS / Androidランタイムおよびクロスプラットフォームモジュールの最新バージョンでプロジェクトを更新します。 |
help | 使用可能なコマンドを一覧表示するか、選択したコマンドに関する情報を表示します。 |
doctor | NativeScript CLIが正常に動作しない可能性のある構成の問題についてシステムをチェックします。 |