Skip to content

Commit

Permalink
feat(app generator): externalize 'contributors' from 'package.json' t…
Browse files Browse the repository at this point in the history
…o AUTHORS
  • Loading branch information
cueedee committed Mar 17, 2015
1 parent 1f5c580 commit 6969815
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ module.exports = yeoman.generators.Base.extend(
// write package.json and readme file
//
this.template( "_package.json", "package.json" );
this.template( "AUTHORS", "AUTHORS" );
this.template( "README.md", "README.md" );
this.copy( "LICENSE", "LICENSE" );

Expand Down
9 changes: 9 additions & 0 deletions generators/app/templates/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## https://docs.npmjs.com/files/package.json#default-values
##
## | `"contributors": [ ... ]`
## |
## | If there is an AUTHORS file in the root of your package, npm will treat
## | each line as a `Name <email> (url)` format, where `email` and `url` are
## | optional. Lines which start with a # or are blank, will be ignored.

<%= authorName %><% if ( authorEmail ) { %> <<%= authorEmail %>><% } %><% if ( authorUrl ) { %> (<%= authorUrl %>)<% } %>
1 change: 0 additions & 1 deletion generators/app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
]
},
"browserify-shim": {},
"contributors": [],
"dependencies": {
"backbone": "~1.1.2",
"madlib-console": "~0.1.4",
Expand Down

0 comments on commit 6969815

Please sign in to comment.