2020-02-03 10:24:25 +01:00
|
|
|
import { createApp } from "@budibase/client/src/createApp"
|
|
|
|
import components from "./testComponents"
|
|
|
|
import packageJson from "../../package.json"
|
2020-01-27 11:59:56 +01:00
|
|
|
|
2020-02-03 10:24:25 +01:00
|
|
|
export default async () => {
|
|
|
|
delete components._lib
|
2020-01-27 11:59:56 +01:00
|
|
|
|
2020-02-03 10:24:25 +01:00
|
|
|
const componentLibraries = {}
|
|
|
|
componentLibraries[packageJson.name] = components
|
2020-01-27 16:26:38 +01:00
|
|
|
|
2020-02-03 10:24:25 +01:00
|
|
|
const appDef = { hierarchy: {}, actions: {} }
|
|
|
|
const user = { name: "yeo", permissions: [] }
|
2020-01-27 11:59:56 +01:00
|
|
|
|
2020-02-07 21:56:00 +01:00
|
|
|
var app = createApp(window.document, componentLibraries, appDef, user, {})
|
|
|
|
|
2020-02-03 10:24:25 +01:00
|
|
|
return app
|
|
|
|
}
|