wasp/waspc/test/Parser/valid.wasp

41 lines
737 B
JavaScript
Raw Normal View History

2019-04-19 16:22:14 +03:00
// Test .wasp file.
import something from "@ext/some/file"
// App definition.
2019-04-19 16:22:14 +03:00
app test_app {
// Title of the app.
title: "Hello World!"
}
auth {
onAuthFailedRedirectTo: "/test",
userEntity: User,
methods: [ EmailAndPassword ]
}
route "/" -> page Landing
page Landing {
component: import Landing from "@ext/pages/Landing",
authRequired: false
2019-05-31 20:35:50 +03:00
}
route "/test" -> page TestPage
2019-05-31 20:35:50 +03:00
page TestPage {
component: import Test from "@ext/pages/Test"
}
2019-05-09 23:05:59 +03:00
2020-10-21 17:37:20 +03:00
entity Task {=psl
id Int @id @default(autoincrement())
description String
isDone Boolean @default(false)
psl=}
2020-08-25 16:08:02 +03:00
query myQuery {
fn: import { myJsQuery } from "@ext/some/path"
}
dependencies {=json
"lodash": "^4.17.15"
json=}