diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-10-25 19:41:15 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-10-25 19:41:15 +0100 |
commit | 78e492ca461ccba1ca57eb2362be02280ef232ac (patch) | |
tree | c93a0b737a4da3d8c8bd63285ad541778cb3ba95 /gulpfile.js | |
parent | 4505aeabed26fbcb7bb896f046c65da9e1bd65b1 (diff) | |
download | svg.js-78e492ca461ccba1ca57eb2362be02280ef232ac.tar.gz svg.js-78e492ca461ccba1ca57eb2362be02280ef232ac.zip |
UMD-Wrappper with possibility to add custom window object (#352)
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gulpfile.js b/gulpfile.js index 4c94bdc..bc75bec 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -8,8 +8,7 @@ var del = require('del') , size = require('gulp-size')
, trim = require('gulp-trimlines')
, uglify = require('gulp-uglify')
- , wrapUmd = require('gulp-wrap-umd')
- , wrapper = require('gulp-wrapper')
+ , wrapUmd = require('gulp-wrap')
, request = require('request')
, fs = require('fs')
, pkg = require('./package.json')
@@ -98,10 +97,7 @@ gulp.task('unify', ['clean'], function() { return gulp.src(parts)
.pipe(concat('svg.js', { newLine: '\n' }))
// wrap the whole thing in an immediate function call
- .pipe(wrapUmd({
- namespace: 'SVG',
- exports: 'SVG'
- }))
+ .pipe(wrapUmd({ src: 'src/umd.js'}))
.pipe(header(headerLong, { pkg: pkg }))
.pipe(trim({ leading: false }))
.pipe(chmod(644))
|