FormidableLabs / spectacle-boilerplate

[DEPRECATED] Boilerplate project for getting started with Spectacle Core
579 stars 192 forks source link

Add instructions for running on windows #10

Closed juristr closed 8 years ago

juristr commented 8 years ago

Hi,

I just wanted to launch it on my Win7 PC and it won't work due to how the NODE_ENV variable is set in package.json. Just added a note for that on the README so that others can quickly fix it.

ryan-roemer commented 8 years ago

@kenwheeler -- When you switch to builder archetype and have builder available, you can do a cross-os env variable with:

{
  "build-base": "webpack --config webpack.config.production.js",
  "build": "builder envs build-base '[{\"NODE_ENV\":\"production\"}]'",
  "start-base": "node server.js",
  "start": "builder envs start-base '[{\"NODE_ENV\":\"development\"}]'",
}

or some derivation / alternate version of that.

kenwheeler commented 8 years ago

@ryan-roemer thats awesome, I'm going to pull this in until I can get an archetype put together