aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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",