feat: make it a npm package
This commit is contained in:
@@ -4,22 +4,18 @@
|
|||||||
"workspaces": {
|
"workspaces": {
|
||||||
"": {
|
"": {
|
||||||
"name": "kuber",
|
"name": "kuber",
|
||||||
"dependencies": {
|
"devDependencies": {
|
||||||
"@bomb.sh/tab": "^0.0.22",
|
"@bomb.sh/tab": "^0.0.22",
|
||||||
"@cliffy/table": "npm:@jsr/cliffy__table",
|
"@cliffy/table": "npm:@jsr/cliffy__table",
|
||||||
"@kubernetes/client-node": "^1.4.0",
|
"@kubernetes/client-node": "^1.4.0",
|
||||||
"citty": "^0.2.2",
|
|
||||||
"listr2": "^11.0.0",
|
|
||||||
"zod": "^4.4.3",
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/bun": "latest",
|
"@types/bun": "latest",
|
||||||
|
"citty": "^0.2.2",
|
||||||
"json-schema-to-typescript": "^15.0.4",
|
"json-schema-to-typescript": "^15.0.4",
|
||||||
|
"listr2": "^11.0.0",
|
||||||
"oxfmt": "^0.62.0",
|
"oxfmt": "^0.62.0",
|
||||||
"oxlint": "^1.77.0",
|
"oxlint": "^1.77.0",
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"typescript": "^5",
|
"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 { createMain } from "citty";
|
||||||
import { initializeCompletion, main } from "./command/main";
|
import { initializeCompletion, main } from "./command/main";
|
||||||
import { provideContext } from "./lib/context";
|
import { provideContext } from "./lib/context";
|
||||||
|
|||||||
+19
-12
@@ -1,26 +1,33 @@
|
|||||||
{
|
{
|
||||||
"name": "kuber",
|
"name": "@dmgnr/kuber",
|
||||||
"module": "index.ts",
|
"version": "1.0.0",
|
||||||
|
"description": "Docker Compose to Kubernetes translation layer",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"bin": {
|
||||||
|
"kuber": "dist/index.js"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"dist/index.js"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"bun": ">=1.0.0"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"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",
|
"@bomb.sh/tab": "^0.0.22",
|
||||||
"@cliffy/table": "npm:@jsr/cliffy__table",
|
"@cliffy/table": "npm:@jsr/cliffy__table",
|
||||||
"@kubernetes/client-node": "^1.4.0",
|
"@kubernetes/client-node": "^1.4.0",
|
||||||
|
"@types/bun": "latest",
|
||||||
"citty": "^0.2.2",
|
"citty": "^0.2.2",
|
||||||
|
"json-schema-to-typescript": "^15.0.4",
|
||||||
"listr2": "^11.0.0",
|
"listr2": "^11.0.0",
|
||||||
|
"oxfmt": "^0.62.0",
|
||||||
|
"oxlint": "^1.77.0",
|
||||||
|
"typescript": "^5",
|
||||||
"zod": "^4.4.3"
|
"zod": "^4.4.3"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "bun build index.ts --target bun --minify --outdir dist",
|
||||||
|
"prepack": "bun run build",
|
||||||
"test": "bun test tests",
|
"test": "bun test tests",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"prod": "bun run build && cp dist/kuber ~/.bun/bin/ && scp dist/kuber-arm64 root@astral:/usr/bin/kuber"
|
"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