goldhand / cookiecutter-webpack

Boilerplate for webpack 2, babel, react + redux + hmr, and karma. Can be inserted into existing django projects.
93 stars 16 forks source link

Use repo_name instead of project_name as package name #10

Closed jiunwei-moe closed 8 years ago

jiunwei-moe commented 8 years ago

With a project_name that has a space, npm install fails with npm version 3.9.2 on Mac:

npm WARN Invalid name: "My Test Project"
npm WARN my_test_project No description
npm WARN my_test_project No repository field.
npm WARN my_test_project No README data
npm WARN my_test_project No license field.

To avoid this, this pull request changes the name used for package.json to repo_name instead of project_name. project name is used for the description field instead and npm test results are unaffected.

goldhand commented 8 years ago

Thanks @jiunwei-moe