@ksp-gonogo/uplink-tools 0.2.0-rc.12 → 0.2.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,37 +11,21 @@ It is a **devDependency**. Nothing here ships in an Uplink's bundle.
11
11
  One command, `uplink-tools`, and nothing to install before the first run:
12
12
 
13
13
  ```sh
14
- npx @ksp-gonogo/uplink-tools new myuplink --repo you/myuplink # in an empty directory
14
+ npx @ksp-gonogo/uplink-tools new myuplink # scaffold, in an empty directory
15
15
  npx @ksp-gonogo/uplink-tools --help
16
16
  ```
17
17
 
18
- `new` writes the Uplink and then runs its generators, so the directory it leaves
19
- builds and tests: `npm test` in `client/`, and `dotnet test mod-tests`. It needs
20
- Node and the .NET SDK, and no clone of anything. The C# half reaches Gonogo
21
- through one NuGet package, `KspGonogo.Sitrep.Contract`, at the same version as
22
- this package.
23
-
24
18
  Once it is in an Uplink's devDependencies the same commands answer to
25
19
  `uplink-tools` in a `package.json` script, which is what a workflow calls:
26
20
 
27
21
  | command | what it does |
28
22
  |---|---|
29
- | `new <id>` | scaffold an Uplink: contract slice, plugin, tests, one widget and its fixture, then generate its client types, install the client and write its page. In a repo with an `uplinks/` folder it goes to `uplinks/<id>/`; anywhere else the current directory becomes the Uplink |
30
- | `codegen` | generate `client/src/__generated__/` from the C# contract slice; `codegen --check` fails on drift |
23
+ | `new <id>` | scaffold the hand-written seed of an Uplink: contract slice, plugin, tests, one widget and its fixture. In a repo with an `uplinks/` folder it goes to `uplinks/<id>/`; anywhere else the current directory becomes the Uplink |
31
24
  | `bundle` | build the client bundle the app loads, and the `gonogo-uplink.json` beside it |
32
- | `bake` | write what the plugin tells the app about its client into C#: where the bundle lives, who wrote it, and the hash the mod vouches for |
33
- | `package` | lay the built plugin out as `GameData/<name>/` and zip it |
34
- | `release` | `bundle`, `bake`, compile the plugin, check the DLL carries what was baked, and `package`, in that order |
35
- | `page` | write `README.md`, `gonogo-uplink.json` and `docs/widgets.json` from what the client registers, with no browser |
25
+ | `bake-hash` | write a bundle's sha256 into a C# const, so the mod can vouch for the client it shipped with |
36
26
  | `render` | render every scene to `renders/` |
37
27
  | `docs` | write `README.md`, `gonogo-uplink.json`, `docs/widgets.json` and `docs/assets/`; `docs --check` fails on drift |
38
28
 
39
- The order inside `release` is the point of it. The app loads an installed
40
- Uplink's client only when the plugin says where the bundle lives and vouches for
41
- its hash, so the bundle has to be built and hashed before the plugin is
42
- compiled. A plugin baked without its bundle builds, tests green, and shows no
43
- widget.
44
-
45
29
  Every command takes `--help`, and refuses a flag it does not read.
46
30
 
47
31
  ## What is in it