Skip to content

Commit

Permalink
Migrating Waspleau to 0.12
Browse files Browse the repository at this point in the history
Signed-off-by: Mihovil Ilakovac <[email protected]>
  • Loading branch information
infomiho committed Feb 27, 2024
1 parent 139d6a0 commit 6ab6909
Show file tree
Hide file tree
Showing 23 changed files with 6,719 additions and 107 deletions.
15 changes: 14 additions & 1 deletion examples/waspleau/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
.wasp/
node_modules/
**/.DS_Store

# We ignore env files recognized and used by Wasp.
.env.server
.env.client

# To be extra safe, we by default ignore any files with `.env` extension in them.
# If this is too agressive for you, consider allowing specific files with `!` operator,
# or modify/delete these two lines.
*.env
*.env.*
/.wasp/
/.env.server
/.env.client
.DS_Store
.DS_Store
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Ignore editor tmp files
**/*~
**/#*#
.DS_Store
18 changes: 7 additions & 11 deletions examples/waspleau/main.wasp
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
app waspleau {
wasp: {
version: "^0.11.0"
version: "^0.12.0"
},

title: "Waspleau",

server: {
setupFn: import serverSetup from "@server/serverSetup.js"
setupFn: import serverSetup from "@src/serverSetup"
},

db: { system: PostgreSQL },

dependencies: [
("axios", "^1.4.0")
]
db: { system: PostgreSQL }
}

job github {
executor: PgBoss,
perform: {
fn: import { workerFunction } from "@server/workers/github.js"
fn: import { workerFunction } from "@src/workers/github"
},
schedule: {
cron: "*/10 * * * *"
Expand All @@ -30,7 +26,7 @@ job github {
job loadTime {
executor: PgBoss,
perform: {
fn: import { workerFunction } from "@server/workers/loadTime.js"
fn: import { workerFunction } from "@src/workers/loadTime"
},
schedule: {
cron: "*/5 * * * *",
Expand All @@ -51,10 +47,10 @@ psl=}

route RootsRoute { path: "/", to: MainPage }
page MainPage {
component: import Main from "@client/MainPage.jsx"
component: import Main from "@src/MainPage"
}

query dashboard {
fn: import { refreshDashboardData } from "@server/dashboard.js",
fn: import { refreshDashboardData } from "@src/dashboard",
entities: [Datum]
}
Loading

0 comments on commit 6ab6909

Please sign in to comment.