Move plugins in other repositories
For correct use of scaleApp plugins in a Node.js/CommonJS world, is-it possible to move each plugin to a single repository ?
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?
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.
Managing modules dependancies with npm
you can use npm: npm i --save scaleapp :)
I know ;)
But using the plugins like that could be nice too:
npm i --save scaleapp npm i --save scaleapp-i18n
But using the plugins like that could be nice too
you can. e.g. require("scaleapp/dist/plugins/scaleApp.i18n")
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");
Yes, this could be a nice intermediate solution
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 :)