scaleApp icon indicating copy to clipboard operation
scaleApp copied to clipboard

Move plugins in other repositories

Open vogloblinsky opened this issue 10 years ago • 8 comments

For correct use of scaleApp plugins in a Node.js/CommonJS world, is-it possible to move each plugin to a single repository ?

vogloblinsky avatar Jul 31 '15 19:07 vogloblinsky

is-it possible to move each plugin to a single repository ?

of course it is possible ;-) ... but it might be a bit inflated. If there would be hundreds of people using scaleApp it makes sense but for such a small project I can't see the additional value. So what would be the specific benefits?

flosse avatar Aug 01 '15 06:08 flosse

Managing modules dependancies with npm and not building scaleApp and plugins, and after copying the outputs in a working project. I understand your remark about the "size" of the project.

vogloblinsky avatar Aug 01 '15 22:08 vogloblinsky

Managing modules dependancies with npm

you can use npm: npm i --save scaleapp :)

flosse avatar Aug 02 '15 10:08 flosse

I know ;)

But using the plugins like that could be nice too:

npm i --save scaleapp npm i --save scaleapp-i18n

vogloblinsky avatar Aug 02 '15 11:08 vogloblinsky

But using the plugins like that could be nice too

you can. e.g. require("scaleapp/dist/plugins/scaleApp.i18n")

flosse avatar Aug 02 '15 11:08 flosse

if you like, we could create a separate plugin repo, then you'd use it like

npm i --save scaleapp
npm i --save scaleapp-plugins
var sa = require("scaleapp");
var i18n = require("scaleapp-plugins/i18n");

flosse avatar Aug 02 '15 11:08 flosse

Yes, this could be a nice intermediate solution

vogloblinsky avatar Aug 02 '15 11:08 vogloblinsky

so in other words, instead of - we could also use / which leads to require("scaleapp/plugins/i18n"); which doesn't require a separate repo ;-) And as long there is only one repo you don't have to care about versions that might be incompatible :)

flosse avatar Aug 02 '15 12:08 flosse