Allow using Deno as package manager
- 主要语言
- TypeScript
- 星标
- 27k
- 派生
- 11.8k
- 平均合并
- 14 小时 23 分钟
- 30 天内合并 PR
- 162
描述
### Command
new
### Description
Add `deno` as a package manager, such that it can be used during project creation or automatically used when it's lockfile is found.
```sh
ng new --package-manager=deno my-project
```
### Deno Details
- Add package command: [`deno add`](https://docs.deno.com/runtime/reference/cli/add/)
- Install all command: [`deno install`](https://docs.deno.com/runtime/reference/cli/install/)
- Lockfile file: `deno.lock`
- Dev only flag: [`--dev`](https://docs.deno.com/runtime/reference/cli/add/#options-dev) (e.g. `deno add --dev `)
Deno seems to have the same commands as the other package manager options, and is similar to `pnpm` in that it installs packages with symlinks in `node_modules`.
### Describe the solution you'd like
Deno works similar to `bun` as package manager.
### Describe alternatives you've considered
None. If `bun` is supported, it seems reasonable to support `deno` too.
贡献指南
调研方向
从 `new` 命令现有的包管理器处理开始,并将 `bun` 路径与请求的 Deno 命令进行比较。当 `ng new --package-manager=deno my-project` 可以正常工作、`deno.lock` 触发自动选择,并且添加包时在适当情况下使用带有 `--dev` 的 `deno add`,就算完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- deno, typescript
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100