Fixed package zip, CSP

This commit is contained in:
Igor Zhukov 2014-03-22 12:56:32 +03:00
parent 6aafa9266b
commit 4cf02d4184

View File

@ -63,7 +63,7 @@ gulp.task('copy', function() {
}); });
gulp.task('compress-dist', ['add-csp'], function() { gulp.task('compress-dist', ['add-csp'], function() {
return gulp.src('dist/**/*') return gulp.src('./**/*' , {cwd: process.cwd() + '/dist'})
.pipe($.zip('webogram_v' + pj.version + '.zip')) .pipe($.zip('webogram_v' + pj.version + '.zip'))
.pipe(gulp.dest('releases')); .pipe(gulp.dest('releases'));
}); });
@ -74,7 +74,7 @@ gulp.task('cleanup-dist', ['compress-dist'], function() {
gulp.task('add-csp', ['build'], function() { gulp.task('add-csp', ['build'], function() {
return gulp.src('dist/index.html') return gulp.src('dist/index.html')
.pipe($.replace('<html lang=en ng-app=myApp>', '<html lang=en ng-app=myApp ng-csp="">')) .pipe($.replace(/<html(.*?)>/, '<html$1 ng-csp="">'))
.pipe(gulp.dest('dist')); .pipe(gulp.dest('dist'));
}); });