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

Already on GitHub? Sign in to your account

add CLI command for downloading popular dependencies #1

Closed
testdouble opened this Issue Jul 23, 2012 · 5 comments

Comments

Projects
None yet
3 participants
@ghost

ghost commented Jul 23, 2012

Let's start with a CLI command driven by a task that downloads a known file and places it in the right spot in vendor.

A few initial concerns:

  • File extension detection (js, css, png/jpg/gif) to figure out which vendor directory to stick it in
  • ZIP file support (e.g. bootstrap's assets are in a ZIP with half a dozen paths beneath it)
  • dependencies (e.g. backbone depends on underscore, and not only should both be pulled in, but the config/files.js needs to be updated--if we leave this for users to do manually, that's a pain.

@ghost ghost assigned searls Oct 27, 2012

Owner

searls commented Oct 27, 2012

Owner

searls commented Oct 27, 2012

Some more examples:

$ lineman fetch

Error: No libraries selected

usage: $ lineman fetch <library_name> 

available libraries: 
 - backbone
 - jquery
 - normalize
 - underscore

And here's a library that figures out to go into the css/ dir.

$ lineman fetch normalize
Lineman will fetch: [normalize]
Attempting to fetch 'normalize' from 'http://necolas.github.com/normalize.css/2.0.1/normalize.css'
'normalize' installed to '/Users/justin/code/testdouble/lineman-example/vendor/css/normalize.css'

@searls searls added a commit that referenced this issue Oct 27, 2012

@searls searls touch of docs for issue #1 63ba3d7

@searls searls added a commit that referenced this issue Oct 27, 2012

@searls searls working on issue #1 yet… this almost works, but it
looks like adm-zip isn't reliable, as every file
in bootstrap's ZIP fails CRC32 check and is abbreviated
incorrectly upon extract..

Looks like the easiest approach will be to either fork
arm-zip or find a new zip lib
35e3628
Owner

searls commented May 10, 2013

It turns out that lineman works great with Bower as-is. You just need to configure config/files.js to look at Bower's repo.

@searls searls closed this May 10, 2013

Contributor

davemo commented May 10, 2013

👍

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