NativeScript / NativeScript/nativescript-cli
Plugin update won't work with locally developed plugin
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
Hello,
Description
I created a tns app with tns create MyTnsApp --tsc and a plugin (with nativescript-plugin-seed) for it and put it to the plugins folder.
Here is the directory tree:
├── app
│ ├── package.json
│ └── <other files>
├── hooks
│ └── < ... >
├── node_modules
│ └── < ... >
├── package.json
├── platforms
│ └── < ... >
└── plugins
└── nativescript-myplugin
└── src
├── package.json
└── < ... >
I can successfully add the plugin via: tns plugin add plugins/nativescript-myplugin/src/
I can successfully remove the plugin via: tns plugin remove nativescript-myplugin
The problem
Using tns plugin update nativescript-myplugin removes the plugin I want but it tries to get the source from https://registry.npmjs.org/nativescript-myplugin which drops a 404 error, of course.
So, the install fails.
Using tns plugin update plugins/nativescript-myplugin/src/ says "Plugin "plugins/nativescript-myplugin/src/" is not installed."
The expectation
I would like to update my plugin even if I develop it locally.
Either giving the path of the plugin or the name of it,update should work without a problem.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず tns plugin add plugins/nativescript-myplugin/src/ で動作を再現し、次に tns plugin update nativescript-myplugin とパスベースの更新コマンドの両方を実行します。tns plugin update の CLI エントリポイントを追跡し、インストールされたローカルプラグインがどのように記録され、解決されるかを比較します。利用できない npm パッケージを取得せずに、ローカルプラグインを名前またはパスで更新できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100