mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-26 10:35:04 +03:00
39 lines
675 B
JavaScript
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=}
|