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

Using 0.2.3-1 #6

Closed
vitch opened this issue Dec 21, 2012 · 4 comments
Closed

Using 0.2.3-1 #6

vitch opened this issue Dec 21, 2012 · 4 comments

Comments

@vitch
Copy link

vitch commented Dec 21, 2012

I'm updating a project to grunt 0.4 and so I need to use release 0.2.3-1 of grunt-jslint. Unfortunately this version isn't available via npm install yet.

I tried adding the git URL as a dependency in my package.json:

"grunt-jslint": "git://github.com/stephenmathieson/grunt-jslint.git#0.2.3-1",

However this dies with:

Loading "jslint.js" tasks and helpers...ERROR
>> TaskError: Unable to read "[path]node_modules/grunt-jslint/tasks/JSLint/jslint.js" file (Error code: ENOENT).

Looking at it I think this is because the JSLint submodule is not available. Is there a workaround for this or is it possible to make 0.2.3-1 available via npm?

Thanks!

@stephenmathieson
Copy link
Collaborator

You'll have to manually init the submodule as git clone doesn't do this for you:

cd [path]/node_modules/grunt-jslint/tasks/JSLint
git submodule update --init

This is an obnoxious task and I do plan on pushing the latest to NPM soon.

@vitch
Copy link
Author

vitch commented Dec 21, 2012

Thanks!

The other workaround is to git clone --recursive git://github.com/stephenmathieson/grunt-jslint.git to a folder and then npm install /path/to/checked/out/repo

The downside of both approaches is that my CI server can't automatically npm install to get all dependencies so I'll look forward to the NPM release :)

@stephenmathieson
Copy link
Collaborator

FYI - I just pushed to NPM.

@vitch
Copy link
Author

vitch commented Dec 22, 2012

Awesome - thanks so much :D

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

No branches or pull requests

2 participants