@voxgig/sdkgen 4.16.0 → 4.17.1
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 +8 -0
- package/bin/voxgig-sdkgen +2 -2
- package/dist/action/action.js +2 -2
- package/dist/action/action.js.map +1 -1
- package/dist/action/check.js +9 -8
- package/dist/action/check.js.map +1 -1
- package/dist/action/dispatch.js +4 -4
- package/dist/action/dispatch.js.map +1 -1
- package/dist/action/doctor.js +16 -15
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/edition.d.ts +4 -0
- package/dist/action/{docs.js → edition.js} +57 -54
- package/dist/action/edition.js.map +1 -0
- package/dist/action/kind.d.ts +1 -2
- package/dist/action/kind.js +22 -38
- package/dist/action/kind.js.map +1 -1
- package/dist/action/package.js +17 -16
- package/dist/action/package.js.map +1 -1
- package/dist/action/resolve.d.ts +3 -1
- package/dist/action/resolve.js +29 -11
- package/dist/action/resolve.js.map +1 -1
- package/dist/admin/status.d.ts +43 -0
- package/dist/admin/status.js +161 -0
- package/dist/admin/status.js.map +1 -0
- package/dist/cmp/Test.js +11 -0
- package/dist/cmp/Test.js.map +1 -1
- package/dist/helpers/kindCollection.d.ts +1 -0
- package/dist/helpers/kindCollection.js +14 -0
- package/dist/helpers/kindCollection.js.map +1 -0
- package/dist/helpers/modelcheck.d.ts +1 -1
- package/dist/helpers/modelcheck.js +13 -3
- package/dist/helpers/modelcheck.js.map +1 -1
- package/dist/helpers/shipped.js +2 -3
- package/dist/helpers/shipped.js.map +1 -1
- package/dist/helpers/testPolicy.d.ts +1 -1
- package/dist/helpers/testPolicy.js +6 -37
- package/dist/helpers/testPolicy.js.map +1 -1
- package/dist/sdkgen.d.ts +1 -1
- package/dist/sdkgen.js +22 -89
- package/dist/sdkgen.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utility.js +9 -1
- package/dist/utility.js.map +1 -1
- package/model/sdkgen.aon +5 -52
- package/package.json +1 -1
- package/project/.sdk/src/cmp/go/Config_go.ts +4 -4
- package/project/.sdk/src/cmp/go/utility_go.ts +10 -2
- package/project/.sdk/src/cmp/js/Package_js.ts +5 -1
- package/project/.sdk/src/cmp/js/TestDirect_js.ts +11 -7
- package/project/.sdk/src/cmp/js/TestEntity_js.ts +16 -2
- package/project/.sdk/src/cmp/js/TestLive_js.ts +32 -0
- package/project/.sdk/src/cmp/js/Test_js.ts +2 -0
- package/project/.sdk/src/cmp/js/fragment/Direct.test.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +4 -2
- package/project/.sdk/src/cmp/php/ReadmeExamplesTest_php.ts +30 -9
- package/project/.sdk/src/cmp/php/ReadmeHowto_php.ts +8 -3
- package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +5 -4
- package/project/.sdk/src/cmp/php/ReadmeTopQuick_php.ts +2 -2
- package/project/.sdk/src/cmp/ts/Package_ts.ts +5 -1
- package/project/.sdk/src/cmp/ts/ReadmeHowto_ts.ts +5 -0
- package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +15 -11
- package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +13 -16
- package/project/.sdk/src/cmp/ts/TestLive_ts.ts +32 -0
- package/project/.sdk/src/cmp/ts/Test_ts.ts +2 -0
- package/project/.sdk/src/cmp/ts/fragment/Direct.test.fragment.ts +1 -0
- package/project/.sdk/src/cmp/ts/fragment/Entity.test.fragment.ts +2 -0
- package/project/.sdk/tm/c/Makefile +16 -11
- package/project/.sdk/tm/c/feature/secrets/sekreto/json.c +3 -3
- package/project/.sdk/tm/csharp/test/feature/secrets/SecretsFeatureTest.cs +9 -2
- package/project/.sdk/tm/js/test/live-contract.js +183 -0
- package/project/.sdk/tm/js/test/live-entity.js +169 -0
- package/project/.sdk/tm/js/test/live-runner.js +129 -0
- package/project/.sdk/tm/js/test/live-scenarios.js +142 -0
- package/project/.sdk/tm/js/test/utility.js +84 -0
- package/project/.sdk/tm/php/test/feature/secrets/SecretsTest.php +22 -20
- package/project/.sdk/tm/ts/test/live-contract.ts +104 -0
- package/project/.sdk/tm/ts/test/live-entity.ts +142 -0
- package/project/.sdk/tm/ts/test/live-runner.ts +166 -0
- package/project/.sdk/tm/ts/test/live-scenarios.ts +112 -0
- package/project/.sdk/tm/ts/test/utility.ts +1 -2
- package/project/sdkgen-package.json +1 -1
- package/src/action/action.ts +2 -2
- package/src/action/check.ts +3 -2
- package/src/action/dispatch.ts +4 -4
- package/src/action/doctor.ts +10 -9
- package/src/action/{docs.ts → edition.ts} +56 -53
- package/src/action/kind.ts +12 -33
- package/src/action/package.ts +4 -3
- package/src/action/resolve.ts +26 -2
- package/src/admin/status.ts +124 -0
- package/src/cmp/Test.ts +13 -1
- package/src/helpers/kindCollection.ts +11 -0
- package/src/helpers/modelcheck.ts +10 -3
- package/src/helpers/shipped.ts +2 -3
- package/src/helpers/testPolicy.ts +7 -45
- package/src/sdkgen.ts +15 -94
- package/src/utility.ts +8 -2
- package/dist/action/docs.d.ts +0 -4
- package/dist/action/docs.js.map +0 -1
- package/dist/cmp/Docs.d.ts +0 -4
- package/dist/cmp/Docs.js +0 -98
- package/dist/cmp/Docs.js.map +0 -1
- package/dist/cmp/ExternalDocs.d.ts +0 -2
- package/dist/cmp/ExternalDocs.js +0 -43
- package/dist/cmp/ExternalDocs.js.map +0 -1
- package/src/cmp/Docs.ts +0 -125
- package/src/cmp/ExternalDocs.ts +0 -54
package/src/cmp/ExternalDocs.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// The Root for a DOCS item that generates outside the SDK repo
|
|
2
|
-
// (`main: kit: docs: <n>: output: path`).
|
|
3
|
-
//
|
|
4
|
-
// Out of tree is the NORMAL case for a docs item, not the exception it is for
|
|
5
|
-
// a target: a documentation site usually has its own repo, and in-tree it
|
|
6
|
-
// would collide with the SDK repo's own README and CI workflows.
|
|
7
|
-
//
|
|
8
|
-
// The two facts that make this a separate `generate()` pass rather than a
|
|
9
|
-
// folder are the ones `ExternalTarget` documents at length: jostraca's
|
|
10
|
-
// `FileHandler.validName` refuses a `..` segment in a folder name (the guard
|
|
11
|
-
// that keeps generation inside the tree it was pointed at, not an oversight
|
|
12
|
-
// to route around), and the output root is `jopts.folder` PER CALL — so
|
|
13
|
-
// writing somewhere else means another call.
|
|
14
|
-
//
|
|
15
|
-
// No Folder wraps the item: the destination IS the site, so its files go at
|
|
16
|
-
// the root of the output path.
|
|
17
|
-
|
|
18
|
-
import { cmp, names, Project } from 'jostraca'
|
|
19
|
-
|
|
20
|
-
import { KIT } from '../types'
|
|
21
|
-
|
|
22
|
-
import { DocsItem, prepareModel } from './Docs'
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const ExternalDocs = cmp(function ExternalDocs(props: any) {
|
|
26
|
-
const { model, item, cmpfolder, sdkrelpath } = props
|
|
27
|
-
const ctx$ = props.ctx$
|
|
28
|
-
|
|
29
|
-
// Components live in the PROJECT, not in the repo being written to. This
|
|
30
|
-
// pass has retargeted jostraca's output folder, which is what requirePath
|
|
31
|
-
// otherwise resolves against — see utility.resolvePath. Losing this line
|
|
32
|
-
// makes the pass look for components under the DESTINATION.
|
|
33
|
-
ctx$.cmpfolder = cmpfolder
|
|
34
|
-
|
|
35
|
-
// The path from the destination back to the SDK project, for a site that
|
|
36
|
-
// sits beside the SDK in a known layout and needs to name it.
|
|
37
|
-
ctx$.sdkrelpath = sdkrelpath
|
|
38
|
-
|
|
39
|
-
// The same preamble the in-tree pass performs — one definition, both
|
|
40
|
-
// callers, because a project whose ONLY docs item is out of tree must
|
|
41
|
-
// generate exactly as one with both.
|
|
42
|
-
prepareModel(model, ctx$)
|
|
43
|
-
|
|
44
|
-
Project({}, () => {
|
|
45
|
-
names(item, item.name ?? item.key$)
|
|
46
|
-
|
|
47
|
-
DocsItem({ item })
|
|
48
|
-
})
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
export {
|
|
53
|
-
ExternalDocs
|
|
54
|
-
}
|