Document installing and running Vite+ on machines with no internet access

Offen Anfängerfreundlich
#3,296 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
85/100
Issue-Typ
Dokumentation
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
node.js
Bereich
documentation

Rechercherichtung

Die Docs gehen wahrscheinlich in guide/global-cli.md oder guide/ci.md. Lies diese Dateien und das veröffentlichte toolchain.json, um native Pakete pro Plattform aufzulisten. Verifiziere, welche lokalen CLI-Befehle (vp lint, vp fmt, vp check, vp run) Netzwerk mit einer blockierten Registry benötigen, und füge dann einen Abschnitt 'offline / private registry' hinzu, der die drei Punkte abdeckt. Done bedeutet, dass der Abschnitt existiert und die aufgeworfenen Fragen beantwortet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

triage: not actionable
Documentation is

Missing

Explain in Detail

Our build agents and deploy servers are Windows machines with no internet. Everything installs from a private npm registry (Verdaccio) where we mirror each package by hand, including every platform-specific native binary. So for each Vite+ upgrade we need to know exactly which packages to mirror, and whether anything reaches out to the internet at runtime.

What we worked out ourselves for 1.4.0 on win32-x64, using only the local CLI from node_modules:

  • vite-plus pulls @voidzero-dev/vite-plus-win32-x64-msvc, @oxlint/binding-win32-x64-msvc, @oxfmt/binding-win32-x64-msvc and @oxlint-tsgolint/win32-x64 through optional dependencies of vite-plus, oxlint, oxfmt and oxlint-tsgolint. @voidzero-dev/vite-plus-core adds lightningcss and the platform list again.
  • With proxies and NPM_CONFIG_REGISTRY pointed at a dead port, vp lint, vp fmt --check, vp check --no-lint and a cached vp run all worked. That's not a real isolated-network test, so we can't be sure nothing else is fetched (for example by vp test or vp create).
  • The global installer and vp env need the npm registry and Node.js downloads. NPM_CONFIG_REGISTRY and VP_NODE_DIST_MIRROR cover that. VP_LOCAL_TGZ and VP_LOCAL_BINARY look like they would allow a fully offline global install, but the docs list them as development variables.
Your Suggestion for Changes

A short "offline / private registry" section, maybe in guide/global-cli.md or guide/ci.md, that says:

  • which commands of the local CLI may touch the network, if any;
  • the native packages per platform for a release (or where to read them, e.g. a field in the published toolchain.json);
  • whether VP_LOCAL_TGZ / VP_LOCAL_BINARY are supported for offline global installs or should be avoided.
Relevant Page

https://viteplus.dev/guide/global-cli and https://viteplus.dev/guide/ci

Vorherrschende Sprache
Rust
Sterne
6.5k
Forks
297
Ø Merge
20 Std. 56 Min.
Gemergte PRs (30 T.)
234

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus voidzero-dev/vite-plus

Alle Issues in voidzero-dev/vite-plus

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.