Skip to content

Loading Handlebars using bower #655

@niki4810

Description

@niki4810

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

  1. The main handlebar.js file that gets downloaded has a weird name of index.js
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions