Skip to content

Commit df14528

Browse files
ingrodiasbruno
authored andcommitted
Added cross-env to run tests on windows
1 parent 3b9ddfd commit df14528

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"scripts": {
1616
"start": "./node_modules/.bin/webpack-dev-server --inline --host 127.0.0.1 --content-base examples/",
17-
"test": "NODE_ENV=test karma start"
17+
"test": "cross-env NODE_ENV=test karma start"
1818
},
1919
"authors": [
2020
"Ryan Florence"
@@ -25,6 +25,7 @@
2525
"babel-loader": "^6.2.4",
2626
"babel-preset-es2015": "^6.6.0",
2727
"babel-preset-react": "^6.5.0",
28+
"cross-env": "^5.0.1",
2829
"envify": "^3.4.1",
2930
"expect": "^1.20.2",
3031
"gitbook-cli": "^2.3.0",

Diff for: yarn.lock

+31-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
22
# yarn lockfile v1
3+
4+
35
abbrev@1, abbrev@~1.0.7, abbrev@~1.0.9:
46
version "1.0.9"
57
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135"
@@ -1092,13 +1094,28 @@ create-react-class@^15.5.2:
10921094
fbjs "^0.8.9"
10931095
object-assign "^4.1.1"
10941096

1097+
cross-env@^5.0.1:
1098+
version "5.0.1"
1099+
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.0.1.tgz#ff4e72ea43b47da2486b43a7f2043b2609e44913"
1100+
dependencies:
1101+
cross-spawn "^5.1.0"
1102+
is-windows "^1.0.0"
1103+
10951104
cross-spawn@^4.0.0:
10961105
version "4.0.2"
10971106
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41"
10981107
dependencies:
10991108
lru-cache "^4.0.1"
11001109
which "^1.2.9"
11011110

1111+
cross-spawn@^5.1.0:
1112+
version "5.1.0"
1113+
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
1114+
dependencies:
1115+
lru-cache "^4.0.1"
1116+
shebang-command "^1.2.0"
1117+
which "^1.2.9"
1118+
11021119
11031120
version "2.0.5"
11041121
resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8"
@@ -2224,6 +2241,10 @@ is-utf8@^0.2.0:
22242241
version "0.2.1"
22252242
resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
22262243

2244+
is-windows@^1.0.0:
2245+
version "1.0.1"
2246+
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.1.tgz#310db70f742d259a16a369202b51af84233310d9"
2247+
22272248
22282249
version "0.0.1"
22292250
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
@@ -3983,6 +4004,16 @@ sha@~2.0.1:
39834004
graceful-fs "^4.1.2"
39844005
readable-stream "^2.0.2"
39854006

4007+
shebang-command@^1.2.0:
4008+
version "1.2.0"
4009+
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
4010+
dependencies:
4011+
shebang-regex "^1.0.0"
4012+
4013+
shebang-regex@^1.0.0:
4014+
version "1.0.0"
4015+
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
4016+
39864017
shell-quote@^1.6.1:
39874018
version "1.6.1"
39884019
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767"
@@ -4680,4 +4711,3 @@ yargs@~3.5.4:
46804711
46814712
version "0.1.2"
46824713
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"
4683-

0 commit comments

Comments
 (0)