diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-07-01 12:20:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 12:20:40 +0800 |
commit | d4e400e5e5a7ba501f210b722f6ccf97be9e6c17 (patch) | |
tree | 85b9c12d88db37dd586a50c9ebfdebc5d980da1e /development/beefy.js | |
parent | 70cf24617bf6adabf5ba012ba1af261df6e79fb3 (diff) | |
parent | 0f16155abfbe3b45677503846aa04cb5c7ef47bf (diff) | |
download | tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.gz tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.bz2 tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.lz tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.xz tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.zst tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.zip |
Merge pull request #378 from MetaMask/UiDev
Ui dev
Diffstat (limited to 'development/beefy.js')
-rw-r--r-- | development/beefy.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/development/beefy.js b/development/beefy.js new file mode 100644 index 000000000..0ed40f177 --- /dev/null +++ b/development/beefy.js @@ -0,0 +1,29 @@ +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'] + , cwd: __dirname + , live: 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!') +} |