Skip to content

Commit 942965a

Browse files
author
Yann VR
committed
feat:file-convention update
1 parent 92218a6 commit 942965a

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.4",
3+
"version": "1.0.5",
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}}/story.${fileExt}`,
115+
path: baseDir + `/{{selectedComponentCase name}}/{{ name }}.story.${fileExt}`,
116116
templateFile: `${templateFile}/story.hbs`,
117117
})
118118
}
119119

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

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

0 commit comments

Comments
 (0)