@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 +3 -19
- package/dist/chunk-FA65HDVD.js +1217 -0
- package/dist/chunk-FA65HDVD.js.map +1 -0
- package/dist/{chunk-QJ4XATKJ.js → chunk-MG77526V.js} +2 -2
- package/dist/chunk-MG77526V.js.map +1 -0
- package/dist/{cli-WHKXPUWS.js → cli-3OXPFS4W.js} +4 -4
- package/dist/cli-3OXPFS4W.js.map +1 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -2
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/page-check.js +3 -7
- package/dist/page-check.js.map +1 -1
- package/dist/widgets.js +15 -18
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.json +1 -1
- package/package.json +5 -28
- package/dist/chunk-D7WPQAJB.js +0 -2204
- package/dist/chunk-D7WPQAJB.js.map +0 -1
- package/dist/chunk-HK4MPZTZ.js +0 -7
- package/dist/chunk-HK4MPZTZ.js.map +0 -1
- package/dist/chunk-QJ4XATKJ.js.map +0 -1
- package/dist/cli-WHKXPUWS.js.map +0 -1
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
|
|
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
|
|
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
|
|
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
|