Use native Promise in local-cli
Summary: Switch to native promises in the local cli Reviewed By: davidaurelio Differential Revision: D4213142 fbshipit-source-id: aff99f8bb3dc237cecc852cdb09dee9b49b05753
This commit is contained in:
parent
e1df3c8782
commit
812591ac42
|
@ -9,7 +9,6 @@
|
|||
'use strict';
|
||||
|
||||
const log = require('../util/log').out('bundle');
|
||||
const Promise = require('promise');
|
||||
const Server = require('../../packager/react-packager/src/Server');
|
||||
|
||||
const outputBundle = require('./output/bundle');
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
const Promise = require('promise');
|
||||
|
||||
const meta = require('./meta');
|
||||
const writeFile = require('./writeFile');
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
'use strict';
|
||||
|
||||
const MAGIC_UNBUNDLE_NUMBER = require('./magic-number');
|
||||
const Promise = require('promise');
|
||||
|
||||
const buildSourceMapWithMetaData = require('./build-unbundle-sourcemap-with-metadata');
|
||||
const mkdirp = require('mkdirp');
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
'use strict';
|
||||
|
||||
const MAGIC_UNBUNDLE_FILE_HEADER = require('./magic-number');
|
||||
const Promise = require('promise');
|
||||
|
||||
const buildSourceMapWithMetaData = require('./build-unbundle-sourcemap-with-metadata');
|
||||
const fs = require('fs');
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
const Promise = require('promise');
|
||||
|
||||
const writeFile = require('../writeFile');
|
||||
|
||||
function writeSourcemap(fileName, contents, log) {
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
const Promise = require('promise');
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
function writeFile(file, data, encoding) {
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
'use strict';
|
||||
|
||||
const Config = require('./util/Config');
|
||||
const Promise = require('promise');
|
||||
|
||||
const assertRequiredOptions = require('./util/assertRequiredOptions');
|
||||
const chalk = require('chalk');
|
||||
|
|
|
@ -12,7 +12,6 @@ const copyAndReplace = require('../util/copyAndReplace');
|
|||
const fs = require('fs');
|
||||
const isValidPackageName = require('../util/isValidPackageName');
|
||||
const path = require('path');
|
||||
const Promise = require('promise');
|
||||
const walk = require('../util/walk');
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
const chalk = require('chalk');
|
||||
const child_process = require('child_process');
|
||||
const Promise = require('promise');
|
||||
|
||||
/**
|
||||
* Starts adb logcat
|
||||
|
|
|
@ -1,10 +1,17 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
const chalk = require('chalk');
|
||||
const child_process = require('child_process');
|
||||
const os = require('os');
|
||||
const path = require('path');
|
||||
const Promise = require('promise');
|
||||
|
||||
/**
|
||||
* Starts iOS device syslog tail
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
const Promise = require('promise');
|
||||
|
||||
const adb = require('./adb');
|
||||
const chalk = require('chalk');
|
||||
const child_process = require('child_process');
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
const Promise = require('promise');
|
||||
|
||||
const chalk = require('chalk');
|
||||
const copyProjectTemplateAndReplace = require('../generator/copyProjectTemplateAndReplace');
|
||||
const fs = require('fs');
|
||||
|
|
Loading…
Reference in New Issue