Skip to content

Commit

Permalink
Add "project_name" environment configuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitro-N committed Feb 10, 2022
1 parent d2df2ef commit 14b8952
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jake.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@ try {
var envConfig = config.environtments[env];
var envReplace = require('./env-replace');

var projectName = systemEnv.JAKE_PROJECT_NAME || (config.project_name ? envReplace(config.project_name) : null);
var projectName = systemEnv.JAKE_PROJECT_NAME || null;
var aliases = config.aliases || {};

if (envConfig.project_name) {
projectName = envReplace(envConfig.project_name);
} else if (config.project_name) {
projectName = envReplace(config.project_name);
}

if (projectName !== systemEnv.JAKE_PROJECT_NAME) {
systemEnv.JAKE_PROJECT_NAME = projectName;
}
Expand Down

0 comments on commit 14b8952

Please sign in to comment.