Skip to content

Commit

Permalink
Merge pull request #4 from brunojuliao/main
Browse files Browse the repository at this point in the history
Corrigindo problemas e introduzindo workspaces
  • Loading branch information
FabbSantos authored Jul 23, 2024
2 parents 860c947 + d2ff7f5 commit c9db41a
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 5 deletions.
2 changes: 2 additions & 0 deletions backend/deno.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"name": "@fabb/back",
"version": "0.0.1",
"tasks": {
"dev": "deno run --allow-net --allow-env --watch main.ts"
}
Expand Down
1 change: 1 addition & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"workspace": ["./frontend", "./backend"],
"tasks": {
"start:front": "cd frontend && deno run -A npm:astro dev",
"start:back": "deno run --allow-net --watch ./backend/main.ts",
Expand Down
157 changes: 157 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions frontend/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
// import vercel from "@astrojs/vercel/serverless";
import deno from "@deno/astro-adapter";
import vercel from "@astrojs/vercel/serverless";
//import deno from "@deno/astro-adapter";

import vue from "@astrojs/vue";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), vue()],
output: "server",
//adapter: vercel({
adapter: deno({
adapter: vercel({
//adapter: deno({
webAnalytics: {
enabled: true
}
Expand Down
2 changes: 2 additions & 0 deletions frontend/deno.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"name": "@fabb/front",
"version": "0.0.1",
"tasks": {
"dev": "deno run -A npm:astro dev",
"start": "deno run -A --allow-env npm:astro dev"
Expand Down
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"dev": "deno run -A npm:astro dev",
"start": "deno run -A --allow-env npm:astro dev",
"build": "deno run -A npm:astro check && deno run -A npm:astro build",
"build": "astro check && astro build",
"build:deno": "deno run -A npm:astro check && deno run -A npm:astro build",
"preview": "astro preview",
"astro": "astro"
},
Expand Down

0 comments on commit c9db41a

Please sign in to comment.