Proposal: Add `devcontainers init` command similar to `devcontainerize`
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker, typescript
调研方向
首先检查现有的 CLI 结构,并将其与 devcontainerize 工具和 devcontainers/images 仓库进行比较。当官方 devcontainers init 命令能够检测项目类型、获取适当的 Dockerfile 和 devcontainer.json、创建 .devcontainer,并可选择在 Git 仓库中更新 .gitignore 时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Hello devcontainers team,
I've recently created a tool called devcontainerize (https://www.npmjs.com/package/devcontainerize, https://github.com/mathdroid/devcontainerize) that automatically detects a project's type and sets up the appropriate devcontainer configuration.
The tool:
- Detects the project type based on files in the current directory.
- Fetches appropriate Dockerfile and devcontainer.json from the devcontainers/images repository.
- Creates a .devcontainer directory with these files.
- Optionally adds .devcontainer to .gitignore if in a Git repository.
I believe a similar functionality could be valuable as part of the official devcontainers CLI, potentially as a devcontainers init command.
I'm keen to contribute this functionality to the official CLI if the team is interested. This could help streamline the process of setting up devcontainers for various project types and improve the overall developer experience.
Would you be open to discussing this further? I'd be happy to provide more details about the implementation or discuss how we could adapt it to fit within the existing CLI structure.
- 主要语言
- TypeScript
- 星标
- 3k
- 派生
- 461
- 平均合并
- 18 分钟
- 30 天内合并 PR
- 5
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
devcontainers/cli 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
devcontainers/cli#1203 ·
-
难度 1/5 1-3 小时 新手友好度 68/100
devcontainers/cli#1178 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
devcontainers/cli#1308 ·
-
难度 3/5 1-2 天 新手友好度 78/100
devcontainers/cli#1307 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 55/100
devcontainers/cli#1305 ·
查看 devcontainers/cli 的全部 Issue
相似的 Issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
Crush 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
catppuccin/catppuccin#3125 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ElementsProject/cln-application#167 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Quantco/pnpm-licenses#17 ·
-
难度 2/5 1-3 小时 新手友好度 75/100