aboutsummaryrefslogtreecommitdiffstats
path: root/development
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-01 13:53:52 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-01 13:59:28 +0800
commitd1545245c29dea3beedb0ea1c8daadf5b2c2d93c (patch)
tree8c8b608de249963e87d8782a85cddea917f7b37b /development
parent9a46988ea8983e963b532618a05788d9772947a4 (diff)
downloadtangerine-wallet-browser-d1545245c29dea3beedb0ea1c8daadf5b2c2d93c.tar.gz
tangerine-wallet-browser-d1545245c29dea3beedb0ea1c8daadf5b2c2d93c.tar.zst
tangerine-wallet-browser-d1545245c29dea3beedb0ea1c8daadf5b2c2d93c.zip
Clean up beefy usage
Now properly uses brfs transform so it can reload on state object changes.
Diffstat (limited to 'development')
-rw-r--r--development/beefy.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/development/beefy.js b/development/beefy.js
index 0ed40f177..9eff94320 100644
--- a/development/beefy.js
+++ b/development/beefy.js
@@ -2,28 +2,18 @@ const beefy = require('beefy')
const http = require('http')
const fs = require('fs')
const path = require('path')
-const states = require('./states')
-
-const statesPath = path.join(__dirname, 'states.js')
-const statesJson = JSON.stringify(states)
-fs.writeFileSync(statesPath, statesJson)
const port = 8124
const handler = beefy({
- entries: ['mocker.js']
+ entries: {'mocker.js': 'bundle.js'}
, cwd: __dirname
, live: true
+ , open: true
, quiet: false
, bundlerFlags: ['-t', 'brfs']
})
-console.dir(handler)
http.createServer(handler).listen(port)
console.log(`Now listening on port ${port}`)
-
-function on404(req, resp) {
- resp.writeHead(404, {})
- resp.end('sorry folks!')
-}