snappymail/tasks/common.js
David Härdeman fc83b71a30 [snappymail] Some build fixes
Not an expert on the snappy build system, but rollup doesn't seem to be
used anywhere, so no need to check for its presence. Also, I had
to replace "node-fs" with "fs" to build a .tar.gz.
2021-08-23 00:42:21 +02:00

17 lines
432 B
JavaScript

/* RainLoop Webmail (c) RainLoop Team | Licensed under AGPL 3 */
const gulp = require('gulp');
const del = require('del');
const fs = require('fs');
const { config } = require('./config');
exports.del = (dir) => del(dir);
exports.copy = (sFile, sNewFile, done) => {
fs.writeFileSync(sNewFile, fs.readFileSync(sFile));
done();
};
exports.getHead = () => config.head.agpl;
exports.cleanStatic = () => del(config.paths.static);