https://github.com/balmjs/template-electron
An Electron project for desktop apps
https://github.com/balmjs/template-electron
balm balm-cli electron
Last synced: about 2 months ago
JSON representation
An Electron project for desktop apps
- Host: GitHub
- URL: https://github.com/balmjs/template-electron
- Owner: balmjs
- Created: 2017-04-23T10:03:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-07T05:16:37.000Z (over 2 years ago)
- Last Synced: 2024-05-27T12:33:19.739Z (12 months ago)
- Topics: balm, balm-cli, electron
- Language: JavaScript
- Homepage:
- Size: 229 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BalmJS template - `electron`
> An Electron app boilerplate with BalmJS.
## Requirements
```sh
npm install -g balm-core balm-cli
# OR
yarn global add balm-core balm-cli
``````sh
# Verify
balm -V# Output:
# balm-cli: 4.0.0
# balm-core: 4.0.0
```## Installation
```sh
balm init electron my-projectcd my-project
yarn
# or
npm i
```## Enjoy
```sh
# For development
npm run dev# For production
npm run prod
```## FAQ
> `ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/` for `electron@6`
Q:
```sh
UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found) for `https://npm.taobao.org/mirrors/electron/v6.1.9/electron-v6.1.9-darwin-x64.zip`
```A:
- Edit `node_modules/@electron/get/dist/cjs/artifact-utils.js`
```js
// line 39
// const path = mirrorVar('customDir', opts, details.version).replace('{{ version }}', details.version.replace(/^v/, ''));
const path = mirrorVar("customDir", opts, details.version.replace("v", ""));
```- thx [BalmJS](https://github.com/balmjs/balm)