Skip to content

Commit 5134829

Browse files
aknuds1goto-bus-stop
authored andcommitted
Upgrade standard (#464)
1 parent 56abac7 commit 5134829

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

bin.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ var CONFIG_USAGE = `
6060
${clr('Configuration', 'bold')}
6161
6262
63-
Bankai is built on top of compilers for scripts, styles and documents.
64-
Each of them can be configured by adding a field to your project's
63+
Bankai is built on top of compilers for scripts, styles and documents.
64+
Each of them can be configured by adding a field to your project's
6565
package.json file.
6666
67-
These three fields are, respectively: ${clr('"browserify"', 'cyan')}, ${clr('"sheetify"', 'cyan')} and
67+
These three fields are, respectively: ${clr('"browserify"', 'cyan')}, ${clr('"sheetify"', 'cyan')} and
6868
${clr('"documentify"', 'cyan')}. Each one should have a configuration object as it's value.
6969
7070
There is currently one possible configuration field: "transform".
7171
7272
It can be one of either:
7373
74-
1. An array of transform names.
74+
1. An array of transform names.
7575
ie: ${clr('[ "vueify" ]', 'cyan')}
7676
2. An array of tuples transform name + configuration object.
7777
ie: ${clr('[[ "vueify", { "sass": { "includePaths": [ "src/assets/css" ] } } ]]', 'cyan')}
@@ -152,8 +152,8 @@ function alternateBuffer () {
152152
var esc = Buffer.from([0x1B])
153153

154154
process.stdout.write('\x1b[?1049h') // Enter alternate buffer.
155-
process.stdout.write('\x1b[H') // Reset screen to top.
156-
process.stdout.write('\x1b[?25l') // Hide cursor
155+
process.stdout.write('\x1b[H') // Reset screen to top.
156+
process.stdout.write('\x1b[?25l') // Hide cursor
157157

158158
process.on('unhandledRejection', onexit)
159159
process.on('uncaughtException', onexit)
@@ -169,8 +169,8 @@ function alternateBuffer () {
169169
}
170170

171171
function onexit (statusCode) {
172-
process.stdout.write('\x1b[?1049l') // Enter to main buffer.
173-
process.stdout.write('\x1b[?25h') // Restore cursor
172+
process.stdout.write('\x1b[?1049l') // Enter to main buffer.
173+
process.stdout.write('\x1b[?25h') // Restore cursor
174174

175175
if (statusCode instanceof Error) {
176176
console.error('A critical error occured, forcing Bankai to abort:\n')

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ function Bankai (entry, opts) {
4242
// Initialize data structures.
4343
var key = Buffer.from('be intolerant of intolerance')
4444
this.dirname = utils.dirname(entry) // The base directory.
45-
this.queue = queue(methods) // The queue caches requests until ready.
46-
this.graph = graph(key) // The graph manages relations between deps.
45+
this.queue = queue(methods) // The queue caches requests until ready.
46+
this.graph = graph(key) // The graph manages relations between deps.
4747

4848
// Detect when we're ready to allow requests to go through.
4949
this.graph.on('change', function (nodeName, edgeName, state) {

lib/http-server.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ function createDevServer (connectionHandler) {
4444
httpServer.keepAliveTimeout = 0
4545
httpServer.timeout = 0
4646
})
47-
.catch(function (err) {
48-
throw err
49-
})
47+
.catch(function (err) {
48+
throw err
49+
})
5050
}
5151

5252
function onHttpListen () {
@@ -65,9 +65,9 @@ function createDevServer (connectionHandler) {
6565
if (onlisten) onlisten()
6666
})
6767
})
68-
.catch(function (err) {
69-
throw err
70-
})
68+
.catch(function (err) {
69+
throw err
70+
})
7171
})
7272
}
7373
}

lib/track-dir.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function Tracker () {
2828
Tracker.prototype = Object.create(EventEmitter.prototype)
2929

3030
Tracker.prototype.start = function (basedir, dirnames, opts) {
31-
var list = [] // Initial list all files between all directories.
32-
var count = 0 // Amount of items done so far.
31+
var list = [] // Initial list all files between all directories.
32+
var count = 0 // Amount of items done so far.
3333
opts = opts || {}
3434
var watch = opts.watch === undefined ? false : opts.watch
3535

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"choo-devtools": "^2.3.3",
8989
"choo-service-worker": "^2.4.0",
9090
"rimraf": "^2.6.2",
91-
"standard": "^10.0.3",
91+
"standard": "^11.0",
9292
"tachyons": "^4.9.1",
9393
"tape": "^4.8.0"
9494
}

0 commit comments

Comments
 (0)