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

feat: (nodejs) read repo_name and package_name from package.json #34

Merged
merged 9 commits into from
Aug 21, 2018

Conversation

jkwlui
Copy link
Member

@jkwlui jkwlui commented Aug 17, 2018

No description provided.

@jkwlui jkwlui requested review from theacodes and crwilcox August 17, 2018 23:20
@jkwlui jkwlui self-assigned this Aug 17, 2018
with open('./package.json') as f:
data = json.load(f)

package_name = data['name']

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

t = templates.TemplateGroup(_TEMPLATES_DIR / "node_library")
result = t.render(package_name=package_name, repo_name=repo_name)
result = t.render(**{**metadata, **kwargs})

This comment was marked as spam.

@jkwlui jkwlui requested a review from theacodes August 20, 2018 21:19
@@ -0,0 +1,35 @@
# Copyright 2018 Google LLC

This comment was marked as spam.

@jkwlui jkwlui requested a review from theacodes August 20, 2018 23:52
@theacodes theacodes merged commit fa39c0b into master Aug 21, 2018
@jkwlui jkwlui deleted the node-read-args-from-package-json branch August 21, 2018 00:41
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.

2 participants