Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add PROJECT_NAME to environmental variables as an option #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add PROJECT_NAME to environmental variables as an option #122

wants to merge 1 commit into from

Conversation

bmackio
Copy link

@bmackio bmackio commented Aug 23, 2018

@jkrup I've added some code that I need to change the project name in the env variables. Please let me know if this is something that works for you. Thanks. B

@bmackio
Copy link
Author

bmackio commented Aug 23, 2018

@jkrup This is also a bit of a test for my next project: to pass additional options like now.features.cloud

So, let me know if this initial pull request works for you (and if I did everything correctly)

@@ -8,11 +12,16 @@ export const getFolderName = (path, isWinOverride = isWin) => {
return pathParts[pathParts.length - 1];
};

export const getProjectName = async () => {
const environmentVariables = await getEnvironmentVariables();
return getEnvironmentVariable('PROJECT_NAME', environmentVariables)
Copy link
Owner

@jkrup jkrup Aug 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing semicolon ; here (you can run npm run lint to catch this stuff easily)

Copy link
Owner

@jkrup jkrup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks so much for the contribution. There's just that one linter error.

Also, before merging, we'll want to edit the README.md to include information about this new flag. I can probably get to that later this week, but if you'd like to do that as well that'd be fantastic.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants