@voxgig/sdkgen 4.28.0 → 4.30.0
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/bin/voxgig-sdkgen +1 -1
- package/dist/admin/npm-trust.d.ts +39 -0
- package/dist/admin/npm-trust.js +308 -0
- package/dist/admin/npm-trust.js.map +1 -0
- package/dist/cmp/PublishWorkflow.js +47 -26
- package/dist/cmp/PublishWorkflow.js.map +1 -1
- package/dist/helpers/packageMeta.d.ts +2 -1
- package/dist/helpers/packageMeta.js +7 -3
- package/dist/helpers/packageMeta.js.map +1 -1
- package/dist/sdkgen.d.ts +3 -2
- package/dist/sdkgen.js +15 -4
- package/dist/sdkgen.js.map +1 -1
- package/dist/testkit.js +16 -6
- package/dist/testkit.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +1 -0
- package/model/sdkgen.aontu +9 -0
- package/package.json +3 -2
- package/project/.sdk/model/target/rb.aontu +1 -2
- package/project/.sdk/src/cmp/c/utility_c.ts +3 -1
- package/project/.sdk/src/cmp/cpp/ReadmeInstall_cpp.ts +3 -3
- package/project/.sdk/src/cmp/elixir/ReadmeInstall_elixir.ts +2 -2
- package/project/.sdk/src/cmp/java/Package_java.ts +2 -1
- package/project/.sdk/src/cmp/java/ReadmeInstall_java.ts +2 -2
- package/project/.sdk/src/cmp/js/Package_js.ts +2 -2
- package/project/.sdk/src/cmp/kotlin/Package_kotlin.ts +2 -1
- package/project/.sdk/src/cmp/kotlin/ReadmeInstall_kotlin.ts +2 -2
- package/project/.sdk/src/cmp/lua/Package_lua.ts +3 -5
- package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +3 -1
- package/project/.sdk/src/cmp/php/Package_php.ts +0 -2
- package/project/.sdk/src/cmp/py/Package_py.ts +0 -2
- package/project/.sdk/src/cmp/py-data/Main_py-data.ts +1 -3
- package/project/.sdk/src/cmp/rb/Package_rb.ts +15 -23
- package/project/.sdk/src/cmp/rust/utility_rust.ts +3 -1
- package/project/.sdk/src/cmp/scala/ReadmeInstall_scala.ts +2 -2
- package/project/.sdk/src/cmp/ts/Package_ts.ts +1 -1
- package/project/sdkgen-package.json +1 -1
- package/src/admin/npm-trust.ts +408 -0
- package/src/cmp/PublishWorkflow.ts +56 -26
- package/src/helpers/packageMeta.ts +9 -3
- package/src/sdkgen.ts +14 -0
- package/src/testkit.ts +50 -35
- package/src/types.ts +1 -0
package/src/testkit.ts
CHANGED
|
@@ -563,7 +563,9 @@ function layeredFs(mem: any): any {
|
|
|
563
563
|
|
|
564
564
|
function defaultRoot(): any {
|
|
565
565
|
const { cmp, each, names, Project, Folder } = require('jostraca')
|
|
566
|
-
const {
|
|
566
|
+
const {
|
|
567
|
+
Main, Entity, Feature, Test, Readme, AgentGuide, SdkGenError,
|
|
568
|
+
} = require('./sdkgen')
|
|
567
569
|
|
|
568
570
|
return cmp(function Root(props: any) {
|
|
569
571
|
const { model, ctx$ } = props
|
|
@@ -581,41 +583,54 @@ function defaultRoot(): any {
|
|
|
581
583
|
const feature = model.main[KIT].feature || {}
|
|
582
584
|
const entity = model.main[KIT].entity || {}
|
|
583
585
|
|
|
586
|
+
const active = each(target).filter((t: any) => t && false !== t.active)
|
|
587
|
+
|
|
588
|
+
const atRoot = active.filter((t: any) => true === t.output?.root)
|
|
589
|
+
if (1 < atRoot.length) {
|
|
590
|
+
throw new SdkGenError('Only one target can be generated at the ' +
|
|
591
|
+
'project root: ' + atRoot.map((t: any) => t.name).join(', '))
|
|
592
|
+
}
|
|
593
|
+
|
|
584
594
|
Project({}, () => {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
595
|
+
active.map((t: any) => {
|
|
596
|
+
names(t, t.name)
|
|
597
|
+
|
|
598
|
+
const phase = t.phase || {}
|
|
599
|
+
const on = (n: string) => false !== (phase[n] && phase[n].active)
|
|
600
|
+
|
|
601
|
+
const phases = () => {
|
|
602
|
+
if (on('entity')) {
|
|
603
|
+
each(entity)
|
|
604
|
+
.filter((e: any) => e && false !== e.active)
|
|
605
|
+
.map((e: any) => {
|
|
606
|
+
names(e, e.name)
|
|
607
|
+
Entity({ target: t, entity: e })
|
|
608
|
+
})
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
if (on('feature')) {
|
|
612
|
+
each(feature)
|
|
613
|
+
.filter((f: any) => f && f.active)
|
|
614
|
+
.map((f: any) => {
|
|
615
|
+
names(f, f.name)
|
|
616
|
+
Feature({ target: t, feature: f })
|
|
617
|
+
})
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
Main({ target: t })
|
|
621
|
+
|
|
622
|
+
if (on('readme')) Readme({ target: t })
|
|
623
|
+
if (on('agentguide')) AgentGuide({ target: t })
|
|
624
|
+
if (on('test')) Test({ target: t })
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
if (true === t.output?.root) {
|
|
628
|
+
phases()
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
Folder({ name: t.name }, phases)
|
|
632
|
+
}
|
|
633
|
+
})
|
|
619
634
|
})
|
|
620
635
|
})
|
|
621
636
|
}
|