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:
Ovidiu Viorel Iepure 2016-11-21 10:18:46 -08:00 committed by Facebook Github Bot
parent e1df3c8782
commit 812591ac42
12 changed files with 8 additions and 17 deletions

View File

@ -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');

View File

@ -8,8 +8,6 @@
*/
'use strict';
const Promise = require('promise');
const meta = require('./meta');
const writeFile = require('./writeFile');

View File

@ -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');

View File

@ -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');

View File

@ -8,8 +8,6 @@
*/
'use strict';
const Promise = require('promise');
const writeFile = require('../writeFile');
function writeSourcemap(fileName, contents, log) {

View File

@ -8,8 +8,6 @@
*/
'use strict';
const Promise = require('promise');
const fs = require('fs');
function writeFile(file, data, encoding) {

View File

@ -11,7 +11,6 @@
'use strict';
const Config = require('./util/Config');
const Promise = require('promise');
const assertRequiredOptions = require('./util/assertRequiredOptions');
const chalk = require('chalk');

View File

@ -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');
/**

View File

@ -10,7 +10,6 @@
const chalk = require('chalk');
const child_process = require('child_process');
const Promise = require('promise');
/**
* Starts adb logcat

View File

@ -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

View File

@ -8,8 +8,6 @@
*/
'use strict';
const Promise = require('promise');
const adb = require('./adb');
const chalk = require('chalk');
const child_process = require('child_process');

View File

@ -8,8 +8,6 @@
*/
'use strict';
const Promise = require('promise');
const chalk = require('chalk');
const copyProjectTemplateAndReplace = require('../generator/copyProjectTemplateAndReplace');
const fs = require('fs');