Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "bankai", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "DIY development server", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ # bankai [![stability][0]][1] | ||
const sheetify = require('sheetify/stream') | ||
const serverRouter = require('wayfarer') | ||
const wayfarer = require('wayfarer') | ||
const browserify = require('browserify') | ||
@@ -23,14 +23,15 @@ const bankai = require('bankai') | ||
const router = serverRouter() | ||
const router = wayfarer() | ||
http.createServer(function (req, res) { | ||
router(req, res).pipe(res) | ||
router(req.url)(req, res).pipe(res) | ||
}).listen(1337) | ||
const html = bankai.html() | ||
router.on('/', () => html) | ||
const js = bankai.js(browserify, '/src/index.js', { transform: 'babelify' }) | ||
router.on('/bundle.js', () => js) | ||
const css = bankai.css(sheetify, '/src/index.css') | ||
const html = bankai.html() | ||
router('/bundle.css', css) | ||
router('/bundle.js', js) | ||
router('/', html) | ||
router.on('/bundle.css', () => css) | ||
``` | ||
@@ -37,0 +38,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6772
71