marianoguerra / json.human.js

Convert JSON to human readable HTML
http://marianoguerra.github.io/json.human.js/
975 stars 79 forks source link

Adds bower compatibility #19

Closed Esya closed 11 years ago

Esya commented 11 years ago

Json.human.js does not support Bower, with this pull requests everyone will be able to add it to their projects just by doing bower install json-human.

Once this is merged, the following needs to be ran :

bower register json-human https://github.com/marianoguerra/json.human.js.git

marianoguerra commented 11 years ago

Thanks!

do I have to run the command "bower register json-human https://github.com/marianoguerra/json.human.js.git" ?

Esya commented 11 years ago

Yup, you do!

Then people can add it to their project (Provided they have require.js) by doing this :

require.config({
    paths: {
        "crel": "bower_components/json-human/lib/crel"
    }
});

require(["bower_components/json-human/src/json.human"], function (JsonHuman) {
    //JsonHuman loaded
});

And the css

<link rel="stylesheet" type="text/css" href="bower_components/json-human/css/json.human.css">
marianoguerra commented 11 years ago

done!

thanks for all the help!

Esya commented 11 years ago

No problem! Thanks for sharing your library :+1: