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

Support more flags in devtoolrc

Đang mở
#116 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ính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, node.js
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Bắt đầu bằng cách xác định phần xử lý đối số CLI của devtool và hỗ trợ cấu hình .devtoolrc của nó. Tái hiện lệnh được示 với package.json và node_modules/ava/profile.js, sau đó xác minh rằng một thiết lập require từ .devtoolrc hoạt động mà không thay đổi đối số tệp kiểm thử theo vị trí.

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

Mô tả

Hey,

Context

I'm trying to debug my tests using ava and devtool.
For my project, I've managed to do it like so: NODE_ENV=test devtool node_modules/ava/profile.js test/dfs-pre.js -r babel-register

Note that I need to put devtool flags at the end as profile.js reads arguments at specific positions. That said I use this command line in a npm script to which I pass the file I want to debug.

package.json

{
  "scripts": {
    "debugfile": "NODE_ENV=test devtool node_modules/ava/profile.js -r babel-register"
  }
}

cli

$ yarn debugfile test/dfs-pre.js

result

NODE_ENV=test devtool node_modules/ava/profile.js -r babel-register test/dfs-pre.js

Problem

The problem is that I need my test/foo.js to be the 3rd argument. The flags of devtool conflict with this.

Proposal

In order to be able to start devtool without any flags, it would be super nice to be able to make them available in .devtoolrc. The most urgent for me would be require.

Thanks!

Ngôn ngữ chính
JavaScript
Star
3.7k
Fork
146
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

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 Experience-Monks/devtool

Tất cả issue của Experience-Monks/devtool

Issue tương tự

Thêm issue về JavaScript

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.