Replace `npm-installer` usage with `purs-installer`
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
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
- Lĩnh vực
- build-system, release
Hướng nghiên cứu
Start by reviewing npm-package/package.json and the purs-installer proposal referenced in the issue. Confirm how the post-install script currently invokes npm-installer, then compare the proposed replacement and its integrity checks; done means the package uses purs-installer and the installation examples work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Replace npm-installer with purs-installer
Motivation
npm i purescript installs PureScript by running npm-installer's install command via a post-install script. The npm-installer codebase is undesirable for a number of reasons:
- it's written in JavaScript and thus doesn't utilize type safety. Moreover, it's hard to read in general.
- it uses old NPM dependencies which produces a number of warnings and other output.
- Per its issues, the codebase cannot install PureScript from source: https://github.com/purescript/npm-installer/issues/41
- At one time, when this package was originally outside of the core team's control, malicious code was added to it before Harry dealt with that.
- While working on the port, I noticed that the binaries downloaded from GitHub are not checked for their integrity via the SHA files.
By rewriting this in PureScript, we gain:
- type-safety
- readability
- updated NPM dependencies
- integrity checks
- a clean slate
Proposal
I propose a few people from the core team review the work I've done, make edits as needed, and then update our npm-package/package.json to use purs-installer as the post-install script.
Examples
At least one or two examples of the proposal being used.
- Ngôn ngữ chính
- Haskell
- Star
- 8.9k
- Fork
- 575
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của purescript/purescript
-
type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
purescript/purescript#4595 · 2 bình luận ·
-
type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
purescript/purescript#4590 · 3 bình luận ·
-
type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
purescript/purescript#4589 · 3 bình luận ·
-
type: bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
purescript/purescript#4588 · 5 bình luận ·
-
type: enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
purescript/purescript#4587 · 1 bình luận · 2 reaction ·
Tất cả issue của purescript/purescript
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
enhancement tricorder
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
zip-archive-0.5 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
commercialhaskell/stackage#8124 · 1 bình luận ·