modulex-npm
v2.0.0
Published
generate config file to use npm modules with modulex
Downloads
25
Readme
modulex-npm
generate config file to use npm modules with modulex
usage
var modulexNpm = require('modulex-npm');
console.log(modulexNpm.generateConfig(['modulex-anim']));
output:
{ packages:
{ 'modulex-anim': { base: '/node_modules/modulex-anim' },
'modulex-dom': { base: '/node_modules/modulex-anim/node_modules/modulex-dom' },
'modulex-feature': { base: '/node_modules/modulex-anim/node_modules/modulex-feature' },
'modulex-promise': { base: '/node_modules/modulex-anim/node_modules/modulex-promise' },
'modulex-querystring': { base: '/node_modules/modulex-anim/node_modules/modulex-querystring' },
'modulex-util': { base: '/node_modules/modulex-anim/node_modules/modulex-util' } },
alias:
{ 'modulex-anim': 'modulex-anim/index',
'modulex-dom': 'modulex-dom/index',
'modulex-feature': 'modulex-feature/index',
'modulex-promise': 'modulex-promise/index',
'modulex-querystring': 'modulex-querystring/index',
'modulex-util': 'modulex-util/index' } }