Can we make roco asynchronous and api friendly?
- Ngôn ngữ chính
- JavaScript
- Star
- 82
- Fork
- 11
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
A lot of `existsSync`, `readFileSync`, `readDirSync` calls exists at the moment.
`process.exit` buried deep in code — it should be moved out to `bin/roco` imho.
https://github.com/1602/roco/blob/master/lib/rockout.js#L300
I'm really like how it looks but need async and more configs, e.g. pass writable streams to catch remote output, make a prefix with time, disable (or overwrite) string colorize methods, etc.
Can we do something with it?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
The issue points to lib/rockout.js line 300 as an example of a synchronous call and deep process.exit. Start by examining the codebase for all fs.existsSync, readFileSync, readdirSync, and process.exit calls. Understand the flow from bin/roco through the deployment steps. 'Done' means replacing sync calls with async/await or promises, moving exit handling to the CLI entry point, and designing a configurable API for streams, prefixes, and colorization.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, nodejs
- Lĩnh vực
- cli, tooling
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100