Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Move plugins in other repositories #55

Open
vogloblinsky opened this issue Jul 31, 2015 · 8 comments
Open

Move plugins in other repositories #55

vogloblinsky opened this issue Jul 31, 2015 · 8 comments

Comments

@vogloblinsky
Copy link

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

@vogloblinsky vogloblinsky changed the title Move plugins in other repositories [Feature] Move plugins in other repositories Jul 31, 2015
@flosse
Copy link
Owner

flosse commented Aug 1, 2015

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?

@vogloblinsky
Copy link
Author

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.

@flosse
Copy link
Owner

flosse commented Aug 2, 2015

Managing modules dependancies with npm

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

@flosse flosse changed the title [Feature] Move plugins in other repositories Move plugins in other repositories Aug 2, 2015
@vogloblinsky
Copy link
Author

I know ;)

But using the plugins like that could be nice too:

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

@flosse
Copy link
Owner

flosse commented Aug 2, 2015

But using the plugins like that could be nice too

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

@flosse
Copy link
Owner

flosse commented Aug 2, 2015

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");

@vogloblinsky
Copy link
Author

Yes, this could be a nice intermediate solution

@flosse
Copy link
Owner

flosse commented Aug 2, 2015

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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants