Skip to content

Commit

Permalink
New gulp build script (Issue #107)
Browse files Browse the repository at this point in the history
  • Loading branch information
GitBrent authored and GitBrent committed Jun 22, 2017
1 parent 9dd09a0 commit 66e9d6c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var gulp = require('gulp'),
concat = require('gulp-concat'),
sourcemaps = require('gulp-sourcemaps'),
ignore = require('gulp-ignore'),
uglify = require('gulp-uglify');

gulp.task('build', function () {
gulp.src(['libs/*', 'dist/pptxgen.js'])
.pipe(concat('pptxgen.bundle.js'))
.pipe(sourcemaps.init())
.pipe(ignore.exclude(["**/*.map"]))
.pipe(uglify())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('dist/'));
});

0 comments on commit 66e9d6c

Please sign in to comment.