Skip to content

Commit 1d24342

Browse files
committed
feat: extend service type options to include remix, astro, and sveltekit
1 parent 4b71970 commit 1d24342

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bin/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ program
5555
.description('Add a new service or plugin')
5656
.argument('<entity>', 'service | plugin')
5757
.argument('<name>', 'Name of the service or plugin')
58-
.option('--type <type>', 'Service type (node|python|go|java|frontend)')
58+
.option('--type <type>', 'Service type (node|python|go|java|frontend|remix|astro|sveltekit)')
5959
.option('--lang <type>', '(Deprecated) Alias of --type')
6060
.option('--port <port>', 'Service port')
6161
.option('--yes', 'Non-interactive defaults')
@@ -74,7 +74,10 @@ program
7474
{ title: 'Python', value: 'python' },
7575
{ title: 'Go', value: 'go' },
7676
{ title: 'Java', value: 'java' },
77-
{ title: 'Frontend (Next.js)', value: 'frontend' }
77+
{ title: 'Frontend (Next.js)', value: 'frontend' },
78+
{ title: 'Remix', value: 'remix' },
79+
{ title: 'Astro', value: 'astro' },
80+
{ title: 'SvelteKit', value: 'sveltekit' }
7881
] });
7982
type = ans.type;
8083
}
@@ -83,7 +86,7 @@ program
8386
if (ans.port) port = Number(ans.port);
8487
}
8588
}
86-
const defaultPorts = { frontend: 3000, node: 3001, go: 3002, java: 3003, python: 3004 };
89+
const defaultPorts = { frontend: 3000, node: 3001, go: 3002, java: 3003, python: 3004, remix: 3005, astro: 3006, sveltekit: 3007 };
8790
if (!type) throw new Error('Service type required');
8891
if (!port) port = defaultPorts[type];
8992
await addService(projectDir, { type, name, port }, opts);

0 commit comments

Comments
 (0)