mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Merge branch 'master' into sieveparser
This commit is contained in:
commit
d1f9249ac1
8 changed files with 636 additions and 752 deletions
|
|
@ -6,14 +6,11 @@ const concat = require('gulp-concat-util'),
|
|||
rename = require('gulp-rename'),
|
||||
replace = require('gulp-replace'),
|
||||
terser = require('gulp-terser'),
|
||||
plumber = require('gulp-plumber'),
|
||||
gulpif = require('gulp-if'),
|
||||
eol = require('gulp-eol'),
|
||||
eslint = require('gulp-eslint'),
|
||||
cache = require('gulp-cached'),
|
||||
expect = require('gulp-expect-file'),
|
||||
size = require('gulp-size'),
|
||||
sourcemaps = require('gulp-sourcemaps'),
|
||||
gutil = require('gulp-util');
|
||||
|
||||
const { config } = require('./config');
|
||||
|
|
@ -86,7 +83,6 @@ const jsMin = () =>
|
|||
showTotal: false
|
||||
})
|
||||
)
|
||||
.pipe(gulpif(config.source, sourcemaps.init({ loadMaps: true })))
|
||||
.pipe(replace(/"snappymail\/v\/([^/]+)\/static\/js\/"/g, '"snappymail/v/$1/static/js/min/"'))
|
||||
.pipe(rename({ suffix: '.min' }))
|
||||
.pipe(
|
||||
|
|
@ -111,7 +107,6 @@ const jsMin = () =>
|
|||
})
|
||||
)
|
||||
.pipe(eol('\n', true))
|
||||
.pipe(gulpif(config.source, sourcemaps.write('./')))
|
||||
.pipe(
|
||||
size({
|
||||
showFiles: true,
|
||||
|
|
@ -126,7 +121,6 @@ const jsLint = () =>
|
|||
.src(config.paths.globjs)
|
||||
.pipe(cache('eslint'))
|
||||
.pipe(eslint())
|
||||
.pipe(gulpif(config.watch, plumber()))
|
||||
.pipe(eslint.format())
|
||||
.pipe(eslint.failAfterError());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue