From d6bfb9d7c7343cc4a65fab67b141c8c12f9673a2 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 5 Jun 2014 23:56:40 +0400 Subject: [PATCH] Improved package Makefile --- .gitignore | 1 + Makefile | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ec388491..4fc53db5 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ node_modules npm-debug.log dist +dist_package releases webogram*.zip app/js/templates.js \ No newline at end of file diff --git a/Makefile b/Makefile index 562b50aa..57ff674e 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ package: ./node_modules/gulp/bin/gulp.js clean ./node_modules/gulp/bin/gulp.js package - find dist | grep "DS_Store" | xargs rm -rf - cd dist && zip -r ../releases/webogram_v$(version).zip . + cp -r dist dist_package + find dist_package | grep "\.git\|DS_Store" | xargs rm -rf + cd dist_package && zip -r ../releases/webogram_v$(version).zip . publish: ./node_modules/gulp/bin/gulp.js clean