Skip to content

Commit 7e07006

Browse files
feat: new day creation defaults to current date
Generating a new day now defaults to the current day of the month. Good for when you keep up with the daily aspect of the advent calendar.
1 parent aa80e95 commit 7e07006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plop-templates/plopfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ module.exports = function (plop) {
1717
}, {
1818
type: 'input',
1919
name: 'day',
20-
message: 'Which day?'
20+
message: 'Which day?',
21+
default: new Date().getDate()
2122
}],
2223
actions: (data) => {
2324
return [{

0 commit comments

Comments
 (0)