https://github.com/zewenn/esbuild-electron-template
https://github.com/zewenn/esbuild-electron-template
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/zewenn/esbuild-electron-template
- Owner: zewenn
- Created: 2023-09-21T20:35:40.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-29T16:29:27.000Z (over 2 years ago)
- Last Synced: 2025-06-13T19:03:58.529Z (about 1 year ago)
- Language: JavaScript
- Size: 859 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Esbuild Electron Template
This template provides a super fast electron app build time, and built in testing.
## Create New Project:
```bash
npm create es-electron-template@latest
```
## How to use?
### Initalise project:
This command installs all the needed npm packages and updates the outdated ones.
```bash
npm run init
```
### Build:
- #### Source:
This command will rebundle the contents of the `source` directory.
```bash
npm run build:src
```
- #### App:
This command will rebundle the contents of the `app` & `assets` directory.
```bash
npm run build:app
```
- #### All:
This command will rebundle the contents of the **all** directories.
```bash
npm run build:all
```
### Execute:
- #### Execute Current Build:
This command will execute the current build.
```bash
npm run exec
```
- #### With Building Source:
This command will rebundle the contents of the `source` directory & execute the build.
```bash
npm run exec:src
```
- #### With Building App:
This command will rebundle the contents of the `app` & `assets` directory & execute the build.
```bash
npm run exec:app
```
- #### With Building All:
This command will rebundle the contents of the **all** directories & execute the build.
```bash
npm run exec:all
```
### Tests
- #### Standard Test:
All the [`jest`](https://github.com/jestjs/jest) testable scripts in the `spec` directory will be tested.
```bash
npm run test
```
- ### Coverage Test:
All the [`jest`](https://github.com/jestjs/jest) testable scripts in the `spec` directory will be tested.
```bash
npm run test:cov
```
## Credits
- `versionManager.js` - [@WarstekHUN](https://github.com/WarstekHUN)