wasp/waspc/test/Parser/valid.wasp
2020-10-21 17:41:04 +02:00

39 lines
675 B
JavaScript

// Test .wasp file.
import something from "@ext/some/file"
// App definition.
app test_app {
// Title of the app.
title: "Hello World!"
}
auth {
userEntity: User,
methods: [ EmailAndPassword ]
}
route "/" -> page Landing
page Landing {
component: import Landing from "@ext/pages/Landing"
}
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=}