Skip to content

Commit

Permalink
Allows you to run on windows (#1)
Browse files Browse the repository at this point in the history
* add cross-env

* use cross-env for scripts run commands
  • Loading branch information
baitun authored and ElForastero committed Jul 11, 2019
1 parent 1187263 commit 978740a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"url": "https://github.com/ElForastero/preact-browser-extension-boilerplate"
},
"scripts": {
"build": "NODE_ENV=production yarn webpack -c webpack.config.js --mode production",
"watch": "NODE_ENV=development yarn webpack -c webpack.config.js --mode development -w"
"build": "cross-env NODE_ENV=production yarn webpack -c webpack.config.js --mode production",
"watch": "cross-env NODE_ENV=development yarn webpack -c webpack.config.js --mode development -w"
},
"devDependencies": {
"@babel/core": "^7.4.5",
Expand All @@ -19,6 +19,7 @@
"babel-plugin-react-css-modules": "^5.2.6",
"clean-webpack-plugin": "^2.0.2",
"copy-webpack-plugin": "^5.0.3",
"cross-env": "^5.2.0",
"css-loader": "^2.1.1",
"html-webpack-plugin": "^4.0.0-beta.5",
"incstr": "^1.2.3",
Expand Down
12 changes: 10 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,15 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
safe-buffer "^5.0.1"
sha.js "^2.4.8"

[email protected], cross-spawn@^6.0.0:
cross-env@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.2.0.tgz#6ecd4c015d5773e614039ee529076669b9d126f2"
integrity sha512-jtdNFfFW1hB7sMhr/H6rW1Z45LFqyI431m3qU6bFXcQ3Eh7LtBuG3h74o7ohHZ3crrRkkqHlo4jYHFPcjroANg==
dependencies:
cross-spawn "^6.0.5"
is-windows "^1.0.0"

[email protected], cross-spawn@^6.0.0, cross-spawn@^6.0.5:
version "6.0.5"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==
Expand Down Expand Up @@ -2808,7 +2816,7 @@ is-symbol@^1.0.2:
dependencies:
has-symbols "^1.0.0"

is-windows@^1.0.1, is-windows@^1.0.2:
is-windows@^1.0.0, is-windows@^1.0.1, is-windows@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==
Expand Down

0 comments on commit 978740a

Please sign in to comment.