wasp/waspc/test/Parser/valid.wasp
Matija Sosic 68155711e8
Implemented FE ACL & updated the examples. (#165)
* Implemented FE ACL & updated the examples.

* PR fixes, fixed tests.
2021-02-01 16:32:07 +01:00

41 lines
737 B
JavaScript

// Test .wasp file.
import something from "@ext/some/file"
// App definition.
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
}
route "/test" -> page TestPage
page TestPage {
component: import Test from "@ext/pages/Test"
}
entity Task {=psl
id Int @id @default(autoincrement())
description String
isDone Boolean @default(false)
psl=}
query myQuery {
fn: import { myJsQuery } from "@ext/some/path"
}
dependencies {=json
"lodash": "^4.17.15"
json=}