Skip to content

Commit

Permalink
Add a gulp task to create .zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
ivogabe committed Jul 20, 2015
1 parent 9229922 commit a09e7db
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -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']);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"devDependencies": {
"gulp": "^3.9.0",
"gulp-typescript": "^2.7.7",
"gulp-zip": "^3.0.2",
"typescript": "^1.5.0-beta"
}
}

0 comments on commit a09e7db

Please sign in to comment.