diff --git a/lib/init/add-contributors-list.test.js b/lib/init/add-contributors-list.test.js index 35c972e..0c19bd8 100644 --- a/lib/init/add-contributors-list.test.js +++ b/lib/init/add-contributors-list.test.js @@ -37,7 +37,11 @@ test('should create contributors section if it is absent', t => { 'Description', '## Contributors', '', - '' + 'Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):', + '', + '', + '', + 'This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!' ].join('\n'); const result = addContributorsList(content); @@ -51,7 +55,11 @@ test('should create contributors section if content is empty', t => { '', '## Contributors', '', - '' + 'Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):', + '', + '', + '', + 'This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!' ].join('\n'); const result = addContributorsList(content); diff --git a/lib/init/init-content.js b/lib/init/init-content.js index 73aeabf..e481958 100644 --- a/lib/init/init-content.js +++ b/lib/init/init-content.js @@ -4,7 +4,9 @@ var _ = require('lodash/fp'); var injectContentBetween = require('../util').markdown.injectContentBetween; var badgeContent = '[![All Contributors](https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square)](#contributors)'; +var headerContent = 'Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):'; var listContent = ''; +var footerContent = 'This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!'; function addBadge(lines) { return injectContentBetween(lines, badgeContent, 1, 1); @@ -31,7 +33,11 @@ function addContributorsList(lines) { .concat([ '## Contributors', '', - listContent + headerContent, + '', + listContent, + '', + footerContent ]); } return injectContentBetween(lines, listContent, insertionLine + 2, insertionLine + 2);