mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-06-06 07:35:42 +02:00
Here's what I did and why I did it: * Remove README.md information about why use Wumpfetch - Users already know it's light from the start and from package phobia, no point adding extra unneeded information. * Made gulpfile.js lighter - Made it like the other files * Edit LICENSE - There was an unneeded gap * Index.js modifications - No longer does it hard code the package name and URL, making life easier for people forking it or using it in business. Also changed request to req to make it lighter! * .gitignore edit - Removed unneeded "/" * WumpRequest.js Improvements - Package name and URL are also no longer hard coded here, renamed consts to decrease file size. Now under 10kb!
17 lines
389 B
JavaScript
17 lines
389 B
JavaScript
const g = require('gulp');
|
|
const m = require('gulp-minify');
|
|
const c = require('gulp-concat');
|
|
|
|
g.task('build:node', () => {
|
|
return g
|
|
.src('dist/wumpfetch.concat.js')
|
|
.pipe(m({ noSource: true, ext: { min: '.min.js' } }))
|
|
.pipe(g.dest('dist'));
|
|
});
|
|
|
|
g.task('concat', () => {
|
|
return g
|
|
.src('lib/**/*.js')
|
|
.pipe(c('wumpfetch.concat.js'))
|
|
.pipe(g.dest('dist'));
|
|
}); |