git ssb

16+

Dominic / patchbay



Commit eb1bf411f8e11e62f4f6bee304d9134cb1785194

replace npm run dev with "lite"

mixmix committed on 5/16/2019, 11:10:37 PM
Parent: b52476e6fc5bba6d67786b4b0ee5e4bc4a7c4136

Files changed

package.jsonchanged
ui.jschanged
lite.jsadded
package.jsonView
@@ -6,10 +6,10 @@
66 "scripts": {
77 "postinstall": "npm run rebuild",
88 "rebuild": "electron-builder install-app-deps",
99 "start": "electron index.js -- --title patchbay",
10- "dev": "echo 'run your own sbot!' && electro ui.js -- --title patchbay --icon ./assets/icon.png",
1110 "start-frameless": "FRAME=false npm start",
11+ "lite": "echo 'run your own sbot!' && electro lite.js -- --title patchbay --icon ./node_module/ssb-ahoy/electron/assets/icon.png",
1212 "dist": "electron-builder",
1313 "test": "standard",
1414 "lint": "standard --fix"
1515 },
@@ -137,12 +137,20 @@
137137 "linux": {
138138 "category": "Network",
139139 "target": "AppImage"
140140 },
141+ "appImage": {
142+ "artifactName": "${name}-Linux-${version}-${arch}.${ext}"
143+ },
141144 "dmg": {
145+ "artifactName": "${name}-Mac-${version}.${ext}",
142146 "icon": "build/dmg-icon.icns"
143147 },
144148 "win": {
145149 "publisherName": "Secure Scuttlebutt Consortium"
150+ },
151+ "nsis": {
152+ "artifactName": "${name}-Windows-${version}.${ext}",
153+ "installerIcon": "build/setup-icon.ico"
146154 }
147155 }
148156 }
ui.jsView
@@ -4,9 +4,11 @@
44 const values = require('lodash/values')
55
66 const { patchcore, patchbay, plugins, configModule } = require('./exports')
77
8-function Start (config = {}) {
8+function Start (config) {
9+ if (!config) throw new Error('patchbay/ui.js needs to be provided with a valid server config')
10+
911 // polyfills
1012 require('setimmediate')
1113
1214 const sockets = combine(
lite.jsView
@@ -1,0 +1,8 @@
1+// this is for `npm run lite`
2+
3+const Config = require('ssb-config/inject')
4+const Start = require('./ui.js')
5+
6+const config = Config(process.env.ssb_appname || 'ssb')
7+
8+Start(config)

Built with git-ssb-web