generator-reackt 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +5 -5
- package/.stylelintrc +188 -104
- package/LICENSE +7 -9
- package/README.md +18 -18
- package/generators/app/index.js +392 -1
- package/generators/component/index.js +51 -1
- package/generators/module/index.js +127 -1
- package/generators/util/fs.js +34 -1
- package/package.json +63 -69
- package/templates/app/.babelrc +4 -9
- package/templates/app/.browserslistrc +3 -3
- package/templates/app/.editorconfig +11 -11
- package/templates/app/.esdoc.json +23 -23
- package/templates/app/.eslintrc.js +46 -185
- package/templates/app/.lintstagedrc +4 -4
- package/templates/app/.prettierrc +4 -4
- package/templates/app/.storybook/addons.js +1 -1
- package/templates/app/.storybook/config.js +14 -14
- package/templates/app/.storybook/webpack.config.babel.js +7 -7
- package/templates/app/.stylelintrc +188 -271
- package/templates/app/gitignore +2 -2
- package/templates/app/jest.config.js +15 -15
- package/templates/app/jsconfig.json +7 -8
- package/templates/app/package.json +18 -18
- package/templates/app/src/components/App.js +14 -14
- package/templates/app/src/index.html +10 -10
- package/templates/app/src/index.js +47 -50
- package/templates/app/src/index.scss +16 -16
- package/templates/app/src/reducers/application.js +21 -21
- package/templates/app/src/reducers/index.js +7 -7
- package/templates/app/src/sagas/application.js +9 -9
- package/templates/app/src/sagas/index.js +7 -7
- package/templates/app/src/selectors/application.js +1 -1
- package/templates/app/src/selectors/application.test.js +13 -13
- package/templates/app/src/utils/index.js +36 -36
- package/templates/app/webpack.config.babel.js +103 -103
- package/templates/component/index.js +19 -19
- package/templates/component/index.test.js +14 -14
- package/templates/module/reducer/index.js +20 -20
- package/templates/module/saga/index.js +9 -9
- package/generators/es.regexp.flags-ccfbed60.js +0 -1
- package/templates/app/src/icons.js +0 -4
|
@@ -1,271 +1,188 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defaultSeverity": "warning",
|
|
3
|
-
"extends": "stylelint-config-recommended",
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"at-rule-
|
|
7
|
-
"at-rule-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"at-rule-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"declaration-
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"max-
|
|
144
|
-
"max-
|
|
145
|
-
"max-
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"no-
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"no-
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
"first-nested"
|
|
190
|
-
],
|
|
191
|
-
"ignore": [
|
|
192
|
-
"after-comment"
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
"selector-attribute-brackets-space-inside": "never",
|
|
197
|
-
"selector-attribute-operator-allowed-list": null,
|
|
198
|
-
"selector-attribute-operator-disallowed-list": null,
|
|
199
|
-
"selector-attribute-operator-space-after": "never",
|
|
200
|
-
"selector-attribute-operator-space-before": "never",
|
|
201
|
-
"selector-attribute-quotes": "always",
|
|
202
|
-
"selector-class-pattern": "[a-z]+",
|
|
203
|
-
"selector-combinator-allowed-list": null,
|
|
204
|
-
"selector-combinator-disallowed-list": null,
|
|
205
|
-
"selector-combinator-space-after": "always",
|
|
206
|
-
"selector-combinator-space-before": "always",
|
|
207
|
-
"selector-descendant-combinator-no-non-space": true,
|
|
208
|
-
"selector-id-pattern": null,
|
|
209
|
-
"selector-list-comma-newline-after": "always",
|
|
210
|
-
"selector-list-comma-newline-before": "never-multi-line",
|
|
211
|
-
"selector-list-comma-space-after": "always-single-line",
|
|
212
|
-
"selector-list-comma-space-before": null,
|
|
213
|
-
"selector-max-attribute": 1,
|
|
214
|
-
"selector-max-class": 3,
|
|
215
|
-
"selector-max-combinators": 2,
|
|
216
|
-
"selector-max-compound-selectors": 3,
|
|
217
|
-
"selector-max-empty-lines": 0,
|
|
218
|
-
"selector-max-id": 1,
|
|
219
|
-
"selector-max-pseudo-class": 2,
|
|
220
|
-
"selector-max-specificity": [
|
|
221
|
-
"0,5,1",
|
|
222
|
-
{
|
|
223
|
-
"severity": "error"
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"selector-max-type": 2,
|
|
227
|
-
"selector-max-universal": 1,
|
|
228
|
-
"selector-nested-pattern": null,
|
|
229
|
-
"selector-no-qualifying-type": true,
|
|
230
|
-
"selector-no-vendor-prefix": true,
|
|
231
|
-
"selector-pseudo-class-allowed-list": null,
|
|
232
|
-
"selector-pseudo-class-case": "lower",
|
|
233
|
-
"selector-pseudo-class-disallowed-list": null,
|
|
234
|
-
"selector-pseudo-class-no-unknown": true,
|
|
235
|
-
"selector-pseudo-class-parentheses-space-inside": "never",
|
|
236
|
-
"selector-pseudo-element-allowed-list": null,
|
|
237
|
-
"selector-pseudo-element-case": "lower",
|
|
238
|
-
"selector-pseudo-element-colon-notation": "double",
|
|
239
|
-
"selector-pseudo-element-disallowed-list": null,
|
|
240
|
-
"selector-pseudo-element-no-unknown": true,
|
|
241
|
-
"selector-type-case": "lower",
|
|
242
|
-
"selector-type-no-unknown": true,
|
|
243
|
-
"shorthand-property-no-redundant-values": true,
|
|
244
|
-
"string-no-newline": true,
|
|
245
|
-
"string-quotes": "double",
|
|
246
|
-
"time-min-milliseconds": 100,
|
|
247
|
-
"unit-allowed-list": [
|
|
248
|
-
"%",
|
|
249
|
-
"deg",
|
|
250
|
-
"em",
|
|
251
|
-
"ms",
|
|
252
|
-
"px",
|
|
253
|
-
"rem",
|
|
254
|
-
"s",
|
|
255
|
-
"vh",
|
|
256
|
-
"vmax",
|
|
257
|
-
"vmin",
|
|
258
|
-
"vw"
|
|
259
|
-
],
|
|
260
|
-
"unit-case": "lower",
|
|
261
|
-
"unit-disallowed-list": null,
|
|
262
|
-
"unit-no-unknown": true,
|
|
263
|
-
"value-keyword-case": "lower",
|
|
264
|
-
"value-list-comma-newline-after": "always-multi-line",
|
|
265
|
-
"value-list-comma-newline-before": null,
|
|
266
|
-
"value-list-comma-space-after": null,
|
|
267
|
-
"value-list-comma-space-before": "never",
|
|
268
|
-
"value-list-max-empty-lines": 0,
|
|
269
|
-
"value-no-vendor-prefix": true
|
|
270
|
-
}
|
|
271
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"defaultSeverity": "warning",
|
|
3
|
+
"extends": "stylelint-config-recommended",
|
|
4
|
+
"customSyntax": "postcss-scss",
|
|
5
|
+
"rules": {
|
|
6
|
+
"at-rule-allowed-list": null,
|
|
7
|
+
"at-rule-disallowed-list": null,
|
|
8
|
+
"at-rule-empty-line-before": [
|
|
9
|
+
"always",
|
|
10
|
+
{
|
|
11
|
+
"except": [
|
|
12
|
+
"blockless-after-blockless",
|
|
13
|
+
"first-nested"
|
|
14
|
+
],
|
|
15
|
+
"ignore": [
|
|
16
|
+
"after-comment"
|
|
17
|
+
],
|
|
18
|
+
"ignoreAtRules": [
|
|
19
|
+
"else"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"at-rule-no-unknown": [
|
|
24
|
+
true,
|
|
25
|
+
{
|
|
26
|
+
"ignoreAtRules": [
|
|
27
|
+
"each",
|
|
28
|
+
"content",
|
|
29
|
+
"else",
|
|
30
|
+
"extend",
|
|
31
|
+
"if",
|
|
32
|
+
"include",
|
|
33
|
+
"mixin",
|
|
34
|
+
"for",
|
|
35
|
+
"elseif",
|
|
36
|
+
"return",
|
|
37
|
+
"function"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"at-rule-no-vendor-prefix": true,
|
|
42
|
+
"block-no-empty": true,
|
|
43
|
+
"color-hex-length": "short",
|
|
44
|
+
"color-named": [
|
|
45
|
+
"never",
|
|
46
|
+
{
|
|
47
|
+
"severity": "error"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"color-no-hex": null,
|
|
51
|
+
"color-no-invalid-hex": true,
|
|
52
|
+
"comment-empty-line-before": [
|
|
53
|
+
"always",
|
|
54
|
+
{
|
|
55
|
+
"ignore": [
|
|
56
|
+
"after-comment",
|
|
57
|
+
"stylelint-commands"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"comment-no-empty": true,
|
|
62
|
+
"comment-whitespace-inside": "always",
|
|
63
|
+
"comment-word-disallowed-list": [
|
|
64
|
+
"/^TODO:/"
|
|
65
|
+
],
|
|
66
|
+
"custom-media-pattern": null,
|
|
67
|
+
"custom-property-empty-line-before": null,
|
|
68
|
+
"custom-property-pattern": null,
|
|
69
|
+
"declaration-block-no-duplicate-properties": true,
|
|
70
|
+
"declaration-block-no-redundant-longhand-properties": true,
|
|
71
|
+
"declaration-block-no-shorthand-property-overrides": true,
|
|
72
|
+
"declaration-block-single-line-max-declarations": 1,
|
|
73
|
+
"declaration-no-important": true,
|
|
74
|
+
"declaration-property-unit-allowed-list": {
|
|
75
|
+
"border": [
|
|
76
|
+
"px"
|
|
77
|
+
],
|
|
78
|
+
"line-height": [],
|
|
79
|
+
"outline-offset": [
|
|
80
|
+
"px"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"declaration-property-unit-disallowed-list": {},
|
|
84
|
+
"declaration-property-value-allowed-list": {},
|
|
85
|
+
"declaration-property-value-disallowed-list": {},
|
|
86
|
+
"font-family-name-quotes": "always-unless-keyword",
|
|
87
|
+
"font-family-no-duplicate-names": true,
|
|
88
|
+
"font-family-no-missing-generic-family-keyword": true,
|
|
89
|
+
"font-weight-notation": "numeric",
|
|
90
|
+
"function-allowed-list": null,
|
|
91
|
+
"function-calc-no-unspaced-operator": true,
|
|
92
|
+
"function-disallowed-list": null,
|
|
93
|
+
"function-linear-gradient-no-nonstandard-direction": true,
|
|
94
|
+
"function-url-no-scheme-relative": true,
|
|
95
|
+
"function-url-quotes": "always",
|
|
96
|
+
"function-url-scheme-allowed-list": null,
|
|
97
|
+
"function-url-scheme-disallowed-list": null,
|
|
98
|
+
"keyframe-declaration-no-important": true,
|
|
99
|
+
"length-zero-no-unit": true,
|
|
100
|
+
"max-nesting-depth": 4,
|
|
101
|
+
"media-feature-name-allowed-list": null,
|
|
102
|
+
"media-feature-name-disallowed-list": null,
|
|
103
|
+
"media-feature-name-no-unknown": true,
|
|
104
|
+
"media-feature-name-no-vendor-prefix": true,
|
|
105
|
+
"no-descending-specificity": true,
|
|
106
|
+
"no-duplicate-at-import-rules": true,
|
|
107
|
+
"no-duplicate-selectors": true,
|
|
108
|
+
"no-empty-source": true,
|
|
109
|
+
"no-invalid-double-slash-comments": true,
|
|
110
|
+
"no-unknown-animations": true,
|
|
111
|
+
"number-max-precision": [
|
|
112
|
+
2,
|
|
113
|
+
{
|
|
114
|
+
"ignoreUnits": [
|
|
115
|
+
"em",
|
|
116
|
+
"rem"
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"property-allowed-list": null,
|
|
121
|
+
"property-disallowed-list": null,
|
|
122
|
+
"property-no-unknown": true,
|
|
123
|
+
"property-no-vendor-prefix": true,
|
|
124
|
+
"rule-empty-line-before": [
|
|
125
|
+
"always",
|
|
126
|
+
{
|
|
127
|
+
"except": [
|
|
128
|
+
"first-nested"
|
|
129
|
+
],
|
|
130
|
+
"ignore": [
|
|
131
|
+
"after-comment"
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"selector-attribute-operator-allowed-list": null,
|
|
136
|
+
"selector-attribute-operator-disallowed-list": null,
|
|
137
|
+
"selector-attribute-quotes": "always",
|
|
138
|
+
"selector-class-pattern": "[a-z]+",
|
|
139
|
+
"selector-combinator-allowed-list": null,
|
|
140
|
+
"selector-combinator-disallowed-list": null,
|
|
141
|
+
"selector-id-pattern": null,
|
|
142
|
+
"selector-max-attribute": 1,
|
|
143
|
+
"selector-max-class": 3,
|
|
144
|
+
"selector-max-combinators": 2,
|
|
145
|
+
"selector-max-compound-selectors": 3,
|
|
146
|
+
"selector-max-id": 1,
|
|
147
|
+
"selector-max-pseudo-class": 2,
|
|
148
|
+
"selector-max-specificity": [
|
|
149
|
+
"0,5,1",
|
|
150
|
+
{
|
|
151
|
+
"severity": "error"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"selector-max-type": 2,
|
|
155
|
+
"selector-max-universal": 1,
|
|
156
|
+
"selector-nested-pattern": null,
|
|
157
|
+
"selector-no-qualifying-type": true,
|
|
158
|
+
"selector-no-vendor-prefix": true,
|
|
159
|
+
"selector-pseudo-class-allowed-list": null,
|
|
160
|
+
"selector-pseudo-class-disallowed-list": null,
|
|
161
|
+
"selector-pseudo-class-no-unknown": true,
|
|
162
|
+
"selector-pseudo-element-allowed-list": null,
|
|
163
|
+
"selector-pseudo-element-colon-notation": "double",
|
|
164
|
+
"selector-pseudo-element-disallowed-list": null,
|
|
165
|
+
"selector-pseudo-element-no-unknown": true,
|
|
166
|
+
"selector-type-no-unknown": true,
|
|
167
|
+
"shorthand-property-no-redundant-values": true,
|
|
168
|
+
"string-no-newline": true,
|
|
169
|
+
"time-min-milliseconds": 100,
|
|
170
|
+
"unit-allowed-list": [
|
|
171
|
+
"%",
|
|
172
|
+
"deg",
|
|
173
|
+
"em",
|
|
174
|
+
"ms",
|
|
175
|
+
"px",
|
|
176
|
+
"rem",
|
|
177
|
+
"s",
|
|
178
|
+
"vh",
|
|
179
|
+
"vmax",
|
|
180
|
+
"vmin",
|
|
181
|
+
"vw"
|
|
182
|
+
],
|
|
183
|
+
"unit-disallowed-list": null,
|
|
184
|
+
"unit-no-unknown": true,
|
|
185
|
+
"value-keyword-case": "lower",
|
|
186
|
+
"value-no-vendor-prefix": true
|
|
187
|
+
}
|
|
188
|
+
}
|
package/templates/app/gitignore
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
node_modules/
|
|
2
|
-
dist/
|
|
1
|
+
node_modules/
|
|
2
|
+
dist/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
collectCoverage: true,
|
|
3
|
-
collectCoverageFrom: ['src/**/*.js', '!src/*.js'],
|
|
4
|
-
coverageDirectory: './coverage',
|
|
5
|
-
coverageReporters: ['html', 'text-summary'],
|
|
6
|
-
coverageThreshold: {
|
|
7
|
-
global: {
|
|
8
|
-
branches: 80,
|
|
9
|
-
functions: 80,
|
|
10
|
-
lines: 80,
|
|
11
|
-
statements: 80
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
modulePaths: ['<rootDir>/src/']
|
|
15
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
collectCoverage: true,
|
|
3
|
+
collectCoverageFrom: ['src/**/*.js', '!src/*.js'],
|
|
4
|
+
coverageDirectory: './coverage',
|
|
5
|
+
coverageReporters: ['html', 'text-summary'],
|
|
6
|
+
coverageThreshold: {
|
|
7
|
+
global: {
|
|
8
|
+
branches: 80,
|
|
9
|
+
functions: 80,
|
|
10
|
+
lines: 80,
|
|
11
|
+
statements: 80
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
modulePaths: ['<rootDir>/src/']
|
|
15
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "esnext",
|
|
4
|
+
"baseUrl": "./src"
|
|
5
|
+
},
|
|
6
|
+
"include": ["src/"]
|
|
7
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "<%= package.name %>",
|
|
3
|
-
"version": "<%= package.version %>",
|
|
4
|
-
"description": "<%= package.description %>",
|
|
5
|
-
"author": "<%= author.name %> <<%= author.email %>>",
|
|
6
|
-
"license": "<%= package.license %>",
|
|
7
|
-
"scripts": {
|
|
8
|
-
<% if (flags.addStorybook) { %>
|
|
9
|
-
"storybook": "start-storybook",
|
|
10
|
-
<% } %>
|
|
11
|
-
<% if (flags.addJest) { %>
|
|
12
|
-
"test": "jest",
|
|
13
|
-
<% } %>
|
|
14
|
-
"build": "cross-env NODE_ENV=production webpack",
|
|
15
|
-
"start": "cross-env NODE_ENV=development webpack serve"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {},
|
|
18
|
-
"devDependencies": {}
|
|
1
|
+
{
|
|
2
|
+
"name": "<%= package.name %>",
|
|
3
|
+
"version": "<%= package.version %>",
|
|
4
|
+
"description": "<%= package.description %>",
|
|
5
|
+
"author": "<%= author.name %> <<%= author.email %>>",
|
|
6
|
+
"license": "<%= package.license %>",
|
|
7
|
+
"scripts": {
|
|
8
|
+
<% if (flags.addStorybook) { %>
|
|
9
|
+
"storybook": "start-storybook",
|
|
10
|
+
<% } %>
|
|
11
|
+
<% if (flags.addJest) { %>
|
|
12
|
+
"test": "jest",
|
|
13
|
+
<% } %>
|
|
14
|
+
"build": "cross-env NODE_ENV=production webpack",
|
|
15
|
+
"start": "cross-env NODE_ENV=development webpack serve"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {},
|
|
18
|
+
"devDependencies": {}
|
|
19
19
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<% if (flags.addRedux) { %>
|
|
2
|
-
import { connect } from 'react-redux';
|
|
3
|
-
<% } %>
|
|
4
|
-
|
|
5
|
-
export default function App() {
|
|
6
|
-
return <h1>Hello World</h1>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
<% if (flags.addRedux) { %>
|
|
10
|
-
export default connect(
|
|
11
|
-
null,
|
|
12
|
-
null
|
|
13
|
-
)(App);
|
|
14
|
-
<% } %>
|
|
1
|
+
<% if (flags.addRedux) { %>
|
|
2
|
+
import { connect } from 'react-redux';
|
|
3
|
+
<% } %>
|
|
4
|
+
|
|
5
|
+
export <% if (!flags.addRedux) { %> default <% } %> function App() {
|
|
6
|
+
return <h1>Hello World</h1>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
<% if (flags.addRedux) { %>
|
|
10
|
+
export default connect(
|
|
11
|
+
null,
|
|
12
|
+
null
|
|
13
|
+
)(App);
|
|
14
|
+
<% } %>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width" />
|
|
6
|
-
</head>
|
|
7
|
-
<body>
|
|
8
|
-
<div id="root"></div>
|
|
9
|
-
</body>
|
|
10
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width" />
|
|
6
|
+
</head>
|
|
7
|
+
<body>
|
|
8
|
+
<div id="root"></div>
|
|
9
|
+
</body>
|
|
10
|
+
</html>
|