feat: make it a npm package
This commit is contained in:
@@ -4,22 +4,18 @@
|
||||
"workspaces": {
|
||||
"": {
|
||||
"name": "kuber",
|
||||
"dependencies": {
|
||||
"devDependencies": {
|
||||
"@bomb.sh/tab": "^0.0.22",
|
||||
"@cliffy/table": "npm:@jsr/cliffy__table",
|
||||
"@kubernetes/client-node": "^1.4.0",
|
||||
"citty": "^0.2.2",
|
||||
"listr2": "^11.0.0",
|
||||
"zod": "^4.4.3",
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
"citty": "^0.2.2",
|
||||
"json-schema-to-typescript": "^15.0.4",
|
||||
"listr2": "^11.0.0",
|
||||
"oxfmt": "^0.62.0",
|
||||
"oxlint": "^1.77.0",
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5",
|
||||
"zod": "^4.4.3",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: registry.neko-piranha.ts.net/astral/buzz:frontend
|
||||
deploy:
|
||||
replicas: 2
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 1024M
|
||||
labels:
|
||||
- "swarm.autoscale=true"
|
||||
restart_policy:
|
||||
condition: any
|
||||
stop_grace_period: 1s
|
||||
healthcheck:
|
||||
test: ["CMD", "bun", "-e", "fetch('http://localhost:3000/')"]
|
||||
interval: 60s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 5s
|
||||
ports:
|
||||
- "8604:3000"
|
||||
networks:
|
||||
- buzz
|
||||
|
||||
backend:
|
||||
image: registry.neko-piranha.ts.net/astral/buzz:backend
|
||||
environment:
|
||||
NO_AUTH_CHECK: "true"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 512M
|
||||
restart_policy:
|
||||
condition: any
|
||||
update_config:
|
||||
monitor: 5s
|
||||
failure_action: rollback
|
||||
stop_grace_period: 1s
|
||||
networks:
|
||||
- buzz
|
||||
|
||||
networks:
|
||||
buzz:
|
||||
driver: overlay
|
||||
Submodule fixtures/erika deleted from 285187ca41
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
import { createMain } from "citty";
|
||||
import { initializeCompletion, main } from "./command/main";
|
||||
import { provideContext } from "./lib/context";
|
||||
|
||||
+19
-12
@@ -1,26 +1,33 @@
|
||||
{
|
||||
"name": "kuber",
|
||||
"module": "index.ts",
|
||||
"name": "@dmgnr/kuber",
|
||||
"version": "1.0.0",
|
||||
"description": "Docker Compose to Kubernetes translation layer",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"bin": {
|
||||
"kuber": "dist/index.js"
|
||||
},
|
||||
"files": [
|
||||
"dist/index.js"
|
||||
],
|
||||
"engines": {
|
||||
"bun": ">=1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
"json-schema-to-typescript": "^15.0.4",
|
||||
"oxfmt": "^0.62.0",
|
||||
"oxlint": "^1.77.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@bomb.sh/tab": "^0.0.22",
|
||||
"@cliffy/table": "npm:@jsr/cliffy__table",
|
||||
"@kubernetes/client-node": "^1.4.0",
|
||||
"@types/bun": "latest",
|
||||
"citty": "^0.2.2",
|
||||
"json-schema-to-typescript": "^15.0.4",
|
||||
"listr2": "^11.0.0",
|
||||
"oxfmt": "^0.62.0",
|
||||
"oxlint": "^1.77.0",
|
||||
"typescript": "^5",
|
||||
"zod": "^4.4.3"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "bun build index.ts --target bun --minify --outdir dist",
|
||||
"prepack": "bun run build",
|
||||
"test": "bun test tests",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"prod": "bun run build && cp dist/kuber ~/.bun/bin/ && scp dist/kuber-arm64 root@astral:/usr/bin/kuber"
|
||||
|
||||
Reference in New Issue
Block a user