Skip to content
This repository was archived by the owner on Dec 15, 2017. It is now read-only.

Commit f243ccc

Browse files
authored
Merge pull request #109 from yihou/cross-env
package: add cross-dev
2 parents 37ae8d4 + c967aca commit f243ccc

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"postinstall": "cp env.example.js env.js",
77
"start": "webpack-dev-server --config webpack/dev.config.js --watch",
8-
"build": "NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --color",
8+
"build": "cross-env NODE_ENV=production webpack --config webpack/prod.config.js --progress --display-error-details --color",
99
"precommit": "eslint src"
1010
},
1111
"repository": {
@@ -42,6 +42,7 @@
4242
"babel-preset-env": "^1.6.0",
4343
"clean-webpack-plugin": "^0.1.16",
4444
"copy-webpack-plugin": "^4.0.1",
45+
"cross-env": "^5.0.1",
4546
"css-loader": "^0.28.4",
4647
"eslint": "^4.2.0",
4748
"eslint-loader": "^1.9.0",

yarn.lock

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,13 +1311,28 @@ create-hmac@^1.1.0, create-hmac@^1.1.2:
13111311
create-hash "^1.1.0"
13121312
inherits "^2.0.1"
13131313

1314+
cross-env@^5.0.1:
1315+
version "5.0.1"
1316+
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.0.1.tgz#ff4e72ea43b47da2486b43a7f2043b2609e44913"
1317+
dependencies:
1318+
cross-spawn "^5.1.0"
1319+
is-windows "^1.0.0"
1320+
13141321
cross-spawn@^3.0.0:
13151322
version "3.0.1"
13161323
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982"
13171324
dependencies:
13181325
lru-cache "^4.0.1"
13191326
which "^1.2.9"
13201327

1328+
cross-spawn@^5.1.0:
1329+
version "5.1.0"
1330+
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
1331+
dependencies:
1332+
lru-cache "^4.0.1"
1333+
shebang-command "^1.2.0"
1334+
which "^1.2.9"
1335+
13211336
13221337
version "2.0.5"
13231338
resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8"
@@ -2695,6 +2710,10 @@ is-utf8@^0.2.0:
26952710
version "0.2.1"
26962711
resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
26972712

2713+
is-windows@^1.0.0:
2714+
version "1.0.1"
2715+
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.1.tgz#310db70f742d259a16a369202b51af84233310d9"
2716+
26982717
26992718
version "0.0.1"
27002719
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
@@ -4329,6 +4348,16 @@ shallow-clone@^0.1.2:
43294348
lazy-cache "^0.2.3"
43304349
mixin-object "^2.0.1"
43314350

4351+
shebang-command@^1.2.0:
4352+
version "1.2.0"
4353+
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
4354+
dependencies:
4355+
shebang-regex "^1.0.0"
4356+
4357+
shebang-regex@^1.0.0:
4358+
version "1.0.0"
4359+
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
4360+
43324361
signal-exit@^3.0.0, signal-exit@^3.0.2:
43334362
version "3.0.2"
43344363
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"

0 commit comments

Comments
 (0)