`:wMerge branch 'bug/add-init' of github.com:Budibase/budibase into feature/remove-multitenancy
This commit is contained in:
commit
91d9f44aeb
|
@ -32,7 +32,8 @@
|
||||||
"build:electron": "electron-builder --dir",
|
"build:electron": "electron-builder --dir",
|
||||||
"publish:electron": "electron-builder -mwl --publish always",
|
"publish:electron": "electron-builder -mwl --publish always",
|
||||||
"postinstall": "electron-builder install-app-deps",
|
"postinstall": "electron-builder install-app-deps",
|
||||||
"lint": "eslint --fix src/"
|
"lint": "eslint --fix src/",
|
||||||
|
"initialise": "node scripts/initialise.js"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"budibase"
|
"budibase"
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
const { join } = require("path")
|
||||||
|
const { homedir } = require("os")
|
||||||
|
|
||||||
|
const initialiseBudibase = require("../src/utilities/initialiseBudibase")
|
||||||
|
const DIRECTORY = "~/.budibase"
|
||||||
|
|
||||||
|
function run() {
|
||||||
|
let opts = {}
|
||||||
|
let dir = DIRECTORY
|
||||||
|
opts.quiet = true
|
||||||
|
opts.dir = dir.startsWith("~") ? join(homedir(), dir.substring(1)) : dir
|
||||||
|
return initialiseBudibase(opts)
|
||||||
|
}
|
||||||
|
|
||||||
|
run().then(() => {
|
||||||
|
console.log("Init complete.")
|
||||||
|
})
|
Loading…
Reference in New Issue