Skip to content

Commit f492c2a

Browse files
committed
Add fixed path
1 parent e605122 commit f492c2a

File tree

4 files changed

+74
-2
lines changed

4 files changed

+74
-2
lines changed

app/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
// @flow
22
import React from 'react';
33
import ReactDOM from 'react-dom';
4+
import fixPath from 'fix-path';
45

56
import App from './App';
67

8+
fixPath();
9+
710
const root = document.getElementById('root');
811

912
ReactDOM.render(<App />, root);

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function createWindow() {
1616
win.loadURL(`file://${__dirname}/index.html`);
1717

1818
// Open the DevTools.
19-
win.webContents.openDevTools();
19+
// win.webContents.openDevTools();
2020

2121
// Emitted when the window is closed.
2222
win.on('closed', () => {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
},
99
"dependencies": {
1010
"babel-polyfill": "^6.26.0",
11+
"fix-path": "^2.1.0",
1112
"lodash": "^4.17.5",
1213
"material-ui": "^0.20.0",
1314
"open": "^0.0.5",

yarn.lock

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,13 @@ core-util-is@1.0.2, core-util-is@~1.0.0:
12031203
version "1.0.2"
12041204
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
12051205

1206+
cross-spawn@^4.0.0:
1207+
version "4.0.2"
1208+
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41"
1209+
dependencies:
1210+
lru-cache "^4.0.1"
1211+
which "^1.2.9"
1212+
12061213
cross-spawn@^5.1.0:
12071214
version "5.1.0"
12081215
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
@@ -1254,6 +1261,10 @@ deep-is@~0.1.3:
12541261
version "0.1.3"
12551262
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
12561263

1264+
default-shell@^1.0.0:
1265+
version "1.0.1"
1266+
resolved "https://registry.yarnpkg.com/default-shell/-/default-shell-1.0.1.tgz#752304bddc6174f49eb29cb988feea0b8813c8bc"
1267+
12571268
define-properties@^1.1.2:
12581269
version "1.1.2"
12591270
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94"
@@ -1517,6 +1528,18 @@ esutils@^2.0.2:
15171528
version "2.0.2"
15181529
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
15191530

1531+
execa@^0.5.0:
1532+
version "0.5.1"
1533+
resolved "https://registry.yarnpkg.com/execa/-/execa-0.5.1.tgz#de3fb85cb8d6e91c85bcbceb164581785cb57b36"
1534+
dependencies:
1535+
cross-spawn "^4.0.0"
1536+
get-stream "^2.2.0"
1537+
is-stream "^1.1.0"
1538+
npm-run-path "^2.0.0"
1539+
p-finally "^1.0.0"
1540+
signal-exit "^3.0.0"
1541+
strip-eof "^1.0.0"
1542+
15201543
expand-brackets@^0.1.4:
15211544
version "0.1.5"
15221545
resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b"
@@ -1627,6 +1650,12 @@ find-up@^2.0.0, find-up@^2.1.0:
16271650
dependencies:
16281651
locate-path "^2.0.0"
16291652

1653+
fix-path@^2.1.0:
1654+
version "2.1.0"
1655+
resolved "https://registry.yarnpkg.com/fix-path/-/fix-path-2.1.0.tgz#72ece739de9af4bd63fd02da23e9a70c619b4c38"
1656+
dependencies:
1657+
shell-path "^2.0.0"
1658+
16301659
flat-cache@^1.2.1:
16311660
version "1.3.0"
16321661
resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.3.0.tgz#d3030b32b38154f4e3b7e9c709f490f7ef97c481"
@@ -1719,6 +1748,13 @@ gauge@~2.7.3:
17191748
strip-ansi "^3.0.1"
17201749
wide-align "^1.1.0"
17211750

1751+
get-stream@^2.2.0:
1752+
version "2.3.1"
1753+
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-2.3.1.tgz#5f38f93f346009666ee0150a054167f91bdd95de"
1754+
dependencies:
1755+
object-assign "^4.0.1"
1756+
pinkie-promise "^2.0.0"
1757+
17221758
getpass@^0.1.1:
17231759
version "0.1.7"
17241760
resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa"
@@ -2036,7 +2072,7 @@ is-resolvable@^1.0.0:
20362072
version "1.1.0"
20372073
resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88"
20382074

2039-
is-stream@^1.0.1:
2075+
is-stream@^1.0.1, is-stream@^1.1.0:
20402076
version "1.1.0"
20412077
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
20422078

@@ -2364,6 +2400,12 @@ normalize-path@^2.0.0, normalize-path@^2.0.1:
23642400
dependencies:
23652401
remove-trailing-separator "^1.0.1"
23662402

2403+
npm-run-path@^2.0.0:
2404+
version "2.0.2"
2405+
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
2406+
dependencies:
2407+
path-key "^2.0.0"
2408+
23672409
npmlog@^4.0.2:
23682410
version "4.1.2"
23692411
resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b"
@@ -2446,6 +2488,10 @@ output-file-sync@^1.1.2:
24462488
mkdirp "^0.5.1"
24472489
object-assign "^4.1.0"
24482490

2491+
p-finally@^1.0.0:
2492+
version "1.0.0"
2493+
resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
2494+
24492495
p-limit@^1.1.0:
24502496
version "1.2.0"
24512497
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c"
@@ -2495,6 +2541,10 @@ path-is-inside@^1.0.1, path-is-inside@^1.0.2:
24952541
version "1.0.2"
24962542
resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53"
24972543

2544+
path-key@^2.0.0:
2545+
version "2.0.1"
2546+
resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
2547+
24982548
path-parse@^1.0.5:
24992549
version "1.0.5"
25002550
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"
@@ -2916,6 +2966,20 @@ shebang-regex@^1.0.0:
29162966
version "1.0.0"
29172967
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
29182968

2969+
shell-env@^0.3.0:
2970+
version "0.3.0"
2971+
resolved "https://registry.yarnpkg.com/shell-env/-/shell-env-0.3.0.tgz#2250339022989165bda4eb7bf383afeaaa92dc34"
2972+
dependencies:
2973+
default-shell "^1.0.0"
2974+
execa "^0.5.0"
2975+
strip-ansi "^3.0.0"
2976+
2977+
shell-path@^2.0.0:
2978+
version "2.1.0"
2979+
resolved "https://registry.yarnpkg.com/shell-path/-/shell-path-2.1.0.tgz#ea7d06ae1070874a1bac5c65bb9bdd62e4f67a38"
2980+
dependencies:
2981+
shell-env "^0.3.0"
2982+
29192983
signal-exit@^3.0.0, signal-exit@^3.0.2:
29202984
version "3.0.2"
29212985
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
@@ -3029,6 +3093,10 @@ strip-bom@^3.0.0:
30293093
version "3.0.0"
30303094
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
30313095

3096+
strip-eof@^1.0.0:
3097+
version "1.0.0"
3098+
resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf"
3099+
30323100
strip-json-comments@~2.0.1:
30333101
version "2.0.1"
30343102
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"

0 commit comments

Comments
 (0)