mirror of https://github.com/buster-so/buster.git
remove server-util entirely
This commit is contained in:
parent
d4366037bf
commit
75b4bb44dc
|
@ -20,7 +20,6 @@
|
||||||
{ "path": "../packages/web-tools" },
|
{ "path": "../packages/web-tools" },
|
||||||
{ "path": "../packages/sandbox" },
|
{ "path": "../packages/sandbox" },
|
||||||
{ "path": "../packages/env-utils" },
|
{ "path": "../packages/env-utils" },
|
||||||
{ "path": "../packages/server-utils" }
|
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
"editor.defaultFormatter": "biomejs.biome",
|
"editor.defaultFormatter": "biomejs.biome",
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
"@buster/env-utils": "workspace:*",
|
"@buster/env-utils": "workspace:*",
|
||||||
"@buster/github": "workspace:*",
|
"@buster/github": "workspace:*",
|
||||||
"@buster/server-shared": "workspace:*",
|
"@buster/server-shared": "workspace:*",
|
||||||
"@buster/server-utils": "workspace:*",
|
|
||||||
"@buster/slack": "workspace:*",
|
"@buster/slack": "workspace:*",
|
||||||
"@buster/test-utils": "workspace:*",
|
"@buster/test-utils": "workspace:*",
|
||||||
"@buster/typescript-config": "workspace:*",
|
"@buster/typescript-config": "workspace:*",
|
||||||
|
|
|
@ -17,8 +17,7 @@
|
||||||
"@buster/data-source#dev",
|
"@buster/data-source#dev",
|
||||||
"@buster-app/trigger#dev",
|
"@buster-app/trigger#dev",
|
||||||
"@buster-app/electric-server#dev",
|
"@buster-app/electric-server#dev",
|
||||||
"@buster-app/api-legacy#dev",
|
"@buster-app/api-legacy#dev"
|
||||||
"@buster/server-utils#dev"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dev:fast": {
|
"dev:fast": {
|
||||||
|
@ -32,8 +31,7 @@
|
||||||
"@buster/data-source#dev",
|
"@buster/data-source#dev",
|
||||||
"@buster-app/trigger#dev:fast",
|
"@buster-app/trigger#dev:fast",
|
||||||
"@buster-app/electric-server#dev:fast",
|
"@buster-app/electric-server#dev:fast",
|
||||||
"@buster-app/api-legacy#dev:fast",
|
"@buster-app/api-legacy#dev:fast"
|
||||||
"@buster/server-utils#dev:fast"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { MarkdownPlugin as PlateMarkdownPlugin } from '@platejs/markdown'; //use this an not the one from server-utils
|
import { MarkdownPlugin as PlateMarkdownPlugin } from '@platejs/markdown';
|
||||||
import { remarkMdx, remarkMention } from '@platejs/markdown';
|
import { remarkMdx, remarkMention } from '@platejs/markdown';
|
||||||
import remarkGfm from 'remark-gfm';
|
import remarkGfm from 'remark-gfm';
|
||||||
import { calloutSerializer } from './callout-serializer';
|
import { calloutSerializer } from './callout-serializer';
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
# 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
|
|
|
@ -1,7 +0,0 @@
|
||||||
# @buster/server-utils
|
|
||||||
|
|
||||||
Server utilities for Buster that can be used in any server-side application across the monorepo.
|
|
||||||
|
|
||||||
## Overview
|
|
||||||
|
|
||||||
This package provides common server-side utilities and helper functions that are shared across different backend applications in the Buster ecosystem. It centralizes reusable server logic to avoid code duplication and ensure consistency across services.
|
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
|
||||||
"extends": ["../../biome.json"],
|
|
||||||
"files": {
|
|
||||||
"include": ["src/**/*", "scripts/**/*"]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
declare global {
|
|
||||||
namespace NodeJS {
|
|
||||||
interface ProcessEnv {
|
|
||||||
NODE_ENV?: 'development' | 'production' | 'test';
|
|
||||||
// Add your environment variables here
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export {};
|
|
|
@ -1,47 +0,0 @@
|
||||||
{
|
|
||||||
"name": "@buster/server-utils",
|
|
||||||
"description": "Server utilities for Buster that can be used in any server-side application",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"type": "module",
|
|
||||||
"main": "dist/index.js",
|
|
||||||
"types": "dist/index.d.ts",
|
|
||||||
"exports": {},
|
|
||||||
"scripts": {
|
|
||||||
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
|
||||||
"build": "tsc",
|
|
||||||
"build:dry-run": "tsc",
|
|
||||||
"typecheck": "tsc --noEmit",
|
|
||||||
"dev": "tsc --watch",
|
|
||||||
"dev:fast": "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/database": "workspace:*",
|
|
||||||
"@buster/env-utils": "workspace:*",
|
|
||||||
"@buster/typescript-config": "workspace:*",
|
|
||||||
"@buster/vitest-config": "workspace:*",
|
|
||||||
"@platejs/autoformat": "catalog:",
|
|
||||||
"@platejs/basic-nodes": "catalog:",
|
|
||||||
"@platejs/basic-styles": "catalog:",
|
|
||||||
"@platejs/date": "catalog:",
|
|
||||||
"@platejs/layout": "catalog:",
|
|
||||||
"@platejs/link": "catalog:",
|
|
||||||
"@platejs/list": "catalog:",
|
|
||||||
"@platejs/markdown": "catalog:",
|
|
||||||
"@platejs/math": "catalog:",
|
|
||||||
"@platejs/media": "catalog:",
|
|
||||||
"@platejs/table": "catalog:",
|
|
||||||
"@platejs/toc": "catalog:",
|
|
||||||
"@platejs/toggle": "catalog:",
|
|
||||||
"@platejs/indent": "catalog:",
|
|
||||||
"platejs": "catalog:",
|
|
||||||
"remark-gfm": "catalog:",
|
|
||||||
"remark-math": "catalog:",
|
|
||||||
"zod": "catalog:"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
#!/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);
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "@buster/typescript-config/base.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"tsBuildInfoFile": "dist/.cache/tsbuildinfo.json",
|
|
||||||
"outDir": "dist",
|
|
||||||
"rootDir": "src"
|
|
||||||
},
|
|
||||||
"include": ["src/**/*", "env.d.ts"],
|
|
||||||
"exclude": ["node_modules", "dist", "tests", "**/*.test.ts", "**/*.spec.ts"]
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://turbo.build/schema.json",
|
|
||||||
"extends": ["//"],
|
|
||||||
"tasks": {
|
|
||||||
"build": {
|
|
||||||
"inputs": [
|
|
||||||
"src/**/*",
|
|
||||||
"!src/**/*.test.{ts,tsx,js,jsx}",
|
|
||||||
"!src/**/*.spec.{ts,tsx,js,jsx}",
|
|
||||||
"package.json",
|
|
||||||
"tsconfig.json"
|
|
||||||
],
|
|
||||||
"outputs": ["dist/**/*"]
|
|
||||||
},
|
|
||||||
"dev": {
|
|
||||||
"cache": false,
|
|
||||||
"persistent": true,
|
|
||||||
"dependsOn": ["^build"],
|
|
||||||
"with": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
import { baseConfig } from '@buster/vitest-config';
|
|
||||||
|
|
||||||
export default baseConfig;
|
|
Loading…
Reference in New Issue