create-usine: scaffold a runtime folder and start the setup

Aperta
#780 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
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript

Direzione di ricerca

Locate the monorepo package directory and create create-usine emitting the specified files. Study existing usine up to ensure it accepts the scaffolded folder in setup mode. Add the two tests (scaffold output, usine up acceptance) and update getting-started docs. Done when package builds, tests pass, and release workflow publishes it.

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

Descrizione

Slice 3 of #41, after the manifest flow (setup mode issue). Decision taken on 2026-10-30: the scaffold is a runtime folder, not a repository.

Change

  • A create-usine package (npm create usine@latest <folder>, pnpm create usine <folder>): writes package.json with @usine/server pinned to the current release, the lockfile, a .gitignore covering .usine/, node_modules/ and .env, and a .env template with the documented variables commented. Then runs the install with the detected package manager and prints the next command (usine up).
  • No usine.yaml, no loops/ or agents/ folders, no git init. usine up must start in such a folder with an empty configuration revision and open setup mode.
  • The --detach and service install path of usine up keeps working from the scaffolded folder on Linux.
  • Docs: the getting-started guide starts with npm create usine.

Acceptance

  • A test that runs the scaffold into a temporary folder and checks the files and the pinned version.
  • A test that usine up accepts the scaffolded folder (empty revision, setup mode).
  • The package is published by the release workflow like the others (changeset, provenance).
Lingua principale
TypeScript
Stelle
1
Fork
0
Merge medio
4h 26m
PR unite (30g)
280

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: 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 basaltbytes/usine

Tutte le issue di basaltbytes/usine

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.