Skip to content

Commit

Permalink
Hack in a final build step which works but is awful
Browse files Browse the repository at this point in the history
maackle committed Aug 18, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 790ced8 commit c77e063
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions bin/bundle-dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rm electron/dist/*

pulp build -O -I src --to electron/dist/ui.js -m App.UI.Main \
&& pulp build -O -I src --to electron/dist/db.js -m App.DB.Main \
&& echo "module.exports = {main: PS['App.UI.Main'].main};" >> "electron/dist/ui.js" \
&& echo "module.exports = {ssbIgoPlugin: PS['App.DB.Main'].ssbIgoPlugin};" >> "electron/dist/db.js"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
"scripts": {
"build": "pulp build",
"links": "rm electron/dist/*; ln -s ../../output/App.UI.Main electron/dist/ui.js && ln -s ../../output/App.DB.Main electron/dist/db.js",
"bundle": "rm electron/dist/*; pulp build -O -I src --to electron/dist/ui.js -m App.UI.Main && pulp build -O -I src --to electron/dist/db.js -m App.DB.Main && echo \"Auto bundling done. Don't forget to manually add module.exports to db.js\"",
"bundle": "bin/bundle-dist",
"dev": "concurrently --raw --kill-others \"bin/watch-es6.sh\" \"sass --watch electron/style:electron/build\"",
"electron": "electron ./electron/main.js",
"sbot": "node bin/start-sbot.js",
2 changes: 1 addition & 1 deletion src/App/DB/Main.purs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module App.DB.Main where
module App.DB.Main (main, ssbIgoPlugin) where

import Prelude

2 changes: 1 addition & 1 deletion src/App/UI/Main.purs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module App.UI.Main where
module App.UI.Main (main) where

import Prelude

0 comments on commit c77e063

Please sign in to comment.