Hi!

I am developing a plugin that is not quite ready for the public, but still I 
would like to use internally in my project. Is there a way to install the 
plugin without publishing it on npm? After some tests and reading the relevant 
code*, it seems like it is not possible.

Other plugin systems (Cordova, NativeScript) allow installing plugins from a 
local path, directly from GitHub repo or npm. I can see several cases where it 
would be useful.

Possible syntax:
weexpack plugin add ~/mycode/weex-my-plugin
weexpack plugin add https://github.com/natjs/weex-nat-device-info
weexpack plugin add natjs/weex-nat-device-info (same as the previous command)
weexpack plugin add nat-device-info (the current way to install plugins)

(*) Relevant code, according to my research:
https://github.com/weexteam/weex-pack/blob/79dfa5d64c140898b8e3e06340f8f0ee7e44742e/src/plugin/install.js#L107
https://github.com/weexteam/weex-pack/blob/f5677abd9e34763c879f31f1bb6df79bee0a6f43/src/utils/index.js#L167

Thanks!
Tiago

Reply via email to