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

Grunt less stuck on third task - Docker - Mac - Rosetta #374

Open
kczereczon opened this issue Feb 28, 2023 · 1 comment
Open

Grunt less stuck on third task - Docker - Mac - Rosetta #374

kczereczon opened this issue Feb 28, 2023 · 1 comment

Comments

@kczereczon
Copy link

Hi,

Currently I'm working on one of EspoCRM project on 7.0.9 version link: https://github.com/espocrm/espocrm/releases/tag/7.0.9

I'm using Mac with M1 silicon, and build project under roseta, because docker gives this option in last update.

Grunt less stuck every time on third task logs:

Running "less" task
[D] Task source: /var/www/html/node_modules/grunt-contrib-less/tasks/less.js

Running "less:Espo" (less) task
[D] Task source: /var/www/html/node_modules/grunt-contrib-less/tasks/less.js
Verifying property less.Espo exists in config...OK
Files: frontend/less/espo/main.less -> client/css/espo/espo.css
Files: frontend/less/espo/iframe/main.less -> client/css/espo/espo-iframe.css
Options: banner="", yuicompress, stdio="inherit"
Reading frontend/less/espo/main.less...OK
Writing client/css/espo/espo.css...OK
File client/css/espo/espo.css created
Reading frontend/less/espo/iframe/main.less...OK
Writing client/css/espo/espo-iframe.css...OK
File client/css/espo/espo-iframe.css created
>> 2 stylesheets created.

Running "less:EspoRtl" (less) task
[D] Task source: /var/www/html/node_modules/grunt-contrib-less/tasks/less.js
Verifying property less.EspoRtl exists in config...OK
Files: frontend/less/espo-rtl/main.less -> client/css/espo/espo-rtl.css
Files: frontend/less/espo-rtl/iframe/main.less -> client/css/espo/espo-rtl-iframe.css
Options: banner="", yuicompress, stdio="inherit"
Reading frontend/less/espo-rtl/main.less...OK
Writing client/css/espo/espo-rtl.css...OK
File client/css/espo/espo-rtl.css created
Reading frontend/less/espo-rtl/iframe/main.less...OK
Writing client/css/espo/espo-rtl-iframe.css...OK
File client/css/espo/espo-rtl-iframe.css created
>> 2 stylesheets created.

Running "less:EspoVertical" (less) task
[D] Task source: /var/www/html/node_modules/grunt-contrib-less/tasks/less.js
Verifying property less.EspoVertical exists in config...OK
Files: frontend/less/espo-vertical/main.less -> client/css/espo/espo-vertical.css
Files: frontend/less/espo-vertical/iframe/main.less -> client/css/espo/espo-vertical-iframe.css
Options: banner="", yuicompress, stdio="inherit"
Reading frontend/less/espo-vertical/main.less...OK

after removed EspoRtl template

[D] Task source: /var/www/html/node_modules/grunt-contrib-less/tasks/less.js

Running "less:Espo" (less) task
[D] Task source: /var/www/html/node_modules/grunt-contrib-less/tasks/less.js
Verifying property less.Espo exists in config...OK
Files: frontend/less/espo/main.less -> client/css/espo/espo.css
Files: frontend/less/espo/iframe/main.less -> client/css/espo/espo-iframe.css
Options: banner="", yuicompress, stdio="inherit"
Reading frontend/less/espo/main.less...OK
Writing client/css/espo/espo.css...OK
File client/css/espo/espo.css created
Reading frontend/less/espo/iframe/main.less...OK
Writing client/css/espo/espo-iframe.css...OK
File client/css/espo/espo-iframe.css created
>> 2 stylesheets created.

Running "less:EspoRtl" (less) task
[D] Task source: /var/www/html/node_modules/grunt-contrib-less/tasks/less.js
Verifying property less.EspoRtl exists in config...OK
Files: [no src] -> client/css/espo/espo-rtl.css
Files: [no src] -> client/css/espo/espo-rtl-iframe.css
Options: banner="", yuicompress, stdio="inherit"
>> Destination client/css/espo/espo-rtl.css not written because no source files were found.
>> Destination client/css/espo/espo-rtl-iframe.css not written because no source files were found.

Running "less:EspoVertical" (less) task
[D] Task source: /var/www/html/node_modules/grunt-contrib-less/tasks/less.js
Verifying property less.EspoVertical exists in config...OK
Files: frontend/less/espo-vertical/main.less -> client/css/espo/espo-vertical.css
Files: frontend/less/espo-vertical/iframe/main.less -> client/css/espo/espo-vertical-iframe.css
Options: banner="", yuicompress, stdio="inherit"
Reading frontend/less/espo-vertical/main.less...OK
Writing client/css/espo/espo-vertical.css...OK
File client/css/espo/espo-vertical.css created
Reading frontend/less/espo-vertical/iframe/main.less...OK
Writing client/css/espo/espo-vertical-iframe.css...OK
File client/css/espo/espo-vertical-iframe.css created
>> 2 stylesheets created.

Running "less:Hazyblue" (less) task
[D] Task source: /var/www/html/node_modules/grunt-contrib-less/tasks/less.js
Verifying property less.Hazyblue exists in config...OK
Files: frontend/less/hazyblue/main.less -> client/css/espo/hazyblue.css
Files: frontend/less/hazyblue/iframe/main.less -> client/css/espo/hazyblue-iframe.css
Options: banner="", yuicompress, stdio="inherit"
Reading frontend/less/hazyblue/main.less...OK

When I disable roseta feature everything works as should also project is building properly on bitbucket pipelines. Is this problem with grunt less, grunt or maybe rosetta?

@kczereczon
Copy link
Author

kczereczon commented Feb 28, 2023

Work around I found

themes is array with ["less:Espo", "less:EspoRtl", "less:EspoVertical"...]

        commands.forEach((theme) => {
            cp.execSync('grunt ' + theme, {stdio: "inherit"});
        })
    })

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