volojs / volo

Create front end projects from templates, add dependencies, and automate the resulting projects
https://volojs.github.io/
Other
1.41k stars 100 forks source link

add individual file #214

Closed lagden closed 9 years ago

lagden commented 9 years ago

I am having troubles when I am trying add a file.js

In your doc https://github.com/volojs/volo/blob/master/commands/add/doc.md:

user/repo/tag#specific/file.js

Well, I tried:

$ volo add -f jadejs/jade/#1.9.2/runtime.js
Downloading: https://codeload.github.com/jadejs/jade/legacy.zip/1.9.2
.get() is deprecated. Access using array indexes instead.
Error: ENOENT, no such file or directory '/var/folders/t4/7g67dljn7l303w5gjs12jp4w0000gp/T/temp-runtime-1430164745942-1/jadejs-jade-c061cfc/1.9.2/runtime.js'

Which is the right syntax? Help!!

Tks.

jrburke commented 9 years ago

I think the example just has the fragment ID (the # part) not in the right place. Something like this works for me:

volo add -f jadejs/jade/1.9.2#runtime.js

I think that is it, so will close, but feel free to continue discussion here and we can reopen as necessary.

lagden commented 9 years ago

@jrburke Thank you so much!! :+1: