Last active
August 26, 2015 08:49
-
-
Save yoppi/08d1197b69c3129fe3a5 to your computer and use it in GitHub Desktop.
AWS lambda甩のnodeスクリプトをビルドするやつ、の比較
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
var gulp = require('gulp'), | |
exec = require('child_process').exec; | |
gulp.task('zip', function() { | |
exec('zip -r copy.zip copy.js node_modules', {maxBuffer: 1024 * 1000}, function(err, stdout, stderr) { | |
if (err) { | |
console.log(err) | |
} | |
}); | |
}); |
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
build: copy.js deps | |
zip -r copy.zip copy.js node_modules > /dev/null 2>&1 | |
deps: | |
npm install | |
.PHONY: zip deps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
郷に入れば郷に従え、とおもってgulpかいてみたけど、圧倒的にmakeかわいいやん