Skip to content

Commit d54454e

Browse files
Copilotstreamich
andcommitted
feat: move comprehensive templates to examples.ts and create combined template
Co-authored-by: streamich <[email protected]>
1 parent bb94a94 commit d54454e

File tree

5 files changed

+1135
-624
lines changed

5 files changed

+1135
-624
lines changed

src/__demos__/templates-demo.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {TemplateJson} from '../structured/TemplateJson';
2-
import * as templates from '../structured/templates';
2+
import * as templates from '../examples';
33

44
console.log('🎲 JSON Random Template Examples\n');
55

@@ -61,4 +61,11 @@ console.log(JSON.stringify(empty, null, 2));
6161

6262
console.log('\n📏 Large numbers:');
6363
const large = TemplateJson.gen(templates.largeNumbers);
64-
console.log(JSON.stringify(large, null, 2));
64+
console.log(JSON.stringify(large, null, 2));
65+
66+
console.log('\n🎰 Random examples from allExamples template:');
67+
for (let i = 0; i < 3; i++) {
68+
const example = TemplateJson.gen(templates.allExamples);
69+
console.log(`Example ${i + 1}:`, JSON.stringify(example, null, 2));
70+
console.log('---');
71+
}

0 commit comments

Comments
 (0)