diff --git a/deno.json b/deno.json index fcee853..abfed7f 100644 --- a/deno.json +++ b/deno.json @@ -1,21 +1,21 @@ { - "lock": false, - "workspace": ["./packages/crawler", "./packages/frontend", "./packages/backend", "./packages/core"], - "nodeModulesDir": "auto", - "tasks": { - "crawler": "deno task --filter 'crawler' all" - }, - "fmt": { - "useTabs": true, - "lineWidth": 120, - "indentWidth": 4, - "semiColons": true, - "proseWrap": "always" - }, - "imports": { - "@astrojs/node": "npm:@astrojs/node@^9.1.3", - "@astrojs/svelte": "npm:@astrojs/svelte@^7.0.8", + "lock": false, + "workspace": ["./packages/crawler", "./packages/frontend", "./packages/backend", "./packages/core"], + "nodeModulesDir": "auto", + "tasks": { + "crawler": "deno task --filter 'crawler' all" + }, + "fmt": { + "useTabs": true, + "lineWidth": 120, + "indentWidth": 4, + "semiColons": true, + "proseWrap": "always" + }, + "imports": { + "@astrojs/node": "npm:@astrojs/node@^9.1.3", + "@astrojs/svelte": "npm:@astrojs/svelte@^7.0.8", "@core/db/": "./packages/core/db/", - "date-fns": "npm:date-fns@^4.1.0" - } + "date-fns": "npm:date-fns@^4.1.0" + } } diff --git a/packages/backend/deno.json b/packages/backend/deno.json index e69de29..bac3608 100644 --- a/packages/backend/deno.json +++ b/packages/backend/deno.json @@ -0,0 +1,13 @@ +{ + "name": "@cvsa/backend", + "imports": { + "hono": "jsr:@hono/hono@^4.7.5" + }, + "tasks": { + "start": "deno run --allow-net main.ts" + }, + "compilerOptions": { + "jsx": "precompile", + "jsxImportSource": "hono/jsx" + } +} diff --git a/packages/backend/main.ts b/packages/backend/main.ts new file mode 100644 index 0000000..daa7580 --- /dev/null +++ b/packages/backend/main.ts @@ -0,0 +1,9 @@ +import { Hono } from "hono"; + +const app = new Hono(); + +app.get("/", (c) => { + return c.text("Hello Hono!"); +}); + +Deno.serve(app.fetch); diff --git a/packages/core/db/pgConfig.ts b/packages/core/db/pgConfig.ts index adea921..cebba63 100644 --- a/packages/core/db/pgConfig.ts +++ b/packages/core/db/pgConfig.ts @@ -27,4 +27,4 @@ export const postgresConfigCred = { database: databaseNameCred, user: databaseUser, password: databasePassword, -} \ No newline at end of file +}; diff --git a/packages/frontend/main.ts b/packages/frontend/main.ts index f6ef10d..3f50c75 100644 --- a/packages/frontend/main.ts +++ b/packages/frontend/main.ts @@ -1 +1 @@ -export const VERSION = "1.2.6"; \ No newline at end of file +export const VERSION = "1.2.6"; diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 377d360..d94c869 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -1,23 +1,23 @@ { - "name": "frontend", - "type": "module", - "version": "0.0.1", - "scripts": { - "dev": "astro dev", - "build": "astro build", - "preview": "astro preview", - "astro": "astro" - }, - "dependencies": { - "@astrojs/tailwind": "^6.0.2", - "astro": "^5.5.5", - "autoprefixer": "^10.4.21", - "pg": "^8.11.11", - "postcss": "^8.5.3", - "tailwindcss": "^3.0.24", - "vite-tsconfig-paths": "^5.1.4" - }, - "devDependencies": { - "@types/pg": "^8.11.11" - } + "name": "frontend", + "type": "module", + "version": "0.0.1", + "scripts": { + "dev": "astro dev", + "build": "astro build", + "preview": "astro preview", + "astro": "astro" + }, + "dependencies": { + "@astrojs/tailwind": "^6.0.2", + "astro": "^5.5.5", + "autoprefixer": "^10.4.21", + "pg": "^8.11.11", + "postcss": "^8.5.3", + "tailwindcss": "^3.0.24", + "vite-tsconfig-paths": "^5.1.4" + }, + "devDependencies": { + "@types/pg": "^8.11.11" + } } diff --git a/packages/frontend/src/styles/content.css b/packages/frontend/src/styles/content.css index 74c9bd1..6d23e15 100644 --- a/packages/frontend/src/styles/content.css +++ b/packages/frontend/src/styles/content.css @@ -3,7 +3,7 @@ @tailwind utilities; .content { - @apply text-gray-800 dark:text-zinc-100; + @apply text-gray-800 dark:text-zinc-100; h1, h2, @@ -73,4 +73,4 @@ ol li p { @apply inline; } -} \ No newline at end of file +} diff --git a/packages/frontend/tsconfig.json b/packages/frontend/tsconfig.json index bee52b7..b8575e7 100644 --- a/packages/frontend/tsconfig.json +++ b/packages/frontend/tsconfig.json @@ -1,16 +1,16 @@ { - "extends": "astro/tsconfigs/strict", - "include": [".astro/types.d.ts", "**/*"], - "exclude": ["dist"], - "compilerOptions": { - "baseUrl": ".", - "paths": { - "@components/*": ["src/components/*"], - "@layouts/*": ["src/layouts/*"], - "@utils/*": ["src/utils/*"], - "@assets/*": ["src/assets/*"], + "extends": "astro/tsconfigs/strict", + "include": [".astro/types.d.ts", "**/*"], + "exclude": ["dist"], + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@components/*": ["src/components/*"], + "@layouts/*": ["src/layouts/*"], + "@utils/*": ["src/utils/*"], + "@assets/*": ["src/assets/*"], "@styles": ["src/styles/*"], - "@core/*": ["../core/*"] - } - } + "@core/*": ["../core/*"] + } + } }