-
Notifications
You must be signed in to change notification settings - Fork 2k
Loading Handlebars using bower #655
Copy link
Copy link
Closed
Labels
Description
Hi,
In my current project I download all 3rd part libraries and their dependencies using bower.
I noticed that for handlebars.js, the main library file does not get distribute as a part of a repo as per the guidelines :https://github.com/wycats/handlebars.js#installing
To get around this I modified my bower.json to directly point to the s3 server instance form where I can download the main js file. My config looks like this
{
"name": "RMn",
"version": "0.0.1",
"dependencies": {
...
"handlebars" : "http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.1.2.js",
...
}
}This works perfectly fine for me, but I have a couple of problems requesting the file this way
- The main handlebar.js file that gets downloaded has a weird name of index.js
- I am not sure if the s3 url is final or is subjected to change, in which case, I would need to edit my bower.json file every time.
Has anyone used bower to fetch handlerbars ? if so could you please share the bower.json config for the same.
Thanks,
Nikhil
Reactions are currently unavailable