mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-09 16:21:51 +00:00
- switches to ES modules in gulp and src - uses dengr's webpack configs and package.json, with modifications - removes gulp/package.json - removes babel stuff - removes gulp-load-plugins, instead importing gulp plugins manually - removes unused and trivial packages - upgrades packages - uses path/posix, for gulp - removes __dirname in favor of relative urls
15 lines
387 B
JavaScript
15 lines
387 B
JavaScript
import fs from "fs";
|
|
|
|
const configTemplatePath = "../src/js/core/config.local.template.js";
|
|
const configPath = "../src/js/core/config.local.js";
|
|
|
|
export default function gulptasksLocalConfig(gulp) {
|
|
gulp.task("localConfig.findOrCreate", cb => {
|
|
if (!fs.existsSync(configPath)) {
|
|
fs.copyFileSync(configTemplatePath, configPath);
|
|
}
|
|
|
|
cb();
|
|
});
|
|
}
|