Skip to content

Commit d5aedc1

Browse files
committed
Updated
1 parent b5d5595 commit d5aedc1

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ yarn
4848

4949
### Usage
5050

51-
#### Run the app
51+
#### Run
5252

5353
```
5454
npm start
@@ -68,7 +68,7 @@ or
6868
yarn build
6969
```
7070

71-
#### Test (Preview App)
71+
#### Prod (Preview in Production)
7272

7373
```
7474
npm run prod
@@ -91,11 +91,11 @@ yarn package
9191
#### Build package (Mac, Linux, Windows)
9292

9393
```
94-
npm run package-all
94+
npm run package:all
9595
```
9696
or
9797
```
98-
yarn package-all
98+
yarn package:all
9999
```
100100

101101
#### Test
@@ -108,7 +108,7 @@ or
108108
yarn test
109109
```
110110

111-
#### Build docs
111+
#### Docs
112112

113113
```
114114
npm run docs

package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "electron-react-ant-boilerplate",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "Electron, Webpack4, React, Babel 7, ES6, PostCSS, Sass, Ant Design",
55
"license": "MIT",
66
"private": false,
@@ -47,20 +47,19 @@
4747
"scripts": {
4848
"start": "npm run env:dev -- webpack-dev-server",
4949
"build": "npm run env:prod -- webpack",
50-
"prod": "npm run env:prod -- webpack && electron --noDevServer .",
50+
"prod": "npm run build && electron --noDevServer .",
5151
"package": "npm run build",
52-
"package-all": "npm run build",
52+
"package:all": "npm run build",
53+
"test": "jest -u",
54+
"lint": "eslint ./src",
55+
"docs": "jsdoc -r ./src -d docs --verbose",
5356
"env:dev": "cross-env NODE_ENV=development",
5457
"env:prod": "cross-env NODE_ENV=production",
55-
"prebuild": "npm run build:clean && npm run build:copy",
5658
"build:clean": "rimraf -rf dist",
5759
"build:copy": "copyfiles -u 1 public/* public/**/* dist -e public/index.html",
58-
"preprod": "npm run build:clean",
60+
"prebuild": "npm run build:clean && npm run build:copy",
5961
"postpackage": "electron-builder build",
60-
"postpackage-all": "electron-builder build -mwl",
61-
"test": "jest -u",
62-
"lint": "eslint ./src",
63-
"docs": "jsdoc -r ./src -d docs --verbose"
62+
"postpackage:all": "electron-builder build -mwl"
6463
},
6564
"dependencies": {
6665
"antd": "^3.16.3",

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<link rel="icon" href="favicon.png" />
99
</head>
1010
<body>
11-
<div id="root"></div>
11+
<main id="app"></main>
1212
</body>
1313
</html>

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import Root from "@/routes/Root";
77
import "@/themes/App.global.scss";
88

99
const App = Root;
10-
render(<App />, document.getElementById("root"));
10+
render(<App />, document.getElementById("app"));
1111

1212
if (module.hot) {
1313
module.hot.accept("./routes/Root", () => {
1414
require("@/routes/Root");
15-
render(<App />, document.getElementById("root"));
15+
render(<App />, document.getElementById("app"));
1616
});
1717
}

0 commit comments

Comments
 (0)