Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

theme_barceloneta wrong Gruntfile.js base path

Đang mở
#46 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, python
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start by tracing the theme_barceloneta generation used by plonecli add theme_barceloneta and inspect the generated Gruntfile.js setBase value. Regenerate the theme and run the documented npm and grunt commands; done means the path is relative to Gruntfile.js as ./theme and grunt no longer fails with ENOENT.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

  • 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');
Ngôn ngữ chính
Python
Star
20
Fork
12
Merge trung bình
11 ngày 13 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của plone/plonecli

Tất cả issue của plone/plonecli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.