Closed katopz closed 8 years ago
Thanks @katopz - looks good. Is there a way to keep that environment variable for PORT
working? I'm basically unfamiliar with cmd, heh.
AFAIK, It has but it won't cross-platform and maybe not one liner.
Maybe we can do something like "start_win" : "and-we-do-windows-stupid-cmd-here"
instead and left "start" untouched for mac. :)
Fine by me then!
FYI
${PORT:-8080}
mkdir -p
via windows will create undesired path-p
npm run env
didn't work properly with&&
socross-env
is better choice here.I try to made minimal change as possible, tested on both Windows 7sp1, MacOS ElCap. I you fine with this, I'll start to roll out this to other example. :)