Skip to content

Commit 91203e4

Browse files
committed
Updated
1 parent 4bb879c commit 91203e4

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

@test/src/routes/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { shallow } from "enzyme";
44
import toJson from "enzyme-to-json";
55

66
// Module
7-
import Routes from "@/routes";
7+
import Root from "@/routes/Root";
88

99
describe("Routes", () => {
1010
it('should render correctly in "debug" mode', () => {
11-
const component = shallow(<Routes />);
11+
const component = shallow(<Root />);
1212
expect(toJson(component)).toMatchSnapshot();
1313
});
1414
});

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ yarn
5151
#### Run the app
5252

5353
```
54-
npm run start
54+
npm start
5555
```
5656
or
5757
```
5858
yarn start
5959
```
6060

61-
#### Build the app (manual)
61+
#### Build (manual)
6262

6363
```
6464
npm run build
@@ -68,7 +68,7 @@ or
6868
yarn build
6969
```
7070

71-
#### Test the app (Production)
71+
#### Test (Preview App)
7272

7373
```
7474
npm run prod

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "electron-react-ant-boilerplate",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Electron, Webpack4, React, Babel 7, ES6, PostCSS, Sass, Ant Design",
55
"license": "MIT",
66
"private": false,

src/assets/files/.gitkeep

Whitespace-only changes.

src/assets/fonts/.gitkeep

Whitespace-only changes.

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
import React from "react";
33
import { render } from "react-dom";
44
// Root
5-
import Root from "./routes/Root";
5+
import Root from "@/routes/Root";
66
// Styles
77
import "@/themes/App.global.scss";
88

99
const App = Root;
1010
render(<App />, document.getElementById("root"));
1111

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

src/routes/Root.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Libs
22
import React from "react";
3-
import { HashRouter, Route, Switch } from "react-router-dom";
3+
import { HashRouter, Switch, Route } from "react-router-dom";
44
// Screens
55
import Home from "@/screens/Home/Home";
66

src/themes/App.global.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import "./Ant.vars.scss";
33

44
// Example import .css
5-
//@import '~lib_in_node_modules/lib/dist/style.css';
5+
//@import '~name_in_node_modules/dist/style.css';
66

77
// Global styles
88
body {

0 commit comments

Comments
 (0)