https://bugzilla.redhat.com/show_bug.cgi?id=2360489

Jiří Kyjovský <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]



--- Comment #7 from Jiří Kyjovský <[email protected]> ---
I created copr repo with the latest updates that contains blockers for anubis:
https://copr.fedorainfracloud.org/coprs/nikromen/anubis-test/packages/

the postcss-cli contains a wrapper that sets NODE_PATH correctly to fix the
"Not found cssnano" issue

```
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{name}
cp -pr package.json index.js lib/ %{buildroot}%{nodejs_sitelib}/%{name}/
# Copy over bundled nodejs modules
cp -pr node_modules node_modules_prod %{buildroot}%{nodejs_sitelib}/%{name}/

mkdir -p %{buildroot}%{_bindir}
# wrapper script for postcss CLI to set NODE_PATH
cat << 'EOF' > %{buildroot}%{_bindir}/postcss
#!/bin/sh
# Set NODE_PATH to the system-wide node_modules directory
export NODE_PATH=%{nodejs_sitelib}
# Execute the actual postcss script, passing all arguments
exec %{nodejs_sitelib}/%{name}/index.js "$@"
EOF

# Make the wrapper script executable
chmod +x %{buildroot}%{_bindir}/postcss

%check
%{buildroot}%{nodejs_sitelib}/%{name}/index.js --help
```

and it also contains the preset-advanced for cssnano which is under review
https://bugzilla.redhat.com/show_bug.cgi?id=2387591

and the anubis builds with these fixes (and with the correct
xess/postcss.config.js), so hopefully these will unblock it.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2360489

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202360489%23c7

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to