This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env node | |
var exec = require('child_process').exec, | |
fs = require('fs'), | |
path = require('path'), | |
here = process.cwd(); | |
(function (bin_name) { | |
var resolve = path.resolve, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global http.proxy http://myproxy:8080 | |
git config --global https.proxy https://myproxy:8080 | |
npm config set proxy http://myproxy:8080 | |
npm config set https-proxy https://myproxy:8080 | |
npm config set registry http://registry.npmjs.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/** | |
* Version up this package. | |
*/ | |
"use strict"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doSomething('foo') | |
doSomething('foo','bar') | |
doSomething('foo','bar', 'baz'); | |
doSomething('foo','bar', {verbose:true}); | |
doSomething('foo','bar', function done(){/*...*/}) | |
doSomething('foo','bar', {verbose:true}, function done(){/*...*/}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bower install jquery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"TITLE": "オクニシタカドットコム", | |
"WELCOME_MESSAGE": "オクニシタカドットコムへようこそ" | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"dependencies":{ | |
"async":"*", | |
"glob":"latest" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cp src/*.html dest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// nodeunitのテストケース | |
exports.setUp = function(done){ | |
// console.logを何もしない関数と置き換える | |
console.log = function noop() { | |
} | |
done(); | |
}; |
OlderNewer