dleitee / valid.js

📝 A library for data validation.
MIT License
605 stars 31 forks source link

UMD #15

Closed dleitee closed 9 years ago

dleitee commented 9 years ago
dleitee commented 9 years ago
gulp.task('browserify', () => {
  browserify({
    entries: './src/validate.js',
    transform: [babelify],
    // Generate a UMD bundle for the supplied export name.
    // This bundle works with other module systems and sets the name
    // given as a window global if no module system is found.
    standalone: 'validate',
    // Enable source maps that allow you to debug your files
    // separately.
    debug: true
  })
  .bundle()
  .pipe(source('validate.js'))
  .pipe(buffer())
  .pipe(uglify())
  .pipe(gulp.dest('dist'));
})