meatier icon indicating copy to clipboard operation
meatier copied to clipboard

Add cross-env

Open wtgtybhertgeghgtwtg opened this issue 10 years ago • 7 comments

This will allow npm scripts to be run on Windows environments.

wtgtybhertgeghgtwtg avatar Apr 22 '16 21:04 wtgtybhertgeghgtwtg

duplicate of #134 there's another way for windows users to make this work, right?

mattkrick avatar Apr 22 '16 21:04 mattkrick

What I had been doing was changing, for example "NODE_ENV=development node ./src/server/server.babel.js" to "set NODE_ENV=development&& node ./src/server/server.babel.js" But I don't know if that'd work on other platforms. This seems to be the simplest way.

wtgtybhertgeghgtwtg avatar Apr 22 '16 21:04 wtgtybhertgeghgtwtg

as an OSX/linux guy i'm biased, but i feel like adding another dependency that is OS-specific is more confusing than just having windows folks prefix their commands with 'set'. I'm not 100% opposed to it, but "set" is shorter & it's expressive, so you know what it does. As a new dev to this repo, I'd probably look up what cross-env does, then realize I don't need it & delete it from all the scripts as well as deps.

mattkrick avatar Apr 22 '16 22:04 mattkrick

The problem with that is that it's not documented. And even if you do document it, Windows users who download the package have to find that document, then alter the package in order to use it.

wtgtybhertgeghgtwtg avatar Apr 22 '16 22:04 wtgtybhertgeghgtwtg

I'm totally open to documenting it! Currently installing rethinkDB isn't documented for windows. We could add a little something to the readme that says how to install RethinkDB & adjust the scripts. I'm just very hesitant to add in OS-specific stuff, especially when it's an OS that no one will deploy on.

mattkrick avatar Apr 22 '16 22:04 mattkrick

I don't think it's that big of a deal either way. But it is a devDependency for react-look, so wouldn't it be there either way once https://github.com/mattkrick/meatier/issues/141 gets done?

wtgtybhertgeghgtwtg avatar Apr 22 '16 23:04 wtgtybhertgeghgtwtg

if it's a devDeop, nah. But it's not the size, it's having 1 more thing that meatier is directly responsible for + the mental overhead for a newcomer having to figure out what it is, what it does, and whether they need it or not. If a dependency has sub-dependencies, I don't really care about those because all I'm after is a black box with an API, I don't care how that is achieved. I could see how it'd be beneficial if someone developed on both windows & mac at the same time, and in those scenarios it's just 1 install away.

mattkrick avatar Apr 23 '16 13:04 mattkrick