UNPKG

modulerizr

Version:

Integrate a powerful, component based architecture to your legacy project in just a few steps

18 lines (15 loc) 453 B
#!/usr/bin/env node const getConfig = require('./getConfig'); const modulerizr = require('../src/index'); const color = require('colors'); const config = getConfig(process.argv); const action = process.argv[2] || 'run'; switch (action) { case "run": modulerizr.run(config); break; default: throw color.red(`Unknown command "modulerizr ${action}". You can run one of the following commands: - "modulerizr run" `); }