Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Suggestion) Use cross-env to avoid duplicating NPM scripts #317

Closed
fvictorio opened this issue Oct 31, 2017 · 1 comment
Closed

(Suggestion) Use cross-env to avoid duplicating NPM scripts #317

fvictorio opened this issue Oct 31, 2017 · 1 comment
Assignees

Comments

@fvictorio
Copy link
Contributor

Right now there are several duplicated NPM scripts with the suffix Win and using windows-style environment variables.

An alternative way to handle this is to add cross-env as a devDependency and replace

scriptName: node $someVar main.js,
scriptNameWin: node %someVar% main.js

with

scriptName: cross-env node $someVar main.js
@fvictorio
Copy link
Contributor Author

Closing, see #382 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants