mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 10:49:20 +00:00
Moved config example file location
This commit is contained in:
+1
-2
@@ -1,8 +1,7 @@
|
|||||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||||
|
|
||||||
/build
|
/build
|
||||||
/configs/*
|
/configs
|
||||||
!/configs/*.example.json
|
|
||||||
|
|
||||||
# compiled output
|
# compiled output
|
||||||
/dist
|
/dist
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class Configuration {
|
|||||||
private copyExampleIfNotExists(file: string): void {
|
private copyExampleIfNotExists(file: string): void {
|
||||||
const dir = path.join(process.cwd(), 'configs/');
|
const dir = path.join(process.cwd(), 'configs/');
|
||||||
if (!fs.existsSync(path.join(dir, file))) {
|
if (!fs.existsSync(path.join(dir, file))) {
|
||||||
fs.copyFileSync(path.join(process.cwd(), 'configs/', `${file.replace('.json', '.example.json')}`), path.join(dir, file));
|
fs.copyFileSync(path.join(process.cwd(), 'configs_example/', `${file.replace('.json', '.example.json')}`), path.join(dir, file));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user