Include bower.json & package.json in builds

This commit is contained in:
Addy Osmani 2015-06-29 18:59:53 +01:00
parent 8aa417b5b1
commit c390ba04a5

View File

@ -465,14 +465,14 @@ gulp.task('serve', ['default'], function() {
// Generate release archive containing just JS, CSS, Source Map deps
gulp.task('zip:mdl', function() {
gulp.src(['dist/material.*@(js|css)?(.map)', 'LICENSE'])
gulp.src(['dist/material.*@(js|css)?(.map)', 'LICENSE', 'bower.json', 'package.json'])
.pipe($.zip('mdl.zip'))
.pipe(gulp.dest('dist'));
});
// Generate release archive containing the library, templates and site
gulp.task('zip:site', function() {
gulp.src(['dist/**/*', 'LICENSE'])
gulp.src(['dist/**/*', 'LICENSE', 'bower.json', 'package.json'])
.pipe($.zip('mdl-all.zip'))
.pipe(gulp.dest('dist'));
});