Convert to JavaScript

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, typescript

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi cài đặt dependency được mô tả trong issue và kiểm tra quy trình build và liên kết executable của package. So sánh TypeScript workflow hiện tại với JavaScript workflow được đề xuất; công việc được xem là hoàn tất khi CLI có thể được cài đặt và liên kết mà không cần bước build tiên quyết, đồng thời vẫn giữ nguyên development workflow của package.

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

Mô tả

community-addons pkg:add pkg:create

The first thing I experience when I clone this repo and try to install dependencies is this:

image

IIUC what this is telling me is that I can't install anything because pnpm tries to link up the executables as part of the installation process, but it can't do that because the executable hasn't been built. I can't build the executable because I haven't installed dependencies.

I'm sure this is fixable and if I bash my head against a wall for a couple of minutes I'll figure it out, but: we don't have to live this way. Svelte and SvelteKit are written in JS and don't have a build step (beyond generating .d.ts files during prepublish, or bundling the compiler for the playground in Svelte's case), and aside from avoiding this sort of headache it's been a real productivity win — I don't need to mess around with file watchers during dev, I don't need to deal with sourcemap flakiness or any of that nonsense, I can just pnpm link and I'm good to go. I can even make changes to this package inside another project's node_modules, and once I've done whatever I needed to do the changes are sitting there waiting for me to commit them — no more editing transpiled files and then painstakingly reapplying them to the source they were transpiled from.

Not something we need to act on immediately, but I promise future us will thank us for making this change

Ngôn ngữ chính
TypeScript
Star
514
Fork
109
Merge trung bình
2 ngày 18 giờ
Pull request đã merge (30 ngày)
45

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 sveltejs/cli

Tất cả issue của sveltejs/cli

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.