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

Install Mocha as a development dependency #65

Merged
merged 1 commit into from
Dec 1, 2015
Merged

Install Mocha as a development dependency #65

merged 1 commit into from
Dec 1, 2015

Conversation

rowanmanning
Copy link
Contributor

I don't know if you're adverse to this, but it means one less step for new contributors if you install Mocha as a development dependency. It caught me out for just a second :)

@rowanmanning rowanmanning deleted the mocha-dependency branch December 1, 2015 11:25
@rowanmanning rowanmanning restored the mocha-dependency branch December 1, 2015 11:25
@rowanmanning rowanmanning reopened this Dec 1, 2015
@rowanmanning
Copy link
Contributor Author

Oops, accidentally deleted my branch! Sorry for spam

@M-Zuber
Copy link
Collaborator

M-Zuber commented Dec 1, 2015

Looks good to me, but I'll let @basicallydan sign off on this one

@basicallydan
Copy link
Owner

Probably a stupid question: doesn't Mocha require global installation to
work? And therefore, not possible to put into dev deps? Or have I been
living under false pretences?

If I'm wrong, that's a great idea!
On 1 Dec 2015 18:32, "Mordechai Zuber" notifications@github.com wrote:

Looks good to me, but I'll let @basicallydan
https://github.com/basicallydan sign off on this one


Reply to this email directly or view it on GitHub
#65 (comment)
.

@M-Zuber
Copy link
Collaborator

M-Zuber commented Dec 1, 2015

I had a feeling that there was more to this. Glad I didn't just merge. 😁

@rowanmanning
Copy link
Contributor Author

Mocha's fine as a local dependency, running it like this in all of mine and my company's projects :) you just need to reference the bin within node_modules instead.

Same with JSHint et al.

@rowanmanning
Copy link
Contributor Author

Realise that's quite anecdotal. More solid example: Express includes Mocha in the dev dependencies, and that project was created by the author of Mocha https://github.com/strongloop/express/blob/master/package.json

@basicallydan
Copy link
Owner

I see. That's a good idea. Okay. Also means we can control the version I
suppose! I haven't actually looked at the code yet as I'm currently on my
phone but as long as it all works then it sounds fine to me!
On 1 Dec 2015 18:41, "Rowan Manning" notifications@github.com wrote:

Realise that's quite anecdotal. More solid example: Express includes Mocha
in the dev dependencies, and that project was created by the author of
Mocha https://github.com/strongloop/express/blob/master/package.json


Reply to this email directly or view it on GitHub
#65 (comment)
.

@M-Zuber
Copy link
Collaborator

M-Zuber commented Dec 1, 2015

I'll merge as the code looks like a simple change.
Hope nothing goes :bang:

M-Zuber added a commit that referenced this pull request Dec 1, 2015
Install Mocha as a development dependency
@M-Zuber M-Zuber merged commit 8bf6ff3 into basicallydan:master Dec 1, 2015
@rowanmanning rowanmanning deleted the mocha-dependency branch December 1, 2015 12:00
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 this pull request may close these issues.

None yet

3 participants