You've already forked Atomcms-edit
Auto-stash before git pull and sync .example configs to live files
- All git pull commands now auto-stash local changes first - .example configs are now merged with live files in Nitro's public/configuration directory to keep them 100% complete - Removed unused getTargetName function from merge-config.cjs
This commit is contained in:
@@ -22,15 +22,6 @@ function deepMerge(target, source) {
|
||||
return target;
|
||||
}
|
||||
|
||||
function getTargetName(exampleFile) {
|
||||
let name = exampleFile.replace(/\.example$/, '');
|
||||
const ext = path.extname(name);
|
||||
if (!ext || ext === '.example') {
|
||||
name += '.json';
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
const srcContent = fs.readFileSync(srcFile, 'utf8');
|
||||
let srcData;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user