mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Linked with new local-cli, refactored
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
|
||||
var spawn = require('child_process').spawn;
|
||||
var path = require('path');
|
||||
|
||||
var init = require('../init.js');
|
||||
var install = require('./install.js');
|
||||
var bundle = require('./bundle.js');
|
||||
|
||||
@@ -59,10 +61,6 @@ function run() {
|
||||
// Here goes any cli commands we need to
|
||||
}
|
||||
|
||||
function init(root, projectName) {
|
||||
spawn(path.resolve(__dirname, '../init.sh'), [projectName], {stdio:'inherit'});
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user