-
Notifications
You must be signed in to change notification settings - Fork 42
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
Reduce external dependencies #633
Conversation
This has be accompanied by express-processimage's dependency list also being slimmed down, right? https://github.com/papandreou/express-processimage/blob/195e3e86c41beb0dfc019cae71c492ac1301dfe8/package.json#L11-L29 |
The point of removing these OS-level dependencies are that the node-installed versions of these already come with their binaries. So they're essentially just noise in our installation instructions. The npm dependencies are what makes it continue to work |
The true test is of course removing those in the travis config. Coming up... |
Ah, okay, makes sense 👍 |
This last build error was intentional. I've removed the dependencies needed to build assetgraph-sprite in the current version. I expect the build to go green when we depend on the next version with cairo external dependency removed |
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.
Looks great -- but let's get the new ag-s released so we can see it go green?
I agree. Since there are no tests of the gzip transform, we can just remove the dependency altogether. I'll look into that. |
082d7be
to
779265b
Compare
32c1cd4
to
1306a81
Compare
Looks like there is a problem with express-processimage somewhere between 8.0.0 and 8.0.2 which causes Travis and my local machine to both fail with: https://travis-ci.org/assetgraph/assetgraph-builder/jobs/462165078#L748-L759 |
I think I've seen that failure on CI before, but I can't reproduce it locally :( |
8e2b67e
to
67b9470
Compare
…y stream error and added tests for a combination of processimage filters
67b9470
to
b6aa34a
Compare
I fixed the express-processimage problem on master and upgraded to 8.1.0. |
* master: Run optipng before pngcrush Update express-processimage to version 8.1.0 CHANGELOG: Include regular commits npx offline-github-changelog > CHANGELOG.md
@Munter, can we merge this now, or is there still work left to do? |
I think the things I really wanted to fix are done. There's probably possible optimizations left, but at least the reduction to only two optional OS-level installations is nice. So I think we should merge |
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.
Excellent!
Sweet! What release? |
@plroebuck, 6.10.0, released 4 seconds ago 😎 |
Refs #627
Fixes #625
jpegtran
,pngquant
,optipng
,pngcrush
andgifsicle
OS-level dependency and install instructions. Already part of npm installcairo
,libjpeg
,libgif
andlibpango
We should also consider moving
node-zopfli
optionalDependency into devDependency and just not spam the users with failed installation messages for optional depednencies, which npm really puts to much emphasis on. The fallback at runtime is that assetgraph emits an event about a possible improvement if you installnode-zopfli
, but there will be no failure.