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