Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4ddf45b

Browse files
author
Benjamin Coe
committed
get tests running on travis
1 parent6fc4cee commit4ddf45b

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

‎.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
src
3+
.nyc_output
4+
node_modules

‎package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"yarsay",
3-
"version":"1.0.0",
3+
"version":"1.0.4",
44
"description":"Tell Pirate Joe what to say",
55
"main":"lib/yarsay.js",
66
"bin":"lib/cli.js",
@@ -27,7 +27,7 @@
2727
"chai":"^3.4.1",
2828
"coveralls":"^2.11.4",
2929
"mocha":"^2.3.4",
30-
"nyc":"^4.0.0-alpha",
30+
"nyc":"^4.0.0",
3131
"standard":"^5.4.1"
3232
},
3333
"dependencies": {

‎src/cli.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
if(typeofGLOBAL.Promise==='undefined')GLOBAL.Promise=require('bluebird')
24

35
varYarsay=require('./yarsay')

‎src/yarsay.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
varchalk=require('chalk')
22
varfs=require('fs')
3+
varpath=require('path')
34
varws=require('window-size')
45
varui=require('cliui')({
56
width:Math.min(ws.width||60,60)
67
})
78

89
classYarsay{
910
constructor(msg="maybe if we ask nicely, they'll just give us their riffiwobbles!"+chalk.bold(' --Pirate Joe, the eternal optimist...')){
10-
varjoe=fs.readFileSync('./joe.txt','utf-8')
11+
varjoe=fs.readFileSync(path.resolve(__dirname,'../joe.txt'),'utf-8')
1112

1213
// the layout engine treats Joe as one
1314
// giant pirate-shaped word.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp