Skip to content
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

Use --no-dev When Building #52

Closed
mcordingley opened this issue Nov 6, 2015 · 3 comments
Closed

Use --no-dev When Building #52

mcordingley opened this issue Nov 6, 2015 · 3 comments

Comments

@mcordingley
Copy link

I just ran this on one of my own libraries to see how it would work (neat, btw!) and found that it pulled in development dependencies into the generated phar. It would be nice to have an option to leave off dev dependencies from the built phar file. It would be nicer still to (eventually) have that be the default and there be an option to explicitly include dev dependencies.

@mcordingley
Copy link
Author

This would help keep the size of generated phar files down, as dev dependencies can be quite large at times. My own small library that I did a test build of this on created a phar four megabytes large. While it has some dependencies of its own, most of that is the dev deps.

@mcordingley
Copy link
Author

Looks like #37 does this. 👍

@clue
Copy link
Owner

clue commented Nov 7, 2015

As a temporary workaround, you may also try to install your library with composer install --no-dev and then running phar-composer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants