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

[docs] Error in documentation of using grunt in additional plugins

Đang mở
#1,054 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, node.js, scss
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với phần “Using grunt in additional plugins” tại URL tài liệu dành cho nhà phát triển Moodle được liên kết và tái tạo Gruntfile mẫu. Kiểm tra để bảo đảm thiết lập được ghi trong tài liệu vừa biên dịch SCSS của plugin vừa giữ lại các tác vụ Moodle như grunt amd; được xem là hoàn tất khi các hướng dẫn hoạt động mà không có thư mục cơ sở không chính xác.

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

Mô tả

bug documentation help wanted needs-triage
What is the URL of the page?

https://moodledev.io/general/development/tools/nodejs#using-grunt-in-additional-plugins

What is the issue with this page?

I tried to follow the docs to make grunt compile scss into CSS in a plugin according to the mentioned page.

Unfortunately, the grunt default task is being overwritten by the example Gruntfile in the docs, so you are not able to for example run grunt amd anymore. When I am trying to not overwrite the default and try to use the mergeConfig package, grunt has issues to run the Moodle basic tasks because of wrong base directories I believe. So I am stuck here.

To put it short: What is described in the docs section does not work and I could not figure out, how to fix. That's why I am opening an issue and not providing a pull request. Maybe anyone with more knowledge/experience with the moodle grunt could fix this doc issue or identify issues the grunt code currently has and provide a fix. Thanks in advance!

Are you able to provide a patch for this?

Unfortunately no due to lack of experience, knowledge and - as always - resources to dig deeper 😀

Ngôn ngữ chính
TypeScript
Star
74
Fork
652
Merge trung bình
2 ngày 50 phút
Pull request đã merge (30 ngày)
12

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 moodle/devdocs

Tất cả issue của moodle/devdocs

Issue tương tự

Thêm issue về TypeScript

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.