-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resolved Composer #2988
resolved Composer #2988
Conversation
.gitignore
Outdated
@@ -1,6 +1,7 @@ | |||
.DS_Store | |||
node_modules | |||
.project | |||
.idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary change, should be in your global gitignore file IMO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we just let it here for others contributors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well since this is specific to a certain IDE I say no, because everyone can decide whatever IDE they use for js development. Was this an Android or iOS project I would agree in adding it to the projects gitignore file, because the options there are limited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
"homepage": "https://harvesthq.github.io/chosen/", | ||
"require": { | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a trailing newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
README.md
Outdated
To install with composer: | ||
|
||
``` | ||
composer require harvesthq/chosen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this to work it should still be added to packagist right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, it will after merge.
@@ -0,0 +1,36 @@ | |||
{ | |||
"name": "harvesthq/chosen", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be sure; can the name be an arbitrary value? Because this won't match with the repo path harvesthq/chosen-package
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that can be it like that.
Is it good right now? |
is it ready to merge please? |
README.md
Outdated
@@ -28,6 +28,12 @@ To install with npm: | |||
npm install chosen-js | |||
``` | |||
|
|||
To install with composer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please capitalize composer
and link it to https://getcomposer.org?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
I have created a |
@stof @koenpunt Before we continue too much further, we were all pretty ¯\_(ツ)_/¯ about this on #2803 — do either of you actually have any arguments for or against including this particularly? I've never heard of Composer/Packagist before, but I haven't written PHP in eons, so that doesn't mean much. It does seem like it's the de facto PHP package manager, though. That said, Chosen isn't a PHP library. There's also stuff like https://asset-packagist.org that seems to be intended as a bridge between Composer and NPM/bower... is that a better recommendation, or is that not as popular/reliable/trustworthy of a tool? /cc @harvesthq/chosen-developers |
@tjschuck : #2803 (comment) has several examples of JavaScript libs. We (Tiki Wiki CMS Groupware) use https://asset-packagist.org/ and it's clearly a second choice only when we can't get from Packagist. I highly recommend to proceed with Packagist:
Thanks! |
I used Composer in my PHP days, and there's really no alternative in dependency management. And since it's automated (it uses tagged releases), I don't think this will hurt us. |
Exactly. It is full-automated solution for PHP world. We need provide these steps:
For example of use-case is port to Drupal Chosen module which need manually install original library to |
Alright, I'm on board. Thanks, @landsman and @marclaporte ! |
Done! https://packagist.org/packages/harvesthq/chosen Thanks again, everyone. |
Thanks @tjschuck ! |
@hussainweb opened a PR that relates to this one: #3066 |
fixed pull request in #2803