diff --git a/.all-contributorsrc b/.all-contributorsrc
index 734001d..02f8f1f 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -57,6 +57,15 @@
"contributions": [
"doc"
]
+ },
+ {
+ "login": "apatrascu",
+ "name": "Alecsandru Patrascu",
+ "avatar_url": "https://avatars3.githubusercontent.com/u/1193770?v=4",
+ "profile": "https://github.com/apatrascu",
+ "contributions": [
+ "code"
+ ]
}
],
"contributorsPerLine": 7,
diff --git a/README.md b/README.md
index 55be220..3c85456 100644
--- a/README.md
+++ b/README.md
@@ -88,6 +88,7 @@ Feel free to check [issues page](https://github.com/kefranabg/readme-md-generato
 Nik 💻 📖 ⚠️ |
 Saffaanh Soobratty 💻 |
 Samuel Sharpe 📖 |
+  Alecsandru Patrascu 💻 |
@@ -104,6 +105,10 @@ Feel free to check [issues page](https://github.com/kefranabg/readme-md-generato
Please ⭐️ this repository if this project helped you!
+
+
+
+
## 📝 License
Copyright © 2019 [Franck Abgrall](https://github.com/kefranabg).
diff --git a/src/__snapshots__/readme.spec.js.snap b/src/__snapshots__/readme.spec.js.snap
index 87d8023..1b73c86 100644
--- a/src/__snapshots__/readme.spec.js.snap
+++ b/src/__snapshots__/readme.spec.js.snap
@@ -62,6 +62,10 @@ Contributions, issues and feature requests are welcome!
Feel free to check
Give a ⭐️ if this project helped you!
+
+
+
+
## 📝 License
Copyright © 2019 [Franck Abgrall](https://github.com/kefranabg).
diff --git a/src/questions/author-patreon.js b/src/questions/author-patreon.js
new file mode 100644
index 0000000..9539f99
--- /dev/null
+++ b/src/questions/author-patreon.js
@@ -0,0 +1,5 @@
+module.exports = () => ({
+ type: 'input',
+ message: '❤️ Patreon username (use empty value to skip)',
+ name: 'authorPatreonUsername'
+})
diff --git a/src/questions/author-patreon.spec.js b/src/questions/author-patreon.spec.js
new file mode 100644
index 0000000..4553296
--- /dev/null
+++ b/src/questions/author-patreon.spec.js
@@ -0,0 +1,13 @@
+const askPatreonUsername = require('./author-patreon')
+
+describe('askPatreonUsername', () => {
+ it('should return correct question format', () => {
+ const result = askPatreonUsername()
+
+ expect(result).toEqual({
+ type: 'input',
+ message: '❤️ Patreon username (use empty value to skip)',
+ name: 'authorPatreonUsername'
+ })
+ })
+})
diff --git a/src/questions/index.js b/src/questions/index.js
index 4d6ef29..15077c3 100644
--- a/src/questions/index.js
+++ b/src/questions/index.js
@@ -7,6 +7,7 @@ module.exports = {
askAuhtorName: require('./author-name'),
askAuthorGithub: require('./author-github'),
askAuthorTwitter: require('./author-twitter'),
+ askAuthorPatreon: require('./author-patreon'),
askProjectPrerequisites: require('./project-prerequisites'),
askLicenseName: require('./license-name'),
askLicenseUrl: require('./license-url'),
diff --git a/src/questions/index.spec.js b/src/questions/index.spec.js
index 08d3882..c629725 100644
--- a/src/questions/index.spec.js
+++ b/src/questions/index.spec.js
@@ -13,6 +13,7 @@ describe('questions', () => {
'askAuhtorName',
'askAuthorGithub',
'askAuthorTwitter',
+ 'askAuthorPatreon',
'askProjectPrerequisites',
'askLicenseName',
'askLicenseUrl',
diff --git a/src/readme.spec.js b/src/readme.spec.js
index 7598aeb..38863ab 100644
--- a/src/readme.spec.js
+++ b/src/readme.spec.js
@@ -82,6 +82,7 @@ describe('readme', () => {
authorName: 'Franck Abgrall',
authorGithubUsername: 'kefranabg',
authorTwitterUsername: 'FranckAbgrall',
+ authorPatreonUsername: 'FranckAbgrall',
licenseName: 'MIT',
licenseUrl:
'https://github.com/kefranabg/readme-md-generator/blob/master/LICENSE',
diff --git a/templates/default.md b/templates/default.md
index e403dc4..a53e035 100644
--- a/templates/default.md
+++ b/templates/default.md
@@ -92,6 +92,12 @@ Contributions, issues and feature requests are welcome!
Feel free to check
## Show your support
Give a ⭐️ if this project helped you!
+<% if (authorPatreonUsername) { -%>
+
+
+
+
+<% } -%>
<% if (licenseName && licenseUrl) { -%>
## 📝 License