mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 19:15:05 +00:00
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:
parent
5977f494fc
commit
8bff2d30ab
@ -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();
|
||||
|
@ -130,7 +130,7 @@ function _server(argv, config, resolve, reject) {
|
||||
);
|
||||
}
|
||||
|
||||
resolve(startServer(args, config));
|
||||
startServer(args, config);
|
||||
}
|
||||
|
||||
function startServer(args, config) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user