use cross-env in npm scripts so they work on Windows (#5888)

* use cross-env in npm scripts so they work on Windows

* update more cross-envs

* Apply suggestions from code review

Co-Authored-By: Gleb Bahmutov <gleb.bahmutov@gmail.com>
This commit is contained in:
Zach Bloomquist
2019-12-05 11:38:03 -05:00
committed by Gleb Bahmutov
parent 692a3c07d9
commit 13aa496476
9 changed files with 16 additions and 13 deletions

View File

@@ -13,7 +13,7 @@
"lint": "bin-up eslint --fix *.js scripts/*.js bin/* lib/*.js lib/**/*.js test/*.js test/**/*.js",
"prerelease": "npm run build",
"release": "cd build && releaser --no-node --no-changelog",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
"size": "npm pack --dry",
"pretest": "npm run check-deps-pre",
"test": "npm run test-unit",
"test-debug": "node --inspect --debug-brk $(bin-up _mocha)",
@@ -23,7 +23,7 @@
"pretest-watch": "npm run check-deps-pre",
"test-watch": "npm run unit -- --watch",
"types": "npm run dtslint",
"unit": "BLUEBIRD_DEBUG=1 NODE_ENV=test ../node_modules/.bin/mocha --reporter mocha-multi-reporters --reporter-options configFile=../mocha-reporter-config.json"
"unit": "cross-env BLUEBIRD_DEBUG=1 NODE_ENV=test ../node_modules/.bin/mocha --reporter mocha-multi-reporters --reporter-options configFile=../mocha-reporter-config.json"
},
"dependencies": {
"@cypress/listr-verbose-renderer": "0.4.1",
@@ -77,6 +77,7 @@
"chai": "3.5.0",
"chai-as-promised": "7.1.1",
"chai-string": "1.4.0",
"cross-env": "6.0.3",
"dependency-check": "3.4.1",
"dtslint": "0.9.0",
"execa-wrap": "1.4.0",

View File

@@ -10,8 +10,8 @@
"check-deps": "node ../../scripts/check-deps.js --verbose",
"check-deps-pre": "npm run check-deps -- --prescript",
"clean-deps": "rm -rf node_modules",
"cypress:open": "TZ=America/New_York node ../../scripts/cypress open --project .",
"cypress:run": "TZ=America/New_York node ../../scripts/cypress run --project .",
"cypress:open": "cross-env TZ=America/New_York node ../../scripts/cypress open --project .",
"cypress:run": "cross-env TZ=America/New_York node ../../scripts/cypress run --project .",
"postinstall": "echo '@packages/desktop-gui needs: npm run build'",
"prewatch": "npm run check-deps-pre",
"watch": "npm run build -- --watch --progress"
@@ -26,7 +26,7 @@
"bluebird": "3.5.3",
"bootstrap-sass": "3.4.1",
"classnames": "2.2.6",
"cross-env": "5.2.1",
"cross-env": "6.0.3",
"fira": "cypress-io/fira#fb63362742eea8cdce0d90825ab9264d77719e3d",
"gravatar": "1.8.0",
"human-interval": "0.1.6",

View File

@@ -28,7 +28,7 @@
"devDependencies": {
"bin-up": "1.2.2",
"chai": "3.5.0",
"cross-env": "5.2.1",
"cross-env": "6.0.3",
"cypress-example-kitchensink": "1.8.1",
"gulp": "4.0.2",
"gulp-clean": "0.4.0",

View File

@@ -29,7 +29,7 @@
"browserify": "16.3.0",
"chai": "3.5.0",
"coffeeify": "2.1.0",
"cross-env": "5.2.1",
"cross-env": "6.0.3",
"eol": "0.9.1",
"fs-extra": "8.1.0",
"gulp": "4.0.2",

View File

@@ -29,7 +29,7 @@
"@cypress/debugging-proxy": "2.0.1",
"bin-up": "1.2.2",
"chai": "3.5.0",
"cross-env": "5.2.1",
"cross-env": "6.0.3",
"request": "2.88.0",
"request-promise": "4.2.4",
"sinon": "1.17.7",

View File

@@ -13,7 +13,7 @@
"clean": "node scripts/clean.js || true",
"clean-deps": "rm -rf node_modules",
"clean-js": "npm run clean",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
"size": "npm pack --dry",
"pretest": "npm run check-deps-pre",
"test": "npm run unit",
"unit": "bin-up mocha --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json"
@@ -30,6 +30,7 @@
"devDependencies": {
"bin-up": "1.2.2",
"chai": "3.5.0",
"cross-env": "6.0.3",
"shelljs": "0.8.3",
"sinon": "2.4.1",
"sinon-chai": "3.3.0"

View File

@@ -28,7 +28,7 @@
"chai": "4.2.0",
"chai-enzyme": "1.0.0-beta.1",
"classnames": "2.2.6",
"cross-env": "5.2.1",
"cross-env": "6.0.3",
"enzyme": "3.9.0",
"enzyme-adapter-react-16": "1.12.1",
"jsdom": "14.1.0",

View File

@@ -20,9 +20,9 @@
"pretest": "npm run check-deps-pre",
"test": "node ./test/scripts/run.js",
"pretest-cov": "npm run check-deps-pre",
"test-cov": "NODE_COVERAGE=true NODE_ENV=test CYPRESS_ENV=test BLUEBIRD_DEBUG=1 xvfb-maybe istanbul cover node_modules/.bin/_mocha -- --opts ./test/support/mocha.opts",
"test-cov": "cross-env NODE_COVERAGE=true NODE_ENV=test CYPRESS_ENV=test BLUEBIRD_DEBUG=1 xvfb-maybe istanbul cover node_modules/.bin/_mocha -- --opts ./test/support/mocha.opts",
"pretest-cov-process": "npm run check-deps-pre",
"test-cov-process": "NODE_COVERAGE=true NODE_ENV=test CYPRESS_ENV=test BLUEBIRD_DEBUG=1 istanbul cover --include-pid",
"test-cov-process": "cross-env NODE_COVERAGE=true NODE_ENV=test CYPRESS_ENV=test BLUEBIRD_DEBUG=1 istanbul cover --include-pid",
"pretest-e2e": "npm run check-deps-pre",
"test-e2e": "node ./test/scripts/e2e.js",
"pretest-e2e-chrome": "npm run check-deps-pre",
@@ -153,6 +153,7 @@
"chrome-har-capturer": "0.13.4",
"coffee-coverage": "3.0.1",
"cors": "2.8.5",
"cross-env": "6.0.3",
"devtools-protocol": "0.0.702485",
"eol": "0.9.1",
"eventsource": "1.0.7",

View File

@@ -21,7 +21,7 @@
"devDependencies": {
"bin-up": "1.2.2",
"chai": "3.5.0",
"cross-env": "5.2.1",
"cross-env": "6.0.3",
"patch-package": "6.1.2"
},
"files": [