-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Renamed and alphabetized npm scripts (#1022) * Renamed and alphabetized npm scripts * Moved electron to deps from devDeps * Reverted flow-runtime changes, moved react-hot-loader/babel * Enforced immutability of redux actions and state using flow * Changed webpack renderer dev node config (#1035) * Increased timeout for e2e async test * Remove progress and profile flags from npm scripts for cleaner output * Removed babel-polyfill (#1052) * Removed babel-polyfill * Updated CI node versions * Required npm >= 4 * Enable yarn on CI * Fixed travis config spacing syntax error * Converted tabs to spaces on CI configs * Fixed duplicate key in appveyor config * Misc commit * Ignored node_modules from webpack dev-server watch * Updated deps (#1100) * Renamed webpack output filenames, fixed watchOptions of dev-server Warn if main or renderer not built before e2e tests (#1117) * Warn if main or renderer not built before e2e tests * Fixed linter errors Changed ordering of build and test scripts * Updated changelog [ci skip]
- Loading branch information
Showing
25 changed files
with
1,169 additions
and
893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// @flow | ||
declare export default string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// @flow | ||
// Check if the renderer and main bundles are built | ||
import path from 'path'; | ||
import chalk from 'chalk'; | ||
import fs from 'fs'; | ||
|
||
function CheckBuildsExist() { | ||
const mainPath = path.join(__dirname, '..', '..', 'app', 'main.prod.js'); | ||
const rendererPath = path.join(__dirname, '..', '..', 'app', 'dist', 'renderer.prod.js'); | ||
|
||
if (!fs.existsSync(mainPath)) { | ||
throw new Error(chalk.whiteBright.bgRed.bold( | ||
'The main process is not built yet. Build it by running "npm run build-main"' | ||
)); | ||
} | ||
|
||
if (!fs.existsSync(rendererPath)) { | ||
throw new Error(chalk.whiteBright.bgRed.bold( | ||
'The renderer process is not built yet. Build it by running "npm run build-renderer"' | ||
)); | ||
} | ||
} | ||
|
||
CheckBuildsExist(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// @flow | ||
import chalk from 'chalk'; | ||
|
||
export default function CheckNodeEnv(expectedEnv: string) { | ||
if (!expectedEnv) { | ||
throw new Error('"expectedEnv" not set'); | ||
} | ||
|
||
if (process.env.NODE_ENV !== expectedEnv) { | ||
console.log(chalk.whiteBright.bgRed.bold( | ||
`"process.env.NODE_ENV" must be "${expectedEnv}" to use this webpack config` | ||
)); | ||
process.exit(2); | ||
} | ||
} |
Oops, something went wrong.