subprojects
Version:
Simple management tool for dependent subprojects in Node.js environment.
12 lines (9 loc) • 561 B
JavaScript
// This should be the first line in your main module
// var subprojects = require('subprojects');
var subprojects = require('../..');
// Just comment this line if you have global 'subprojects.json' configured via environment variable NODE_LOCAL_SUBPROJECTS
// Environment variable NODE_LOCAL_SUBPROJECTS is preferable, because in such case no code changes required before publishing
subprojects.init('./subprojects.json');
// Now you can publish 'subproj' to npm, but use local branch during development
var subproj = require ('subproj');
subproj.sayHello();