-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First commit - most major updates - minor & patch updates - ensure `volta` is extended to each `package.json` - remove unused `package-lock.json` files from each extension - update linting Next 5 commits are updates from ERB (electron-react-boilerplate) package which this repo is based on. Note: - delete `node_modules/electron` before `npm i`
- Loading branch information
Showing
62 changed files
with
9,947 additions
and
32,123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Check if the renderer and main bundles are built | ||
import path from 'path'; | ||
import chalk from 'chalk'; | ||
import fs from 'fs'; | ||
import webpackPaths from '../configs/webpack.paths'; | ||
|
||
const mainPath = path.join(webpackPaths.distMainPath, 'main.js'); | ||
const rendererPath = path.join(webpackPaths.distRendererPath, 'renderer.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"', | ||
), | ||
); | ||
} |
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
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
Oops, something went wrong.