diff --git a/gulpfile.js b/gulpfile.js index 1bb5b2c..34d2b2f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,10 +1,26 @@ var gulp = require('gulp'); var typescript = require('gulp-typescript'); +var zip = require('gulp-zip'); var tsProject = typescript.createProject('lib/tsconfig.json', { typescript: require('typescript') }); -gulp.task('default', function() { +gulp.task('scripts', function() { return tsProject.src() .pipe(typescript(tsProject)) .pipe(gulp.dest('dist')); }); + +gulp.task('archive', function() { + return gulp.src([ + 'dist/**/*', + 'fonts/**/*', + '*.md', + 'package.json', + 'main.js', + 'styles/**/*' + ], { base: './' }) + .pipe(zip('Brackets-Icons.zip')) + .pipe(gulp.dest('dist')); +}); + +gulp.task('default', ['zip']); diff --git a/package.json b/package.json index ee8a0f6..213b2c0 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "devDependencies": { "gulp": "^3.9.0", "gulp-typescript": "^2.7.7", + "gulp-zip": "^3.0.2", "typescript": "^1.5.0-beta" } }