Skip to content

Commit

Permalink
Testing env in scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano committed Apr 2, 2019
1 parent 9f1990d commit 9c1d962
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/app/main/package.json
Expand Up @@ -7,13 +7,14 @@
"main": "./app/server/main.js",
"homepage": "https://github.com/Microsoft/BotFramework-Emulator",
"scripts": {
"env": "cross-env TEST=%INTERNAL_ELECTRON_MIRROR% echo (%TEST%)",
"build": "run-s typecheck lint build:electron",
"build:electron": "babel ./src --out-dir app/server --extensions \".ts,.tsx\" --ignore \"**/*.spec.ts\" && npm run copy:extension:stubs",
"copy:extension:stubs": "ncp src/extensions app/extensions",
"dist": "electron-builder",
"dist": "cross-env ELECTRON_MIRROR=%INTERNAL_ELECTRON_MIRROR% ELECTRON_CUSTOM_DIR=%INTERNAL_ELECTRON_DIR% electron-builder",
"lint": "eslint --color --quiet --ext .js,.jsx,.ts,.tsx ./src",
"lint:fix": "npm run lint -- --fix",
"pack": "electron-builder --dir",
"pack": "cross-env ELECTRON_MIRROR=%INTERNAL_ELECTRON_MIRROR% ELECTRON_CUSTOM_DIR=%INTERNAL_ELECTRON_DIR% electron-builder --dir",
"start": "concurrently --kill-others --names \"electron,react-app\" --success first \"npm run start:electron:dev\" \"npm run start:react-app\"",
"start:electron": "./node_modules/.bin/electron --inspect=7777 --remote-debugging-port=7778 .",
"start:electron:dev": "cross-env ELECTRON_TARGET_URL=http://localhost:3000/ npm run start:electron",
Expand Down Expand Up @@ -153,7 +154,7 @@
"copyright": "Copyright © 2018 Microsoft Corporation",
"electronDownload": {
"version": "4.1.1",
"mirror": "https://electron.blob.core.windows.net/builds/"
"mirror": "${env.INTERNAL_ELECTRON_MIRROR}"
},
"protocols": [
{
Expand Down

0 comments on commit 9c1d962

Please sign in to comment.