Skip to content

Commit a50bffc

Browse files
author
Yann VR
committed
feat: update file naming convention
1 parent a2b1617 commit a50bffc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-components-cli",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"description": "React styled template generator with command line and scripts",
55
"repository": {
66
"type": "git",

plopfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,22 @@ module.exports = function(plop) {
112112
if (data.story) {
113113
actions.push({
114114
type: 'add',
115-
path: baseDir + `/{{selectedComponentCase name}}/{{ name }}.story.${fileExt}x`,
115+
path: baseDir + `/{{selectedComponentCase name}}/{{ selectedComponentCase name }}.story.${fileExt}x`,
116116
templateFile: `${templateFile}/story.hbs`,
117117
})
118118
}
119119

120120
if (data.styled) {
121121
actions.push({
122122
type: 'add',
123-
path: baseDir + `/{{selectedComponentCase name}}/{{ name }}.style.${fileExt}`,
123+
path: baseDir + `/{{selectedComponentCase name}}/{{ selectedComponentCase name }}.style.${fileExt}`,
124124
templateFile: `${templateFile}/style.hbs`,
125125
})
126126
}
127127

128128
actions.push({
129129
type: 'add',
130-
path: baseDir + `/{{selectedComponentCase name}}/{{ name }}.test.${fileExt}x`,
130+
path: baseDir + `/{{selectedComponentCase name}}/{{ selectedComponentCase name }}.test.${fileExt}x`,
131131
templateFile: `${templateFile}/test.hbs`,
132132
})
133133

0 commit comments

Comments
 (0)