shelljs/global -> shelljs

Reviewed By: zertosh

Differential Revision: D5407207

fbshipit-source-id: df5d1a38a35d27c9c429ea972acab58322441813
This commit is contained in:
Eli White
2017-07-12 16:08:22 -07:00
committed by Facebook Github Bot
parent e57655274d
commit 320aea8bca
3 changed files with 31 additions and 9 deletions
+8 -3
View File
@@ -15,8 +15,14 @@
* After changing the files it makes a commit and tags it.
* All you have to do is push changes to remote and CI will make a new build.
*/
/*eslint-disable no-undef */
require(`shelljs/global`);
const {
cat,
echo,
exec,
exit,
sed,
} = require('shelljs');
const minimist = require('minimist');
@@ -93,4 +99,3 @@ if (version.indexOf(`rc`) === -1) {
exec(`git push ${remote} ${branch} --follow-tags`);
exit(0);
/*eslint-enable no-undef */
@@ -20,8 +20,17 @@
* --package - com.facebook.react.tests
* --retries [num] - how many times to retry possible flaky commands: npm install and running tests, default 1
*/
/*eslint-disable no-undef */
require('shelljs/global');
const {
echo,
exec,
exit,
ls,
} = require('shelljs');
console.log(echo, exec, exit, ls);
exit(0);
const argv = require('yargs').argv;
const numberOfRetries = argv.retries || 1;
@@ -62,5 +71,3 @@ testClasses.forEach((testClass) => {
});
exit(exitCode);
/*eslint-enable no-undef */
+12 -2
View File
@@ -9,8 +9,18 @@
'use strict';
var semverCmp = require('semver-compare');
/*eslint-disable no-undef */
require(`shelljs/global`);
const {
cd,
cp,
echo,
exec,
exit,
ls,
mkdir,
rm,
which,
} = require('shelljs');
const CIRCLE_BRANCH = process.env.CIRCLE_BRANCH;
const CIRCLE_PROJECT_USERNAME = process.env.CIRCLE_PROJECT_USERNAME;