From f2cd307423a9649c23b68b4b9311c4160ac08694 Mon Sep 17 00:00:00 2001 From: Jiun Wei Chia Date: Fri, 1 Jul 2016 17:01:14 +0800 Subject: [PATCH 1/2] Use project_slug instead of project_name for cookiecutter-webpack to avoid npm errors --- hooks/post_gen_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 8a89c1d68..4663bd041 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -171,7 +171,7 @@ def add_webpack(): 'https://github.com/hzdg/cookiecutter-webpack.git', replay=False, overwrite_if_exists=True, output_dir='../', checkout='pydanny-django', no_input=True, extra_context={ - 'project_name': '{{ cookiecutter.project_name }}', + 'project_name': '{{ cookiecutter.project_slug }}', 'repo_name': '{{ cookiecutter.project_slug }}', 'repo_owner': '', 'project_dir': '{{ cookiecutter.project_slug }}', From 826381cb13943565d9a8f12ae3c1bc95a98e7f52 Mon Sep 17 00:00:00 2001 From: Jiun Wei Chia Date: Fri, 1 Jul 2016 17:27:27 +0800 Subject: [PATCH 2/2] Update CONTRIBUTORS.rst --- CONTRIBUTORS.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index fe0d6e2b3..cbbd5baf9 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -85,6 +85,7 @@ Listed in alphabetical order. Ian Lee `@IanLee1521`_ Jan Van Bruggen `@jvanbrug`_ Jens Nilsson `@phiberjenz`_ + Jiun Wei Chia `@jiunwei`_ @jiunwei Julien Almarcha `@sladinji`_ Julio Castillo `@juliocc`_ Kaido Kert `@kaidokert`_