Use private-cli's server instead of packager.js

Reviewed By: vjeux

Differential Revision: D2542027

fb-gh-sync-id: e59f3be17590c1e256a903e04f2f0359c835c8b5
This commit is contained in:
Martín Bigio 2015-10-16 15:00:04 -07:00 committed by facebook-github-bot-4
parent 5977f494fc
commit 8bff2d30ab
2 changed files with 5 additions and 4 deletions

View File

@ -11,12 +11,13 @@ var generate = require('../private-cli/src/generate/generate');
var init = require('./init.js');
var library = require('../private-cli/src/library/library');
var runAndroid = require('./run-android.js');
var runPackager = require('./run-packager.js');
var server = require('../private-cli/src/server/server');
// TODO: remove once we fully roll out the `private-cli` based cli
// var bundle_DEPRECATED = require('./bundle.js');
// var generateAndroid_DEPRECATED = require('./generate-android.js');
// var newLibrary_DEPRECATED = require('./new-library.js');
// var runPackager_DEPRECATED = require('./run-packager.js');
function printUsage() {
console.log([
@ -46,10 +47,10 @@ function run() {
}
var config = Config.get(__dirname);
switch (args[0]) {
case 'start':
runPackager();
server(args, config).done();
// runPackager_DEPRECATED();
break;
case 'bundle':
bundle(args, config).done();

View File

@ -130,7 +130,7 @@ function _server(argv, config, resolve, reject) {
);
}
resolve(startServer(args, config));
startServer(args, config);
}
function startServer(args, config) {