diff --git a/apps/nitro/.eslintrc.cjs b/apps/nitro/.eslintrc.cjs deleted file mode 100644 index 0893708..0000000 --- a/apps/nitro/.eslintrc.cjs +++ /dev/null @@ -1,46 +0,0 @@ -/** @type {import("eslint").Linter.Config} */ -const config = { - parser: "@typescript-eslint/parser", - parserOptions: { - project: "./tsconfig.json", // Update the path to your tsconfig.json file - }, - plugins: ["@typescript-eslint"], - extends: [ - "plugin:@next/next/recommended", - "plugin:@typescript-eslint/recommended-type-checked", - "plugin:@typescript-eslint/stylistic-type-checked", - require.resolve("@vercel/style-guide/eslint/node"), - require.resolve("@vercel/style-guide/eslint/browser"), - require.resolve("@vercel/style-guide/eslint/typescript"), - require.resolve("@vercel/style-guide/eslint/react"), - require.resolve("@vercel/style-guide/eslint/next"), - ], - rules: { - // These opinionated rules are enabled in stylistic-type-checked above. - // Feel free to reconfigure them to your own preference. - "@typescript-eslint/array-type": "off", - "@typescript-eslint/consistent-type-definitions": "off", - - "@typescript-eslint/consistent-type-imports": [ - "warn", - { - prefer: "type-imports", - fixStyle: "inline-type-imports", - }, - ], - "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }], - "@typescript-eslint/require-await": "off", - "@typescript-eslint/no-misused-promises": [ - "error", - { - checksVoidReturn: { attributes: false }, - }, - ], - "no-console": ["warn", { allow: ["warn", "error"] }], - "no-return-await": "off", - "import/no-default-export": "off", - "import/no-extraneous-dependencies": "off", - }, -}; - -module.exports = config; diff --git a/apps/nitro/.gitignore b/apps/nitro/.gitignore deleted file mode 100644 index ebe9be8..0000000 --- a/apps/nitro/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -node_modules -dist -.data -.nitro -.cache -.output -.env diff --git a/apps/nitro/.npmrc b/apps/nitro/.npmrc deleted file mode 100644 index cf04042..0000000 --- a/apps/nitro/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -shamefully-hoist=true -strict-peer-dependencies=false diff --git a/apps/nitro/README.md b/apps/nitro/README.md deleted file mode 100644 index f25a324..0000000 --- a/apps/nitro/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Nitro starter - -Look at the [nitro quick start](https://nitro.unjs.io/guide#quick-start) to learn more how to get started. diff --git a/apps/nitro/bun.lockb b/apps/nitro/bun.lockb deleted file mode 100755 index 165e63a..0000000 Binary files a/apps/nitro/bun.lockb and /dev/null differ diff --git a/apps/nitro/nitro.config.ts b/apps/nitro/nitro.config.ts deleted file mode 100644 index b6e91c8..0000000 --- a/apps/nitro/nitro.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -//https://nitro.unjs.io/config -export default defineNitroConfig({ - srcDir: "server" -}); diff --git a/apps/nitro/package.json b/apps/nitro/package.json deleted file mode 100644 index ad7fafc..0000000 --- a/apps/nitro/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "@quotes/nitro", - "private": true, - "scripts": { - "build": "nitro build", - "dev": "bun with-env nitro dev --port 3001", - "prepare": "nitro prepare", - "preview": "node .output/server/index.mjs", - "with-env": "dotenv -e ../../.env --" - - }, - "devDependencies": { - "nitropack": "latest" - } -} diff --git a/apps/nitro/server/routes/quotes/[qId]/index.ts b/apps/nitro/server/routes/quotes/[qId]/index.ts deleted file mode 100644 index 0ecebce..0000000 --- a/apps/nitro/server/routes/quotes/[qId]/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { db, eq, quote } from "@quotes/db" - -export default eventHandler(async (event) => { - if (typeof event.context.params?.qId !== "number") return "Please provide a quote id!" - console.log("Getting id:", event.context.params.qId) - const data = await db.query.quote.findFirst({ where: eq(quote.id, event.context.params.qId) }) - console.log(data) - return "Start by editing server/routes/index.ts."; -}); diff --git a/apps/nitro/tsconfig.json b/apps/nitro/tsconfig.json deleted file mode 100644 index 2b518b1..0000000 --- a/apps/nitro/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -// https://nitro.unjs.io/guide/typescript -{ - "extends": "./.nitro/types/tsconfig.json", - "compilerOptions": { - "strictNullChecks": true - } -} diff --git a/bun.lockb b/bun.lockb index a86a449..d727b4a 100755 Binary files a/bun.lockb and b/bun.lockb differ