mirror of https://github.com/buster-so/buster.git
momentic init
This commit is contained in:
parent
ee3274b34b
commit
6be8d25546
|
@ -0,0 +1,38 @@
|
|||
# TypeScript build artifacts
|
||||
dist/
|
||||
build/
|
||||
*.tsbuildinfo
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Coverage
|
||||
coverage/
|
||||
*.lcov
|
||||
.nyc_output
|
||||
|
||||
# Node modules
|
||||
node_modules/
|
||||
|
||||
# Temporary files
|
||||
*.tmp
|
||||
*.temp
|
||||
.DS_Store
|
||||
|
||||
# Environment files
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Test artifacts
|
||||
junit.xml
|
||||
test-results/
|
||||
|
||||
# IDE
|
||||
.idea/
|
||||
.vscode/
|
||||
*.swp
|
||||
*.swo
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
||||
"extends": ["../../biome.json"],
|
||||
"files": {
|
||||
"include": ["src/**/*", "scripts/**/*"]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
declare global {
|
||||
namespace NodeJS {
|
||||
interface ProcessEnv {
|
||||
NODE_ENV?: 'development' | 'production' | 'test';
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
|
@ -0,0 +1,10 @@
|
|||
name: buster
|
||||
include:
|
||||
- "**/*.test.yaml"
|
||||
- "**/*.module.yaml"
|
||||
environments:
|
||||
- name: development
|
||||
baseUrl: http://localhost:3000
|
||||
envVariables:
|
||||
USERNAME: "chad@buster.so"
|
||||
PASSWORD: "password"
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"name": "@buster-app/momentic",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"./*": {
|
||||
"types": "./dist/*.d.ts",
|
||||
"default": "./dist/*.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
||||
"build": "tsc",
|
||||
"build:dry-run": "tsc",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"dev": "tsc --watch",
|
||||
"lint": "biome check --write",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
||||
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
||||
"test:watch": "vitest watch",
|
||||
"test:coverage": "vitest run --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
"@buster/env-utils": "workspace:*",
|
||||
"@buster/typescript-config": "workspace:*",
|
||||
"@buster/vitest-config": "workspace:*",
|
||||
"zod": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"momentic": "^2.16.0",
|
||||
"tsx": "catalog:"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
// This script uses the shared env-utils to validate environment variables
|
||||
import { loadRootEnv, validateEnv } from '@buster/env-utils';
|
||||
|
||||
// Load environment variables from root .env file
|
||||
loadRootEnv();
|
||||
|
||||
// Define required environment variables for this package
|
||||
const requiredEnv = {
|
||||
// NODE_ENV is optional - will default to 'development' if not set
|
||||
// Add your required environment variables here:
|
||||
// DATABASE_URL: process.env.DATABASE_URL,
|
||||
// API_KEY: process.env.API_KEY,
|
||||
};
|
||||
|
||||
// Validate environment variables
|
||||
const { hasErrors } = validateEnv(requiredEnv);
|
||||
|
||||
if (hasErrors) {
|
||||
process.exit(1);
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"extends": "@buster/typescript-config/base.json",
|
||||
"compilerOptions": {},
|
||||
"include": ["scripts/**/*"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
import { baseConfig } from '@buster/vitest-config';
|
||||
|
||||
export default baseConfig;
|
2634
pnpm-lock.yaml
2634
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,7 @@
|
|||
packages:
|
||||
- packages/*
|
||||
- apps/server
|
||||
- apps/momentic
|
||||
- apps/electric-server
|
||||
- apps/trigger
|
||||
- apps/api
|
||||
|
|
Loading…
Reference in New Issue