mistic100 / jQuery-QueryBuilder

jQuery plugin offering an interface to create complex queries
https://querybuilder.js.org
MIT License
1.68k stars 552 forks source link

composer.json #20

Closed piotr-grzelka closed 10 years ago

piotr-grzelka commented 10 years ago

Can you add a file with the following content named composer.json for your project?

{
    "name": "mistic100/jQuery-QueryBuilder",
    "description": "jQuery plugin for user friendly query/filter creator",
    "keywords": [ "jquery", "query", "builder", "filter"],
    "homepage": "https://github.com/mistic100/jQuery-QueryBuilder",
    "authors": [
        {
            "name": "Damien \"Mistic\" Sorel",
            "homepage": "http://www.strangeplanet.fr"
        },
    ],
    "support": {
        "issues": "https://github.com/mistic100/jQuery-QueryBuilder/issues"
    },
    "author": "Damien \"Mistic\" Sorel",
    "license": "MIT"
}
mistic100 commented 10 years ago

Isn't composer used for PHP dependencies only ?

Seems weird to use it for front-end librairies as Bower is specially designed for that purpose I saw that like NPM, Composer allows to add post install scripts, can be used to trigger Bower update

Would apreciate an article explaining it's a good practice.

Also wouldn't I have to publish and maintain the plugin on another repository ?

piotr-grzelka commented 10 years ago

Yes, composer is usually used for php projects, but some javascript libraries used compser. e. g. https://github.com/twitter/typeahead.js and https://github.com/2amigos/yii2-type-ahead-widget which incurs js file.

I want to create a small integration QueryBuilder with Yii2. The only thing I need is a file composer.json in QueryBuilder.

Sorry for my poor English.

mistic100 commented 10 years ago

can you add the three dependencies and create a pull request ?

piotr-grzelka commented 10 years ago

Depending added and pull request created

mistic100 commented 10 years ago

Awesome.... Packagist refuse packages with uppercase letters I won't rename it just for that

mistic100 commented 10 years ago

okaaay it's just the internal name in json file so updated and pushed https://packagist.org/packages/mistic100/jquery-querybuilder