FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #1 from MrKou47/react-router-config · universal-react/tutorial@2e668c6 · GitHub

Commit 2e668c6

Browse files
authored
Merge pull request #1 from MrKou47/react-router-config
React router config
2 parents 51948d7 + f4e7744 commit 2e668c6

36 files changed

Lines changed: 2465 additions & 526 deletions

‎.babelrc‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
["universal-import", {
99
"babelServer": true
1010
}],
11+
["css-modules-transform", {
12+
"generateScopedName": "[name]-[local]-[hash:base64:5]"
13+
}],
1114
"transform-runtime",
1215
"transform-decorators-legacy",
1316
"babel-plugin-transform-class-properties"
1417
],
18+
"comments": false,
1519
"sourceMaps": true
1620
}

‎.eslintrc.json‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parser": "babel-eslint",
3+
"plugins": [
4+
"react"
5+
],
6+
"extends": [
7+
"eslint:recommended"
8+
],
9+
"env": {
10+
"browser": true,
11+
"commonjs": true,
12+
"es6": true,
13+
"node": true
14+
},
15+
"parserOptions": {
16+
"ecmaFeatures": {
17+
"jsx": true
18+
},
19+
"sourceType": "module"
20+
},
21+
"rules": {
22+
"no-const-assign": "warn",
23+
"no-this-before-super": "warn",
24+
"no-undef": "warn",
25+
"no-unreachable": "warn",
26+
"no-unused-vars": "warn",
27+
"constructor-super": "warn",
28+
"valid-typeof": "warn",
29+
"strict": 0,
30+
"react/jsx-uses-react": "error",
31+
"react/jsx-uses-vars": "error",
32+
"react/prop-types": [1]
33+
}
34+
}

‎.vscode/launch.json‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,11 @@
1414
{
1515
"type": "node",
1616
"request": "launch",
17-
"name": "nodemon & babel",
18-
"runtimeExecutable": "nodemon",
19-
"program": "${workspaceFolder}/server/app.js",
20-
"args": [
21-
"--exec",
22-
"babel-node"
23-
],
24-
"restart": true,
25-
"console": "integratedTerminal",
26-
"internalConsoleOptions": "neverOpen"
17+
"name": "Launch production",
18+
"program": "${workspaceFolder}/dist/server/server.js",
19+
"env": {
20+
"NODE_ENV": "production",
21+
}
2722
},
2823
]
2924
}

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ https://medium.com/airbnb-engineering/server-rendering-code-splitting-and-lazy-l
3030
3131
Then use *Visual studio code* to debug isomorphic react.
3232

33-
![debugtool](./readme-img/debug.png)
33+
![debugtool](./docs/images/debug.png)
3434

3535
## Expectation
3636

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL