mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
19 lines
528 B
JavaScript
19 lines
528 B
JavaScript
|
const path = require("path");
|
||
|
const fs = require("fs");
|
||
|
const fse = require("fs-extra");
|
||
|
|
||
|
const configTemplatePath = path.join(__dirname, "../src/js/core/config.local.template.js");
|
||
|
const configPath = path.join(__dirname, "../src/js/core/config.local.js");
|
||
|
|
||
|
function gulptasksLocalConfig($, gulp) {
|
||
|
gulp.task("localConfig.findOrCreate", cb => {
|
||
|
if (!fs.existsSync(configPath)) {
|
||
|
fse.copySync(configTemplatePath, configPath);
|
||
|
}
|
||
|
|
||
|
cb();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
module.exports = { gulptasksLocalConfig };
|