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
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
This works perfectly fine for me, but I have a couple of problems requesting the file this way
Has anyone used bower to fetch handlerbars ? if so could you please share the bower.json config for the same.
Thanks,
Nikhil