mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-06-06 07:35:42 +02:00
Changes: * Fixed gulpfile.js formatting * Fixed package.json and made it lighter * Made index.js and WumpRequest.js lighter * Made example lighter * Fixed grammar issue in WumpRequest.js * Fixed spacing issue in test * Improved README.md and made it lighter
17 lines
430 B
JavaScript
17 lines
430 B
JavaScript
const gulp = require('gulp');
|
|
const minify = require('gulp-minify');
|
|
const concat = require('gulp-concat');
|
|
|
|
gulp.task('build:node', () => {
|
|
return gulp
|
|
.src('dist/wumpfetch.concat.js')
|
|
.pipe(minify({ noSource: true, ext: { min: '.min.js' } }))
|
|
.pipe(gulp.dest('dist'));
|
|
});
|
|
|
|
gulp.task('concat', () => {
|
|
return gulp
|
|
.src('lib/**/*.js')
|
|
.pipe(concat('wumpfetch.concat.js'))
|
|
.pipe(gulp.dest('dist'));
|
|
}); |