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: Remove dev dependency on global packages #8

Closed
spicywhitefish opened this issue May 5, 2016 · 1 comment
Closed

Suggestion: Remove dev dependency on global packages #8

spicywhitefish opened this issue May 5, 2016 · 1 comment

Comments

@spicywhitefish
Copy link

In package.json:
`- "postinstall": "typings install",

  • "test": "gulp test"
  • "gulp": "node node_modules/.bin/gulp",
  • "typings": "node node_modules/.bin/typings",
  • "test": "npm run gulp test",
  • "postinstall": "npm run typings -- install"`

Now gulp install (global gulp) is npm run gulp install.
This approach, while a little more verbose, is more accommodating for users or CI environments with a different version of typings or gulp installed globally.

@spicywhitefish
Copy link
Author

Closing this issue, as this approach has caused difficulties for cross-platform dev. Specifically, the files in node_modules/.bin for Windows are bash scripts, but on OS X, they are JavaScript.

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

Successfully merging a pull request may close this issue.

1 participant