nodejs / nodejs/node

Single Executable Application (SEA) with TypeScript type stripping

未关闭
#64,723 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

feature request
主要语言
JavaScript
星标
122k
派生
37.4k
平均合并
4 天 3 小时
30 天内合并 PR
272

描述

What is the problem this feature will solve?

Node does an excellent job of executing TypeScript via type stripping. Node also appears to do an excellent job of building a single executable application from JavaScript files. Those features do not work together, as in Node cannot produce a single executable application from TypeScript files.

What is the feature you are proposing to solve the problem?

Use the type stripping feature already in Node to strip types from TypeScript files when building a single executable application (SEA).

What alternatives have you considered?

No response

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先阅读 Node 的 Single Executable Application 构建流程,以及现有的 TypeScript 类型剥离实现。确定 SEA 在哪里处理 JavaScript 输入,以及在哪里可以接受已剥离类型的 TypeScript。完成标准是:可以使用 TypeScript 文件生成一个可正常工作的 Single Executable Application,同时保留现有的 JavaScript 行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
node.js, typescript
领域
build-system
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。