2022-09-01 02:15:45 +08:00
|
|
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under MIT */
|
2019-06-29 22:16:09 +08:00
|
|
|
const gulp = require('gulp');
|
2021-07-21 17:20:55 +08:00
|
|
|
const del = require('del');
|
2021-08-23 06:42:21 +08:00
|
|
|
const fs = require('fs');
|
2019-06-29 22:16:09 +08:00
|
|
|
|
2019-07-05 03:09:27 +08:00
|
|
|
const { config } = require('./config');
|
2019-06-29 22:16:09 +08:00
|
|
|
|
2021-07-21 17:20:55 +08:00
|
|
|
exports.del = (dir) => del(dir);
|
2019-06-29 22:16:09 +08:00
|
|
|
|
|
|
|
exports.copy = (sFile, sNewFile, done) => {
|
|
|
|
fs.writeFileSync(sNewFile, fs.readFileSync(sFile));
|
|
|
|
done();
|
|
|
|
};
|
|
|
|
|
2022-09-02 03:16:52 +08:00
|
|
|
exports.getHead = () => config.head.agpl;
|
2019-06-29 22:16:09 +08:00
|
|
|
|
2023-02-03 00:19:06 +08:00
|
|
|
exports.cleanStatic = () => del(config.paths.staticJS) && del(config.paths.staticCSS);
|