plone / plonecli

Plone Command Line Client - for creating and working with custom add-ons and themes
https://pypi.org/project/plonecli/
Other
19 stars 10 forks source link

theme_barceloneta wrong Gruntfile.js base path #46

Open avoinea opened 5 years ago

avoinea commented 5 years ago

Description

Adding a theme_barceloneta to my Plone add-on will generate a Gruntfile.js with the wrong setBase

What I Did

$ pip instal plonecli
$ plonecli create addon my.theme
$ cd my.theme
$ plonecli add theme_barceloneta
$ cd src/my/theme
$ npm install
$ cd theme
$ npm install
$ cd ../
$ grunt
>> Error: ENOENT: no such file or directory, chdir '/workspace/plone/src/my.theme/src/my/theme' -> 'src/my/theme/theme'

$ cat Gruntfile.js | grep setBase
grunt.file.setBase('./src/my/theme/theme');

It should be Gruntfile.js relative:

grunt.file.setBase('./theme');