Added react-native new-library command

This commit is contained in:
Joe Stanton
2015-03-28 15:50:31 +00:00
parent b2d1d6f3e9
commit 396439bf86
11 changed files with 427 additions and 39 deletions

View File

@@ -10,6 +10,7 @@ var path = require('path');
var init = require('./init.js');
var install = require('./install.js');
var bundle = require('./bundle.js');
var newLibrary = require('./new-library.js');
function printUsage() {
console.log([
@@ -18,7 +19,8 @@ function printUsage() {
'Commands:',
' start: starts the webserver',
' install: installs npm react components',
' bundle: builds the javascript bundle for offline use'
' bundle: builds the javascript bundle for offline use',
' new-library: generates a native library bridge'
].join('\n'));
process.exit(1);
}
@@ -51,6 +53,9 @@ function run() {
case 'bundle':
bundle.init(args);
break;
case 'new-library':
newLibrary.init(args);
break;
case 'init':
printInitWarning();
break;