-
Notifications
You must be signed in to change notification settings - Fork 39
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
Filename patterns #1
Comments
This would be a very helpful to me. Is it something you are working on? Another solution (maybe simpler?) would be to define a snocket mapping that let me link a specific keyword to a library. So for example:
Then when I |
@evanmoran, I'm doing the poor man's version of exactly that, using symlinks. Of course, it would still be nicer to have a built-in solution. I can see advantages to both options. Wildcards are a little less opaque, and I like the idea of being able to do #= require jquery-1.6.* However, the same need could be filled with the mappings you suggest... snocket.name "jquery-1.6", "scripts/lib/jquery/1.6.3/jquery.min.js"
snocket.name "jquery-1.7", "scripts/lib/jquery/1.7.0/jquery.min.js"
snocket.name "jquery", "jquery-1.6" # map to another mapping, yeah? And mappings would open up some other niceties, such as snocket.name "dom_query", "vendor/jquery_or_some_other_library_i_may_change_at_will" |
Nice @iangreenleaf, symlinks are a great suggestion. thanks! I like your idea of mapping to other mappings. What do you think of the word
Lastly I see this as useful for directory includes as well. For example:
|
Yeah, I like |
Fixed in 2.0.0 #43 |
It would be really useful to have directory aliases as well. |
We've all been there: You update the jQuery lib in your project. Several modules depend on jQuery. But you want the file to retain its version number. So you have to do a project-wide find-and-replace from
to
Instead of doing that, I'd like to support wildcards, so that
jquery-*
scans for any file with a matching name.The text was updated successfully, but these errors were encountered: