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

Missing grunt dependencies #99

Open
NicolasGoeddel opened this issue Sep 23, 2020 · 0 comments
Open

Missing grunt dependencies #99

NicolasGoeddel opened this issue Sep 23, 2020 · 0 comments

Comments

@NicolasGoeddel
Copy link

Hi,

I was trying to compile my bundles using plone-compile-resources but got some issue because several npm packages were missing. I needed to install a few packages to make it work (see below). Also there was a NoneType error here because I had a bundle without resources and bundle.resources was None in this case.


If fixed it with an if bundle.resources around the for loop.

Then I was able to cd into my package source directory and run the command like so:

user@machine:~/Plone/zeocluster/src/my.package$ sudo apt install npm
user@machine:~/Plone/zeocluster/src/my.package$ plone-compile-resources -i ../../bin/client1 -s Plone3
...FAILING...
user@machine:~/Plone/zeocluster/src/my.package$ npm install grunt-cli less-plugin-inline-urls grunt-contrib-requirejs grunt-contrib-uglify grunt-sed
user@machine:~/Plone/zeocluster/src/my.package$ plone-compile-resources -i ../../bin/client1 -s Plone3
...SUCCESS...

It ran without errors.

Unfortunately I was thinking it will create the missing theme-compiled.css file after installing a theme using bobtemplates.plone but I guess I am making something wrong. However it seems that the script plone-compile-resources does not work out of the box on a Plone 5.2 installation with Python 3.8.x.

This is the section of my develop.cfg for installing the script:

parts +=
    resources

[resources]
recipe = zc.recipe.egg
eggs =
    plone.staticresources
scripts = plone-compile-resources
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

1 participant