[Feature Request] Watch mode for type generation

オープン
#925 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
57/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript

調査の方向性

Start by tracing the varlock run and varlock codegen command entry points and how they generate typings from .env.schema. Check whether either command already watches files or has related tests. Done means a proposed watch mode continuously regenerates typings after .env.schema changes; the issue does not specify which command should provide it.

索引モデルが issue の本文から書いたものです。

説明

enhancement
Description

A long-running command that continuously re-generates the typings for the env schema upon change.

Motivation

I am developing a CLI app, which does not have "dev server", instead I run tsc --watch, which helps me debug stuff live (apart from the LSP).

When I edit the .env.schema, these changes are not reflected though, when running

varlock run -- tsc --watch
Proposed Solution

varlock run --watch or varlock codegen --watch

Alternatives

Re-running the "dev" command every time .env.schema has changed.

Additional Information

No response

主要言語
TypeScript
スター
4.9k
フォーク
140
平均マージ
2日 3時間
マージ済み PR(30日)
35

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dmno-dev/varlock のほかの issue

dmno-dev/varlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。