mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Add prettier
This commit is contained in:
parent
08da3030b0
commit
450528ff00
61 changed files with 516 additions and 1456 deletions
|
|
@ -3,11 +3,9 @@ const gulp = require('gulp');
|
|||
const rimraf = require('gulp-rimraf');
|
||||
const fs = require('node-fs');
|
||||
|
||||
const {config} = require('./config');
|
||||
const { config } = require('./config');
|
||||
|
||||
exports.del = (dir) =>
|
||||
gulp.src(dir, {read: false, allowEmpty: true})
|
||||
.pipe(rimraf());
|
||||
exports.del = (dir) => gulp.src(dir, { read: false, allowEmpty: true }).pipe(rimraf());
|
||||
|
||||
exports.copy = (sFile, sNewFile, done) => {
|
||||
fs.writeFileSync(sNewFile, fs.readFileSync(sFile));
|
||||
|
|
@ -15,11 +13,11 @@ exports.copy = (sFile, sNewFile, done) => {
|
|||
};
|
||||
|
||||
exports.zip = (srcDir, destDir, fileName) =>
|
||||
gulp.src(srcDir + '**/*')
|
||||
gulp
|
||||
.src(srcDir + '**/*')
|
||||
.pipe(require('gulp-zip')(fileName))
|
||||
.pipe(gulp.dest(destDir));
|
||||
|
||||
exports.getHead = () => (!config.community ? config.head.rainloop : config.head.agpl);
|
||||
|
||||
exports.cleanStatic = () => exports.del(config.paths.static);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue