Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[rush] Refactor actions to async load all complex dependencies

Aperta
#5,636 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
cli, tooling

Direzione di ricerca

Start by locating the various Rush CommandLineAction subclasses and their executeAsync methods. Check how the command-line parser, --help, and tab-complete paths load these actions; done means parameter definitions remain synchronously available while each action's business logic is moved behind an async executor import.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Refactor the various CommandLineAction subclasses in Rush so that the only logic synchronously included in the class is the definitions of the CLI parameters, and the actual business logic of the class is in an async imported executor.

The purpose of the exercise is to optimize the initial generation of the command line parser and the --help and tab-complete actions, as well as to remove large, complex dependencies from the loading path for actions that don't require them.

The executeAsync method should read values from the CLI arguments, then const { fooExecutor } = await import(/* webpackChunkName: 'foo-executor' */ './FooExecutor.js') then invoke the executor.

Lingua principale
TypeScript
Stelle
6.5k
Fork
708
Merge medio
4g 13h
PR unite (30g)
62

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/rushstack

Tutte le issue di microsoft/rushstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.