Bugfix: bootstrap jQuery('#') syntax error

Changed: use ES2015
Changed: gulp uglify to terser
Removed: ChangePassword
Removed: nanoscroll
Removed: JS polyfills
This commit is contained in:
djmaze 2020-03-13 15:30:39 +01:00
parent 9aa0cf92a9
commit aae7883b99
133 changed files with 15 additions and 10295 deletions

View file

@ -53,7 +53,6 @@ config.paths.css = {
'node_modules/normalize.css/normalize.css',
'vendors/jquery-ui/css/smoothness/jquery-ui-1.10.3.custom.css',
'vendors/fontastic/styles.css',
'vendors/jquery-nanoscroller/nanoscroller.css',
'vendors/jquery-letterfx/jquery-letterfx.min.css',
'vendors/inputosaurus/inputosaurus.css',
'vendors/flags/flags-fixed.css',
@ -75,12 +74,8 @@ config.paths.js = {
name: 'libs.js',
src: [
'node_modules/jquery/dist/jquery.min.js',
'node_modules/jquery-migrate/dist/jquery-migrate.min.js',
'node_modules/jquery-mousewheel/jquery.mousewheel.js',
'node_modules/jquery-scrollstop/jquery.scrollstop.js',
'node_modules/jquery-backstretch/jquery.backstretch.min.js',
'vendors/jquery-ui/js/jquery-ui-1.10.3.custom.min.js', // custom
'vendors/jquery-nanoscroller/jquery.nanoscroller.js', // custom (modified)
'vendors/jquery-wakeup/jquery.wakeup.js', // no-npm
'vendors/jquery-letterfx/jquery-letterfx.min.js', // no-npm
'vendors/inputosaurus/inputosaurus.js', // custom (modified)
@ -95,8 +90,6 @@ config.paths.js = {
'node_modules/moment/min/moment.min.js',
'node_modules/knockout/build/output/knockout-latest.js',
'node_modules/knockout-sortable/build/knockout-sortable.min.js ',
'node_modules/matchmedia-polyfill/matchMedia.js',
'node_modules/matchmedia-polyfill/matchMedia.addListener.js',
'node_modules/simplestatemanager/dist/ssm.min.js',
'node_modules/autolinker/dist/Autolinker.min.js',
'node_modules/opentip/lib/opentip.js',

View file

@ -5,7 +5,7 @@ const concat = require('gulp-concat-util'),
header = require('gulp-header'),
rename = require('gulp-rename'),
replace = require('gulp-replace'),
uglify = require('gulp-uglify'),
terser = require('gulp-terser'),
plumber = require('gulp-plumber'),
gulpif = require('gulp-if'),
eol = require('gulp-eol'),
@ -64,13 +64,7 @@ const jsMin = () =>
.pipe(gulpif(config.source, sourcemaps.init({ loadMaps: true })))
.pipe(replace(/"rainloop\/v\/([^/]+)\/static\/js\/"/g, '"rainloop/v/$1/static/js/min/"'))
.pipe(rename({ suffix: '.min' }))
.pipe(
uglify({
mangle: true,
compress: true,
ie8: false
})
)
.pipe(terser())
.pipe(eol('\n', true))
.pipe(gulpif(config.source, sourcemaps.write('./')))
.pipe(