Commit 5134829b authored by Arve Knudsen's avatar Arve Knudsen Committed by Renée Kooi
Browse files

Upgrade standard (#464)

parent 56abac71
......@@ -60,18 +60,18 @@ var CONFIG_USAGE = `
${clr('Configuration', 'bold')}
Bankai is built on top of compilers for scripts, styles and documents.
Each of them can be configured by adding a field to your project's
Bankai is built on top of compilers for scripts, styles and documents.
Each of them can be configured by adding a field to your project's
package.json file.
These three fields are, respectively: ${clr('"browserify"', 'cyan')}, ${clr('"sheetify"', 'cyan')} and
These three fields are, respectively: ${clr('"browserify"', 'cyan')}, ${clr('"sheetify"', 'cyan')} and
${clr('"documentify"', 'cyan')}. Each one should have a configuration object as it's value.
There is currently one possible configuration field: "transform".
It can be one of either:
1. An array of transform names.
1. An array of transform names.
ie: ${clr('[ "vueify" ]', 'cyan')}
2. An array of tuples transform name + configuration object.
ie: ${clr('[[ "vueify", { "sass": { "includePaths": [ "src/assets/css" ] } } ]]', 'cyan')}
......@@ -152,8 +152,8 @@ function alternateBuffer () {
var esc = Buffer.from([0x1B])
process.stdout.write('\x1b[?1049h') // Enter alternate buffer.
process.stdout.write('\x1b[H') // Reset screen to top.
process.stdout.write('\x1b[?25l') // Hide cursor
process.stdout.write('\x1b[H') // Reset screen to top.
process.stdout.write('\x1b[?25l') // Hide cursor
process.on('unhandledRejection', onexit)
process.on('uncaughtException', onexit)
......@@ -169,8 +169,8 @@ function alternateBuffer () {
}
function onexit (statusCode) {
process.stdout.write('\x1b[?1049l') // Enter to main buffer.
process.stdout.write('\x1b[?25h') // Restore cursor
process.stdout.write('\x1b[?1049l') // Enter to main buffer.
process.stdout.write('\x1b[?25h') // Restore cursor
if (statusCode instanceof Error) {
console.error('A critical error occured, forcing Bankai to abort:\n')
......
......@@ -42,8 +42,8 @@ function Bankai (entry, opts) {
// Initialize data structures.
var key = Buffer.from('be intolerant of intolerance')
this.dirname = utils.dirname(entry) // The base directory.
this.queue = queue(methods) // The queue caches requests until ready.
this.graph = graph(key) // The graph manages relations between deps.
this.queue = queue(methods) // The queue caches requests until ready.
this.graph = graph(key) // The graph manages relations between deps.
// Detect when we're ready to allow requests to go through.
this.graph.on('change', function (nodeName, edgeName, state) {
......
......@@ -44,9 +44,9 @@ function createDevServer (connectionHandler) {
httpServer.keepAliveTimeout = 0
httpServer.timeout = 0
})
.catch(function (err) {
throw err
})
.catch(function (err) {
throw err
})
}
function onHttpListen () {
......@@ -65,9 +65,9 @@ function createDevServer (connectionHandler) {
if (onlisten) onlisten()
})
})
.catch(function (err) {
throw err
})
.catch(function (err) {
throw err
})
})
}
}
......
......@@ -28,8 +28,8 @@ function Tracker () {
Tracker.prototype = Object.create(EventEmitter.prototype)
Tracker.prototype.start = function (basedir, dirnames, opts) {
var list = [] // Initial list all files between all directories.
var count = 0 // Amount of items done so far.
var list = [] // Initial list all files between all directories.
var count = 0 // Amount of items done so far.
opts = opts || {}
var watch = opts.watch === undefined ? false : opts.watch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment