Improved package Makefile

This commit is contained in:
Igor Zhukov 2014-06-05 23:56:40 +04:00
parent 9d9732bb47
commit d6bfb9d7c7
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@
node_modules
npm-debug.log
dist
dist_package
releases
webogram*.zip
app/js/templates.js

View File

@ -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