microsoft / microsoft/TypeScript
Quick fix to install regular .js npm packages
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 132
説明
Let's say I start a new project. I start writing out an import for, say, express because I'm certain I'll be using that, but I haven't bothered to install it yet.
import express from "express";
Immediately, I might get an error like Cannot find module 'express'. because I didn't install the package before using it. This happens regardless of if I have noImplicitAny on. But this means I have to switch to a terminal and do an npm install.
We already give a quick fix to install missing @types packages, we should have a fix that
- Gives the option of installing a missing package as a dependency or a dev dependency.
- Also installs the types for that package if necessary in the same fashion.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
不足している @types パッケージをインストールする既存のクイックフィックスと、express のような解決できない import の処理を追跡することから始めます。不足している通常の npm パッケージを依存関係または開発依存関係としてインストールでき、必要に応じてその型も対応する形でインストールできれば、作業は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, typescript
- 領域
- developer-experience, tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100