@gravito/scaffold 3.1.0 → 3.1.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/dist/index.cjs +50 -6
- package/dist/index.js +50 -6
- package/package.json +2 -2
- package/templates/common/tsconfig.json.hbs +1 -2
package/dist/index.cjs
CHANGED
|
@@ -613,6 +613,18 @@ dist
|
|
|
613
613
|
"ARCHITECTURE.md",
|
|
614
614
|
this.generateArchitectureDoc(context)
|
|
615
615
|
);
|
|
616
|
+
await this.writeFile(
|
|
617
|
+
context.targetDir,
|
|
618
|
+
"tests/Example.test.ts",
|
|
619
|
+
`import { describe, it, expect } from 'bun:test'
|
|
620
|
+
|
|
621
|
+
describe('Example Test', () => {
|
|
622
|
+
it('should pass', () => {
|
|
623
|
+
expect(true).toBe(true)
|
|
624
|
+
})
|
|
625
|
+
})
|
|
626
|
+
`
|
|
627
|
+
);
|
|
616
628
|
await this.generateCheckScripts(context);
|
|
617
629
|
await this.generateSkills(context);
|
|
618
630
|
}
|
|
@@ -1844,7 +1856,9 @@ export async function bootstrap() {
|
|
|
1844
1856
|
// 1. Configure
|
|
1845
1857
|
const config = defineConfig({
|
|
1846
1858
|
config: appConfig,
|
|
1847
|
-
orbits: [
|
|
1859
|
+
orbits: [
|
|
1860
|
+
new OrbitAtlas() as unknown as import('@gravito/core').GravitoOrbit,
|
|
1861
|
+
],
|
|
1848
1862
|
})
|
|
1849
1863
|
|
|
1850
1864
|
// 2. Boot Core
|
|
@@ -2041,7 +2055,9 @@ export async function createApp(): Promise<PlanetCore> {
|
|
|
2041
2055
|
// 1. Configure
|
|
2042
2056
|
const config = defineConfig({
|
|
2043
2057
|
config: appConfig,
|
|
2044
|
-
orbits: [
|
|
2058
|
+
orbits: [
|
|
2059
|
+
new OrbitAtlas() as unknown as import('@gravito/core').GravitoOrbit,
|
|
2060
|
+
],
|
|
2045
2061
|
})
|
|
2046
2062
|
|
|
2047
2063
|
// 2. Boot Core
|
|
@@ -3130,7 +3146,21 @@ var EnterpriseMvcGenerator = class extends BaseGenerator {
|
|
|
3130
3146
|
{
|
|
3131
3147
|
type: "directory",
|
|
3132
3148
|
name: "Unit",
|
|
3133
|
-
children: [
|
|
3149
|
+
children: [
|
|
3150
|
+
{ type: "file", name: ".gitkeep", content: "" },
|
|
3151
|
+
{
|
|
3152
|
+
type: "file",
|
|
3153
|
+
name: "Example.test.ts",
|
|
3154
|
+
content: `import { describe, it, expect } from 'bun:test'
|
|
3155
|
+
|
|
3156
|
+
describe('Example Test', () => {
|
|
3157
|
+
it('should pass', () => {
|
|
3158
|
+
expect(true).toBe(true)
|
|
3159
|
+
})
|
|
3160
|
+
})
|
|
3161
|
+
`
|
|
3162
|
+
}
|
|
3163
|
+
]
|
|
3134
3164
|
},
|
|
3135
3165
|
{
|
|
3136
3166
|
type: "directory",
|
|
@@ -3662,7 +3692,7 @@ export async function bootstrap() {
|
|
|
3662
3692
|
const config = defineConfig({
|
|
3663
3693
|
config: appConfig,
|
|
3664
3694
|
orbits: [
|
|
3665
|
-
new OrbitAtlas(),
|
|
3695
|
+
new OrbitAtlas() as unknown as import('@gravito/core').GravitoOrbit,
|
|
3666
3696
|
${spectrumOrbit}
|
|
3667
3697
|
],
|
|
3668
3698
|
})
|
|
@@ -4449,7 +4479,21 @@ var ActionDomainGenerator = class extends BaseGenerator {
|
|
|
4449
4479
|
{
|
|
4450
4480
|
type: "directory",
|
|
4451
4481
|
name: "tests",
|
|
4452
|
-
children: [
|
|
4482
|
+
children: [
|
|
4483
|
+
{ type: "file", name: ".gitkeep", content: "" },
|
|
4484
|
+
{
|
|
4485
|
+
type: "file",
|
|
4486
|
+
name: "Example.test.ts",
|
|
4487
|
+
content: `import { describe, it, expect } from 'bun:test'
|
|
4488
|
+
|
|
4489
|
+
describe('Example Test', () => {
|
|
4490
|
+
it('should pass', () => {
|
|
4491
|
+
expect(true).toBe(true)
|
|
4492
|
+
})
|
|
4493
|
+
})
|
|
4494
|
+
`
|
|
4495
|
+
}
|
|
4496
|
+
]
|
|
4453
4497
|
}
|
|
4454
4498
|
];
|
|
4455
4499
|
}
|
|
@@ -4744,7 +4788,7 @@ import {
|
|
|
4744
4788
|
export async function bootstrap() {
|
|
4745
4789
|
const config = defineConfig({
|
|
4746
4790
|
config: appConfig,
|
|
4747
|
-
orbits: [new OrbitAtlas()],
|
|
4791
|
+
orbits: [new OrbitAtlas() as unknown as import('@gravito/core').GravitoOrbit],
|
|
4748
4792
|
})
|
|
4749
4793
|
|
|
4750
4794
|
const core = await PlanetCore.boot(config)
|
package/dist/index.js
CHANGED
|
@@ -566,6 +566,18 @@ dist
|
|
|
566
566
|
"ARCHITECTURE.md",
|
|
567
567
|
this.generateArchitectureDoc(context)
|
|
568
568
|
);
|
|
569
|
+
await this.writeFile(
|
|
570
|
+
context.targetDir,
|
|
571
|
+
"tests/Example.test.ts",
|
|
572
|
+
`import { describe, it, expect } from 'bun:test'
|
|
573
|
+
|
|
574
|
+
describe('Example Test', () => {
|
|
575
|
+
it('should pass', () => {
|
|
576
|
+
expect(true).toBe(true)
|
|
577
|
+
})
|
|
578
|
+
})
|
|
579
|
+
`
|
|
580
|
+
);
|
|
569
581
|
await this.generateCheckScripts(context);
|
|
570
582
|
await this.generateSkills(context);
|
|
571
583
|
}
|
|
@@ -1797,7 +1809,9 @@ export async function bootstrap() {
|
|
|
1797
1809
|
// 1. Configure
|
|
1798
1810
|
const config = defineConfig({
|
|
1799
1811
|
config: appConfig,
|
|
1800
|
-
orbits: [
|
|
1812
|
+
orbits: [
|
|
1813
|
+
new OrbitAtlas() as unknown as import('@gravito/core').GravitoOrbit,
|
|
1814
|
+
],
|
|
1801
1815
|
})
|
|
1802
1816
|
|
|
1803
1817
|
// 2. Boot Core
|
|
@@ -1994,7 +2008,9 @@ export async function createApp(): Promise<PlanetCore> {
|
|
|
1994
2008
|
// 1. Configure
|
|
1995
2009
|
const config = defineConfig({
|
|
1996
2010
|
config: appConfig,
|
|
1997
|
-
orbits: [
|
|
2011
|
+
orbits: [
|
|
2012
|
+
new OrbitAtlas() as unknown as import('@gravito/core').GravitoOrbit,
|
|
2013
|
+
],
|
|
1998
2014
|
})
|
|
1999
2015
|
|
|
2000
2016
|
// 2. Boot Core
|
|
@@ -3083,7 +3099,21 @@ var EnterpriseMvcGenerator = class extends BaseGenerator {
|
|
|
3083
3099
|
{
|
|
3084
3100
|
type: "directory",
|
|
3085
3101
|
name: "Unit",
|
|
3086
|
-
children: [
|
|
3102
|
+
children: [
|
|
3103
|
+
{ type: "file", name: ".gitkeep", content: "" },
|
|
3104
|
+
{
|
|
3105
|
+
type: "file",
|
|
3106
|
+
name: "Example.test.ts",
|
|
3107
|
+
content: `import { describe, it, expect } from 'bun:test'
|
|
3108
|
+
|
|
3109
|
+
describe('Example Test', () => {
|
|
3110
|
+
it('should pass', () => {
|
|
3111
|
+
expect(true).toBe(true)
|
|
3112
|
+
})
|
|
3113
|
+
})
|
|
3114
|
+
`
|
|
3115
|
+
}
|
|
3116
|
+
]
|
|
3087
3117
|
},
|
|
3088
3118
|
{
|
|
3089
3119
|
type: "directory",
|
|
@@ -3615,7 +3645,7 @@ export async function bootstrap() {
|
|
|
3615
3645
|
const config = defineConfig({
|
|
3616
3646
|
config: appConfig,
|
|
3617
3647
|
orbits: [
|
|
3618
|
-
new OrbitAtlas(),
|
|
3648
|
+
new OrbitAtlas() as unknown as import('@gravito/core').GravitoOrbit,
|
|
3619
3649
|
${spectrumOrbit}
|
|
3620
3650
|
],
|
|
3621
3651
|
})
|
|
@@ -4402,7 +4432,21 @@ var ActionDomainGenerator = class extends BaseGenerator {
|
|
|
4402
4432
|
{
|
|
4403
4433
|
type: "directory",
|
|
4404
4434
|
name: "tests",
|
|
4405
|
-
children: [
|
|
4435
|
+
children: [
|
|
4436
|
+
{ type: "file", name: ".gitkeep", content: "" },
|
|
4437
|
+
{
|
|
4438
|
+
type: "file",
|
|
4439
|
+
name: "Example.test.ts",
|
|
4440
|
+
content: `import { describe, it, expect } from 'bun:test'
|
|
4441
|
+
|
|
4442
|
+
describe('Example Test', () => {
|
|
4443
|
+
it('should pass', () => {
|
|
4444
|
+
expect(true).toBe(true)
|
|
4445
|
+
})
|
|
4446
|
+
})
|
|
4447
|
+
`
|
|
4448
|
+
}
|
|
4449
|
+
]
|
|
4406
4450
|
}
|
|
4407
4451
|
];
|
|
4408
4452
|
}
|
|
@@ -4697,7 +4741,7 @@ import {
|
|
|
4697
4741
|
export async function bootstrap() {
|
|
4698
4742
|
const config = defineConfig({
|
|
4699
4743
|
config: appConfig,
|
|
4700
|
-
orbits: [new OrbitAtlas()],
|
|
4744
|
+
orbits: [new OrbitAtlas() as unknown as import('@gravito/core').GravitoOrbit],
|
|
4701
4745
|
})
|
|
4702
4746
|
|
|
4703
4747
|
const core = await PlanetCore.boot(config)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravito/scaffold",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Project scaffolding engine for Gravito - Generate enterprise-grade architecture templates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"bun-types": "latest"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@gravito/core": "
|
|
43
|
+
"@gravito/core": "^1.6.1"
|
|
44
44
|
},
|
|
45
45
|
"author": "Carl Lee <carllee0520@gmail.com>",
|
|
46
46
|
"license": "MIT",
|
|
@@ -11,12 +11,11 @@
|
|
|
11
11
|
"emitDecoratorMetadata": true,
|
|
12
12
|
"types": ["bun-types"],
|
|
13
13
|
"outDir": "./dist",
|
|
14
|
-
"rootDir": "./src",
|
|
15
14
|
"baseUrl": ".",
|
|
16
15
|
"paths": {
|
|
17
16
|
"@/*": ["./src/*"]
|
|
18
17
|
}
|
|
19
18
|
},
|
|
20
|
-
"include": ["src/**/*"],
|
|
19
|
+
"include": ["src/**/*", "config/**/*"],
|
|
21
20
|
"exclude": ["node_modules", "dist"]
|
|
22
21
|
}
|