-
Notifications
You must be signed in to change notification settings - Fork 145
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
Add compression-webpack-plugin #1453
Add compression-webpack-plugin #1453
Conversation
FYI core was merged. |
This is still failing to build, please fix the failure and ensure comments/FIXME comments are resolved in the spec file. |
4d8571f
to
6661622
Compare
@domcleal updated the spec file, hopefully tests will pass now, thanks. |
9934c7c
to
1c3b47f
Compare
@domcleal fixed the failing build, seems to work now. |
The spec file lists a large number of bundled packages, but the resulting RPM doesn't seem to contain any node_modules directory - only the top-level package contents: /usr/lib/node_modules/compression-webpack-plugin /usr/lib/node_modules/compression-webpack-plugin/.gitattributes /usr/lib/node_modules/compression-webpack-plugin/.npmignore /usr/lib/node_modules/compression-webpack-plugin/README.md /usr/lib/node_modules/compression-webpack-plugin/index.js /usr/lib/node_modules/compression-webpack-plugin/package.json Please check the dependencies are present. |
looks like this is pulling in a ton of unwanted optional dependencies due to an issue with how npm registry lists dependcies. npm/npm-remote-ls#32 should fix it and significantly reduce the size of this package, I'll try to get this fixed. |
@tbrisker is the npm-remote-ls fix required to generate the package or to build the package? If the former, could we build out the spec and dependencies by hand so as to get this built given it will be required to get nightly builds going. |
1c3b47f
to
7012faa
Compare
@tbrisker This is missing adding the package to |
@@ -29,13 +29,15 @@ | |||
<packagereq type="default">foreman-selinux</packagereq> | |||
<packagereq type="default">foreman-sqlite</packagereq> | |||
<packagereq type="default">foreman-vmware</packagereq> | |||
<packagereq type="default">nodejs-async</packagereq> |
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.
Run ./comps_doc.sh
, there are no -doc packages in either of the comps
webpack-sources appears to depend on source-map and source-list-map, but these dependencies aren't either here or bundled. Can you check the package deps resolve? |
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.
nodejs-webpack-sources has unresolved deps.
c894e5f
to
06b6fb7
Compare
@domcleal Thanks, updated with those 2 packages as well. |
%if 0%{?enable_tests} | ||
%check | ||
%{nodejs_symlink_deps} --check | ||
#$CHECK |
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.
Useless comment.
Version: 0.5.6 | ||
Release: 1%{?dist} | ||
Summary: Generates and consumes source maps | ||
License: BSD-3-Clause |
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.
BSD
%if 0%{?enable_tests} | ||
%check | ||
%{nodejs_symlink_deps} --check | ||
#$CHECK |
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.
remove
%files | ||
%{nodejs_sitelib}/%{npm_name} | ||
%doc LICENSE | ||
%doc CHANGELOG.md |
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.
-doc subpackage
@@ -29,13 +29,15 @@ | |||
<packagereq type="default">foreman-selinux</packagereq> | |||
<packagereq type="default">foreman-sqlite</packagereq> | |||
<packagereq type="default">foreman-vmware</packagereq> | |||
<packagereq type="default">nodejs-async</packagereq> |
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.
nodejs-async 1.5's already in the distribution, is the older dep going to resolve correctly, since it's 0.2.x
? Bundling the dependency would be preferable I think in this case.
06b6fb7
to
d44199b
Compare
Yet another try, back to bundled. |
Please check the RPM builds, there is a failure. |
d44199b
to
e2be899
Compare
e2be899
to
6d6010a
Compare
6d6010a
to
ba33463
Compare
I give up. The time and effort wasted on making these useless rpms is ridiculous, instead of just running an |
This depends on theforeman/foreman#3883 being merged.
For plugin updates, please indicate which repos this should be built into:
See Foreman's plugin maintainer documentation for more information.