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

theme_barceloneta wrong Gruntfile.js base path #46

Open
avoinea opened this issue Mar 22, 2019 · 0 comments
Open

theme_barceloneta wrong Gruntfile.js base path #46

avoinea opened this issue Mar 22, 2019 · 0 comments

Comments

@avoinea
Copy link
Member

avoinea commented Mar 22, 2019

  • Plone CLI version: 1.0
  • Python version: 2.7.16
  • Operating System: ArchLinux

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');
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