Skip to content

Instantly share code, notes, and snippets.

@yoppi
Last active August 26, 2015 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoppi/08d1197b69c3129fe3a5 to your computer and use it in GitHub Desktop.
Save yoppi/08d1197b69c3129fe3a5 to your computer and use it in GitHub Desktop.
AWS lambda甩のnodeスクリプトをビルドするやつ、の比較
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)
}
});
});
build: copy.js deps
zip -r copy.zip copy.js node_modules > /dev/null 2>&1
deps:
npm install
.PHONY: zip deps
@yoppi
Copy link
Author

yoppi commented Aug 26, 2015

郷に入れば郷に従え、とおもってgulpかいてみたけど、圧倒的にmakeかわいいやん

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment