client lib tests
This commit is contained in:
parent
0ec47971d0
commit
16ec3719ea
Binary file not shown.
|
@ -29,12 +29,9 @@ export const loadBudibase = async opts => {
|
|||
// let { appRootPath } = frontendDefinition;
|
||||
// appRootPath = appRootPath === "" ? "" : "/" + trimSlash(appRootPatl)
|
||||
|
||||
const componentLibraryModules = {}
|
||||
const componentLibraryModules = opts.componentLibraries || {}
|
||||
|
||||
const libraries = frontendDefinition.libraries || [
|
||||
"@budibase/standard-components",
|
||||
"@budibase/materialdesign-components",
|
||||
]
|
||||
const libraries = frontendDefinition.libraries || []
|
||||
|
||||
for (let library of libraries) {
|
||||
// fetch the JavaScript for the component libraries from the server
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { split, last } from "lodash/fp"
|
||||
import { split, last, compose } from "lodash/fp"
|
||||
import { prepareRenderComponent } from "./prepareRenderComponent"
|
||||
import { isScreenSlot } from "./builtinComponents"
|
||||
import deepEqual from "deep-equal"
|
||||
|
|
Binary file not shown.
|
@ -7,3 +7,4 @@ myapps/
|
|||
!/builder/nano.min.css
|
||||
public/
|
||||
db/dev.db/
|
||||
dist
|
||||
|
|
|
@ -4,7 +4,7 @@ const router = require("./api")
|
|||
const koaBody = require("koa-body")
|
||||
const app = new Koa()
|
||||
|
||||
module.exports = async () => {
|
||||
module.exports = () => {
|
||||
app.keys = Object.keys(process.env)
|
||||
.filter(k => k.startsWith("COOKIE_KEY_"))
|
||||
.map(k => process.env[k])
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,11 @@
|
|||
const { app, BrowserWindow } = require('electron');
|
||||
|
||||
require("dotenv").config()
|
||||
|
||||
function createWindow() {
|
||||
app.server = require("./app")();
|
||||
let win = new BrowserWindow({ width: 1920, height: 1080 });
|
||||
win.loadURL('http://localhost:4001');
|
||||
}
|
||||
|
||||
app.whenReady().then(createWindow)
|
|
@ -7,10 +7,10 @@
|
|||
"test": "jest apps && jest builder",
|
||||
"test:integration": "jest neo --runInBand",
|
||||
"test:watch": "jest -w",
|
||||
"build": "",
|
||||
"initialise": "node ../cli/bin/budi init ./myapps -b local -q",
|
||||
"budi": "node ../cli/bin/budi",
|
||||
"dev:builder": "nodemon index"
|
||||
"dev:builder": "nodemon index",
|
||||
"electron": "electron electron.js"
|
||||
},
|
||||
"keywords": [
|
||||
"budibase"
|
||||
|
@ -44,6 +44,8 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/test-sequencer": "^24.8.0",
|
||||
"electron": "^8.2.5",
|
||||
"electron-builder": "^22.6.0",
|
||||
"jest": "^24.8.0",
|
||||
"nodemon": "^2.0.2",
|
||||
"server-destroy": "^1.0.1",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue