Skip to content

Commit bcb22ee

Browse files
committed
feat: 更新项目模板选项,添加企业ERP系统模板
1 parent 3b11312 commit bcb22ee

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.changeset/config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
"@objectql/sdk",
1313
"@objectql/server",
1414
"@objectql/types",
15-
"@objectql/platform-node",
16-
"@objectql/starter-basic",
17-
"@objectql/starter-express-api",
18-
"@objectql/starter-enterprise"
15+
"@objectql/platform-node"
1916
]
2017
],
2118
"linked": [],

packages/tools/create/scripts/copy-templates.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ async function copyTemplates() {
3030
{
3131
src: path.join(examplesDir, 'showcase/project-tracker'),
3232
dest: path.join(templatesDir, 'starter')
33+
},
34+
{
35+
src: path.join(examplesDir, 'showcase/enterprise-erp'),
36+
dest: path.join(templatesDir, 'enterprise')
3337
}
3438
];
3539

packages/tools/create/src/bin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ program
1313
.name('create-objectql')
1414
.description('Scaffold a new ObjectQL project')
1515
.argument('[directory]', 'Directory to create the project in')
16-
.option('-t, --template <name>', 'Template to use (hello-world, starter)')
16+
.option('-t, --template <name>', 'Template to use (hello-world, starter, enterprise)')
1717
.action(async (directory, options) => {
1818
console.log(chalk.bold.blue('⚡ ObjectStack AI - Project Scaffolder'));
1919

@@ -42,6 +42,7 @@ program
4242
message: 'Select a starter template:',
4343
choices: [
4444
{ message: 'Standard Project (Recommended)', name: 'starter' },
45+
{ message: 'Enterprise ERP System', name: 'enterprise' },
4546
{ message: 'Minimal (Hello World)', name: 'hello-world' }
4647
]
4748
});

0 commit comments

Comments
 (0)