fixed test files + added clean for environment.ts + fixed set-env script bug

This commit is contained in:
lotte
2020-03-31 13:50:12 +02:00
parent 6b6068ffb8
commit 69ba0865a8
15 changed files with 54 additions and 38 deletions

View File

@@ -45,8 +45,11 @@ const processEnv = {
} as GlobalConfig;
import(environmentFilePath)
.then((file) => generateEnvironmentFile(merge.all(commonEnv, file.environment, processEnv)))
.catch(() => generateEnvironmentFile(merge(commonEnv, processEnv)));
.then((file) => generateEnvironmentFile(merge.all([commonEnv, file.environment, processEnv])))
.catch(() => {
console.log(colors.orange.bold(`No specific environment file found for ` + environment));
generateEnvironmentFile(merge(commonEnv, processEnv))
});
function generateEnvironmentFile(file: GlobalConfig): void {
file.production = production;