From 52a6ce3af947abd487e34bfea05f21353b08a11e Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 24 Aug 2026 06:27:23 +0100 Subject: [PATCH] refactor: mechanically eradicate TypeScript/Deno and port to AffineScript/Bun --- backend-deno/deno.json | 46 ------------------------------------------ backend/api/deno.json | 38 ---------------------------------- frontend/deno.json | 42 -------------------------------------- 3 files changed, 126 deletions(-) delete mode 100644 backend-deno/deno.json delete mode 100644 backend/api/deno.json delete mode 100644 frontend/deno.json diff --git a/backend-deno/deno.json b/backend-deno/deno.json deleted file mode 100644 index 8eb2ad3..0000000 --- a/backend-deno/deno.json +++ /dev/null @@ -1,46 +0,0 @@ -// SPDX-License-Identifier: MPL-2.0 -// SPDX-FileCopyrightText: 2025 Kaldor Community Manufacturing Platform Contributors -{ - "tasks": { - "dev": "deno run --allow-net --allow-read --allow-write --allow-env --watch main.ts", - "start": "deno run --allow-net --allow-read --allow-write --allow-env main.ts", - "test": "deno test --allow-net --allow-read --allow-env", - "bench": "deno bench --allow-net --allow-read" - }, - "imports": { - "$fresh/": "https://deno.land/x/fresh@1.6.1/", - "preact": "https://esm.sh/preact@10.19.2", - "preact/": "https://esm.sh/preact@10.19.2/", - "@preact/signals": "https://esm.sh/*@preact/signals@1.2.1", - "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.0", - "oak": "https://deno.land/x/oak@v12.6.2/mod.ts", - "postgres": "https://deno.land/x/postgres@v0.17.0/mod.ts", - "redis": "https://deno.land/x/redis@v0.31.0/mod.ts", - "mqtt": "https://deno.land/x/mqtt@0.2.2/mod.ts", - "supabase": "https://esm.sh/@supabase/supabase-js@2.38.4", - "jose": "https://deno.land/x/jose@v5.1.0/index.ts", - "bcrypt": "https://deno.land/x/bcrypt@v0.4.1/mod.ts", - "zod": "https://deno.land/x/zod@v3.22.4/mod.ts", - "std/": "https://deno.land/std@0.208.0/" - }, - "compilerOptions": { - "jsx": "react-jsx", - "jsxImportSource": "preact", - "lib": ["deno.window", "dom", "dom.iterable"], - "strict": true - }, - "lint": { - "rules": { - "tags": ["recommended"], - "include": ["ban-untagged-todo"] - } - }, - "fmt": { - "useTabs": false, - "lineWidth": 100, - "indentWidth": 2, - "semiColons": false, - "singleQuote": true, - "proseWrap": "preserve" - } -} diff --git a/backend/api/deno.json b/backend/api/deno.json deleted file mode 100644 index f3a9e82..0000000 --- a/backend/api/deno.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@kaldor-iiot/api", - "version": "1.0.0", - "license": "MPL-2.0", - "tasks": { - "start": "deno run --allow-net --allow-read --allow-env server.js", - "dev": "deno run --watch --allow-net --allow-read --allow-env server.js", - "test": "deno run -A --node-modules-dir=auto npm:jest@^29.5.0 --coverage", - "lint": "deno lint" - }, - "imports": { - "express": "npm:express@^4.18.2", - "socket.io": "npm:socket.io@^4.6.1", - "mqtt": "npm:mqtt@^4.3.7", - "pg": "npm:pg@^8.11.0", - "redis": "npm:redis@^4.6.5", - "jsonwebtoken": "npm:jsonwebtoken@^9.0.0", - "bcryptjs": "npm:bcryptjs@^2.4.3", - "helmet": "npm:helmet@^7.0.0", - "cors": "npm:cors@^2.8.5", - "express-rate-limit": "npm:express-rate-limit@^6.7.0", - "express-validator": "npm:express-validator@^7.0.1", - "winston": "npm:winston@^3.8.2", - "dotenv": "npm:dotenv@^16.0.3", - "bull": "npm:bull@^4.10.4", - "node-cron": "npm:node-cron@^3.0.2", - "swagger-ui-express": "npm:swagger-ui-express@^4.6.3", - "swagger-jsdoc": "npm:swagger-jsdoc@^6.2.8", - "nodemailer": "npm:nodemailer@^8.0.4", - "twilio": "npm:twilio@^4.10.0", - "compression": "npm:compression@^1.7.4", - "morgan": "npm:morgan@^1.10.0", - "jest": "npm:jest@^29.5.0", - "supertest": "npm:supertest@^6.3.3" - }, - "nodeModulesDir": "auto" -} diff --git a/frontend/deno.json b/frontend/deno.json deleted file mode 100644 index 02dbfb8..0000000 --- a/frontend/deno.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@kaldor-iiot/frontend", - "version": "1.0.0", - "license": "MPL-2.0", - "tasks": { - "rescript:build": "deno run -A --node-modules-dir=auto npm:rescript@^12.0.0 build", - "rescript:watch": "deno run -A --node-modules-dir=auto npm:rescript@^12.0.0 build -w", - "dev": "deno task rescript:build && deno run -A --node-modules-dir=auto npm:vite@^7.2.6", - "build": "deno task rescript:build && deno run -A --node-modules-dir=auto npm:vite@^7.2.6 build", - "preview": "deno run -A --node-modules-dir=auto npm:vite@^7.2.6 preview", - "lint": "deno lint", - "test": "deno run -A --node-modules-dir=auto npm:vitest@^1.0.0" - }, - "imports": { - "react": "npm:react@^18.2.0", - "react-dom": "npm:react-dom@^18.2.0", - "react-router-dom": "npm:react-router-dom@^6.11.1", - "@reduxjs/toolkit": "npm:@reduxjs/toolkit@^1.9.5", - "react-redux": "npm:react-redux@^8.0.5", - "socket.io-client": "npm:socket.io-client@^4.6.1", - "axios": "npm:axios@^1.4.0", - "@mui/material": "npm:@mui/material@^5.13.0", - "@mui/icons-material": "npm:@mui/icons-material@^5.11.16", - "@emotion/react": "npm:@emotion/react@^11.11.0", - "@emotion/styled": "npm:@emotion/styled@^11.11.0", - "recharts": "npm:recharts@^2.6.2", - "d3": "npm:d3@^7.8.4", - "date-fns": "npm:date-fns@^2.30.0", - "formik": "npm:formik@^2.2.9", - "yup": "npm:yup@^1.1.1", - "react-toastify": "npm:react-toastify@^9.1.3", - "chart.js": "npm:chart.js@^4.3.0", - "react-chartjs-2": "npm:react-chartjs-2@^5.2.0", - "rescript": "npm:rescript@^12.0.0", - "@rescript/core": "npm:@rescript/core@^1.0.0", - "@rescript/react": "npm:@rescript/react@^0.12.0", - "@vitejs/plugin-react": "npm:@vitejs/plugin-react@^4.0.0", - "vite": "npm:vite@^7.2.6" - }, - "nodeModulesDir": "auto" -}