aboutsummaryrefslogtreecommitdiffstats
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
parent9a46988ea8983e963b532618a05788d9772947a4 (diff)
downloadtangerine-wallet-browser-d1545245c29dea3beedb0ea1c8daadf5b2c2d93c.tar
tangerine-wallet-browser-d1545245c29dea3beedb0ea1c8daadf5b2c2d93c.tar.gz
tangerine-wallet-browser-d1545245c29dea3beedb0ea1c8daadf5b2c2d93c.tar.bz2
tangerine-wallet-browser-d1545245c29dea3beedb0ea1c8daadf5b2c2d93c.tar.lz
tangerine-wallet-browser-d1545245c29dea3beedb0ea1c8daadf5b2c2d93c.tar.xz
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.
-rw-r--r--development/beefy.js14
-rw-r--r--package.json4
2 files changed, 3 insertions, 15 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!')
-}
diff --git a/package.json b/package.json
index f46d41431..aa2622903 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"start": "gulp dev",
"test": "mocha --require test/helper.js --compilers js:babel-register --recursive",
"watch": "mocha watch --compilers js:babel-register --recursive",
- "ui": "cd development && node genStates.js && beefy mocker.js:bundle.js --live --open"
+ "ui": "cd development && beefy mocker.js:bundle.js --live --open"
},
"browserify": {
"transform": [
@@ -24,8 +24,6 @@
},
"dependencies": {
"async": "^1.5.2",
- "babel-preset-es2015": "^6.9.0",
- "babel-register": "^6.9.0",
"browserify-derequire": "^0.9.4",
"clone": "^1.0.2",
"copy-to-clipboard": "^2.0.0",