mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-18 20:26:19 +08:00
Added react-native new-library command
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user