mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-25 08:08:48 +08:00
Update and cleanup npm
This commit is contained in:
parent
91b4ff16bd
commit
e64d49240f
5 changed files with 22 additions and 4681 deletions
38
package.json
38
package.json
|
@ -41,35 +41,29 @@
|
|||
"openpgp"
|
||||
],
|
||||
"readmeFilename": "README.md",
|
||||
"devDependencies": {
|
||||
"babel-eslint": "10.1.0",
|
||||
"core-js": "3.16.3",
|
||||
"eslint": "7.32.0",
|
||||
"gulp": "4.0.2",
|
||||
"gulp-cached": "1.1.1",
|
||||
"gulp-clean-css": "4.3.0",
|
||||
"gulp-eol": "0.2.0",
|
||||
"gulp-eslint": "6.0.0",
|
||||
"gulp-expect-file": "2.0.0",
|
||||
"gulp-filter": "7.0.0",
|
||||
"gulp-header": "2.0.9",
|
||||
"gulp-less": "5.0.0",
|
||||
"gulp-rename": "2.0.0",
|
||||
"gulp-replace": "1.1.3",
|
||||
"gulp-size": "4.0.1",
|
||||
"gulp-stripbom": "1.0.5",
|
||||
"gulp-terser": "2.0.1",
|
||||
"gulp-util": "3.0.8"
|
||||
},
|
||||
"dependencies": {
|
||||
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||
"@rollup/plugin-replace": "^3.0.1",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"del": "^6.0.0",
|
||||
"fs": "^0.0.1-security",
|
||||
"eslint": "^7.32.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-cached": "^1.1.1",
|
||||
"gulp-clean-css": "^4.3.0",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-eol": "^0.2.0",
|
||||
"gulp-eslint": "^6.0.0",
|
||||
"gulp-expect-file": "^2.0.0",
|
||||
"gulp-filter": "^6.0.0",
|
||||
"gulp-group-css-media-queries": "^1.2.2",
|
||||
"gulp-header": "^2.0.9",
|
||||
"gulp-less": "^5.0.0",
|
||||
"gulp-rename": "^2.0.0",
|
||||
"gulp-replace": "^1.1.3",
|
||||
"gulp-rollup-2": "^1.2.1",
|
||||
"rollup": "2.56.3",
|
||||
"gulp-size": "^3.0.0",
|
||||
"gulp-terser": "^2.1.0",
|
||||
"rollup": "^2.56.3",
|
||||
"rollup-plugin-external-globals": "^0.6.1",
|
||||
"rollup-plugin-html": "^0.2.1",
|
||||
"rollup-plugin-includepaths": "^0.2.4",
|
||||
|
|
|
@ -8,6 +8,7 @@ const eol = require('gulp-eol');
|
|||
const filter = require('gulp-filter');
|
||||
const expect = require('gulp-expect-file');
|
||||
const gcmq = require('gulp-group-css-media-queries');
|
||||
const less = require('gulp-less');
|
||||
|
||||
const { config } = require('./config');
|
||||
const { del } = require('./common');
|
||||
|
@ -29,7 +30,6 @@ const cssBootBuild = () => {
|
|||
|
||||
const cssMainBuild = () => {
|
||||
const
|
||||
less = require('gulp-less'),
|
||||
lessFilter = filter('**/*.less', { restore: true }),
|
||||
src = config.paths.css.main.src.concat([config.paths.less.main.src]);
|
||||
|
||||
|
@ -51,7 +51,6 @@ const cssMainBuild = () => {
|
|||
|
||||
const cssAdminBuild = () => {
|
||||
const
|
||||
less = require('gulp-less'),
|
||||
lessFilter = filter('**/*.less', { restore: true }),
|
||||
src = config.paths.css.admin.src;
|
||||
|
||||
|
|
15
tasks/js.js
15
tasks/js.js
|
@ -10,8 +10,7 @@ const concat = require('gulp-concat'),
|
|||
eslint = require('gulp-eslint'),
|
||||
cache = require('gulp-cached'),
|
||||
expect = require('gulp-expect-file'),
|
||||
size = require('gulp-size'),
|
||||
gutil = require('gulp-util');
|
||||
size = require('gulp-size');
|
||||
|
||||
const { config } = require('./config');
|
||||
const { del, getHead } = require('./common');
|
||||
|
@ -59,8 +58,7 @@ const jsSieve = async () =>
|
|||
// .pipe(sourcemaps.write('.'))
|
||||
.pipe(header(getHead() + '\n'))
|
||||
.pipe(eol('\n', true))
|
||||
.pipe(gulp.dest(config.paths.staticJS))
|
||||
.on('error', gutil.log);
|
||||
.pipe(gulp.dest(config.paths.staticJS));
|
||||
|
||||
// app
|
||||
const jsApp = async () =>
|
||||
|
@ -68,16 +66,14 @@ const jsApp = async () =>
|
|||
// .pipe(sourcemaps.write('.'))
|
||||
.pipe(header(getHead() + '\n'))
|
||||
.pipe(eol('\n', true))
|
||||
.pipe(gulp.dest(config.paths.staticJS))
|
||||
.on('error', gutil.log);
|
||||
.pipe(gulp.dest(config.paths.staticJS));
|
||||
|
||||
const jsAdmin = async () =>
|
||||
(await rollupJS(config.paths.js.admin.name))
|
||||
// .pipe(sourcemaps.write('.'))
|
||||
.pipe(header(getHead() + '\n'))
|
||||
.pipe(eol('\n', true))
|
||||
.pipe(gulp.dest(config.paths.staticJS))
|
||||
.on('error', gutil.log);
|
||||
.pipe(gulp.dest(config.paths.staticJS));
|
||||
|
||||
const jsMin = () =>
|
||||
gulp
|
||||
|
@ -118,8 +114,7 @@ const jsMin = () =>
|
|||
showTotal: false
|
||||
})
|
||||
)
|
||||
.pipe(gulp.dest(config.paths.staticMinJS))
|
||||
.on('error', gutil.log);
|
||||
.pipe(gulp.dest(config.paths.staticMinJS));
|
||||
|
||||
const jsLint = () =>
|
||||
gulp
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
||||
const gulp = require('gulp');
|
||||
const header = require('gulp-header');
|
||||
const stripbom = require('gulp-stripbom');
|
||||
|
||||
const { config } = require('./config');
|
||||
const { del } = require('./common');
|
||||
|
|
Loading…
Reference in a new issue