feat(new): multi-runtime starter (node/deno/bun) via --runtime, shared + overlay templates
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
1 parent
c63c121787
commit
e8cd20b7ec
20 files changed
+173
-16
No files matched your search
@@ -0,0 +1 @@
|
||||
runtime = "bun"
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "{{project_name}}",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": { "dev": "bun --watch run src/main.ts" },
|
||||
"dependencies": { "@green-tea/core": "^26.7.0-beta.0" }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { createApp } from '@green-tea/core';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
const app = createApp({ modules: [AppModule] });
|
||||
|
||||
Bun.serve({ port: 8000, fetch: app.fetch });
|
||||
console.log('🍵 green-tea running on http://localhost:8000');
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"experimentalDecorators": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true
|
||||
}
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1 @@
|
||||
runtime = "node"
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "{{project_name}}",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": { "dev": "tsx watch src/main.ts" },
|
||||
"dependencies": { "@green-tea/core": "^26.7.0-beta.0" },
|
||||
"devDependencies": { "tsx": "^4", "typescript": "^5" }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { createApp } from '@green-tea/core';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
const app = createApp({ modules: [AppModule] });
|
||||
|
||||
app.listen(3000);
|
||||
console.log('🍵 green-tea running on http://localhost:3000');
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2020",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"experimentalDecorators": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true
|
||||
}
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user