[reactnative] remove platform option from oss packager

This commit is contained in:
Felix Oghină 2015-08-26 10:53:41 -01:00
parent a8f11d7115
commit 626f828d54
2 changed files with 1 additions and 23 deletions

View File

@ -1,17 +0,0 @@
#!/usr/bin/env bash
# Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
# Set terminal title
echo -en "\033]0;React Packager\a"
clear
THIS_DIR=$(dirname "$0")
$THIS_DIR/packager.sh --platform android --port 8082
echo "Process terminated. Press <enter> to close the window"
read

View File

@ -48,11 +48,6 @@ var options = parseCommandLine([{
command: 'assetRoots', command: 'assetRoots',
type: 'string', type: 'string',
description: 'specify the root directories of app assets' description: 'specify the root directories of app assets'
}, {
command: 'platform',
type: 'string',
default: 'ios',
description: 'Specify the platform-specific blacklist (ios, android, web).'
}, { }, {
command: 'skipflow', command: 'skipflow',
description: 'Disable flow checks' description: 'Disable flow checks'
@ -229,7 +224,7 @@ function getAppMiddleware(options) {
return ReactPackager.middleware({ return ReactPackager.middleware({
nonPersistent: options.nonPersistent, nonPersistent: options.nonPersistent,
projectRoots: options.projectRoots, projectRoots: options.projectRoots,
blacklistRE: blacklist(options.platform), blacklistRE: blacklist(),
cacheVersion: '2', cacheVersion: '2',
transformModulePath: transformerPath, transformModulePath: transformerPath,
assetRoots: options.assetRoots, assetRoots: options.assetRoots,