-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[DEV] Ignoring dist files/folders #2617
Comments
…g and publishing package fix #2617
One benefit of keeping the dist directory, is it easily allows people to test the latest master code (before a published release) to see if their issue has been fixed. Maybe there's a better solution, though. I'm not sure how often users actually did that anyway in practice. |
It's really not a good practice to do this. Now commits/diffs can be much cleaner! |
now dist is missing in composer beta installation |
IMHO a javascript library should not be installed with a PHP dependency management system such as composer. So this project shouldn't have a Given that there are no real active projects depending on the composer package, I suggest removing the composer.json and packagist package entirely instead of trying to fix a flawed approach. Unless one can show me a valid use of installing a JS lib through composer. Note that you can workaround this issue with a build step on your side. |
lmao cakephp comes with composer and alot other php frameworks and its not like u r the only js project in composer. |
...
Of course it does. PHP dependencies come in composer, as they should. I'm not talking about this. I'm talking about installing this JS library through composer. Or any JS lib for that matter.
No. But it's not because you can that you should. Installing JS libs through composer is weird and seldom used (this is an opinion, not ground truth). Look at
First, let me be very clear, nobody cares that you use or don't use this library. Being a Karen about it won't change a thing. Second, I'm just voicing my opinion, we are discussing it. If the composer package can be fixed by adding a few lines somewhere so the Now you can propose a PR to fix that issue, or "stop using this lib 4ever". I would also be happy to have the opinion of other devs/users reading this. Should composer be supported as an install option? Am I crazy to think that a PHP dependency packager should be used for PHP dependencies and a JS dependency manager for JS dependencies? As a final note @reloxx13, please keep in mind that you are using something for free and are entitled to strictly nothing. So you need to be polite and write your messages with all letters, this is not a fortnite forum. |
This issue concerns devs on this repo.
I believe the
dist/
folder and thedocs/docs/dist
folders should be added to.gitignore
and any grunt command to build or clean MUST not pollute the diff with unrelated changes.This should help make PRs easier to work with because of smaller diffs, and it's also good practice to do so.
If this change is accepted, you might need to change your npm publish process and add a build step (or not).
@caseyjhol Is there a good reason to keep the built files in the repo?
If not, I can make a PR.
The text was updated successfully, but these errors were encountered: