Skip to content

Commit 58e342e

Browse files
committed
feat(global): better configs
1 parent 5275108 commit 58e342e

File tree

9 files changed

+8
-8
lines changed

9 files changed

+8
-8
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require("path");
2-
const package = require("../package.json")
2+
const package = require("../package.json");
33
require("dotenv").config();
44

55
const packageAssetsPath = path.join(__dirname, "..", "assets", "package");
@@ -67,9 +67,9 @@ module.exports = {
6767
[
6868
"@electron-forge/plugin-webpack",
6969
{
70-
mainConfig: "./.configs/webpack.main.config.js",
70+
mainConfig: "./.config/webpack.main.config.js",
7171
renderer: {
72-
config: "./.configs/webpack.renderer.config.js",
72+
config: "./.config/webpack.renderer.config.js",
7373
entryPoints: [
7474
{
7575
html: "./src/render/index.html",

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ yarn start
4141

4242
### **Packaging for Production**
4343
To package apps into a local executable:
44-
- Personalize the forge **maker** configs at `/.configs/forge.`
44+
- Personalize the forge **maker** configs at `/.config/forge.`
4545
```sh
4646
yarn make:win
4747
# yarn make:mac
@@ -53,7 +53,7 @@ yarn make:win
5353
### **Releasing with GitHub**
5454
1. Copy the contents of `env.example` to `.env` (Copy into a blank one if you dont already have one)
5555
2. Set your `GH_TOKEN`
56-
3. Personalize the forge **publisher** configs at `/.configs/forge.config.js`
56+
3. Personalize the forge **publisher** configs at `/.config/forge.config.js`
5757
```sh
5858
yarn publish:win
5959
# yarn publish:mac
@@ -76,7 +76,7 @@ yarn create-icons
7676
### **Folder Structure**
7777

7878
```sh
79-
- /.configs
79+
- /.config
8080
... # development config files
8181

8282
- /assets

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"start": "electron-forge start",
99
"lint": "cross-env NODE_ENV=development eslint . --cache --ext .js,.jsx,.ts,.tsx",
10-
"prepare": "husky install",
10+
"prepare": "husky install .config/husky",
1111
"commit": "cz",
1212
"create-icons": "electron-icon-builder --input=./assets/package/source.png --output=./assets/package",
1313
"package:mac": "electron-forge package --platform darwin",
@@ -27,7 +27,7 @@
2727
},
2828
"license": "MIT",
2929
"config": {
30-
"forge": "./.configs/forge.config.js",
30+
"forge": "./.config/forge.config.js",
3131
"commitizen": {
3232
"path": "./node_modules/cz-conventional-changelog",
3333
"defaultScope": "global"

0 commit comments

Comments
 (0)