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
package/.prettierrc
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"endOfLine": "auto",
|
|
3
|
+
"singleQuote": true,
|
|
4
|
+
"trailingComma": "none"
|
|
5
|
+
}
|
package/.stylelintrc
CHANGED
|
@@ -1,104 +1,188 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defaultSeverity": "
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"
|
|
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
|
-
"media-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"no-
|
|
72
|
-
"
|
|
73
|
-
"no-
|
|
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
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
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/LICENSE
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
Copyright 2018 ayan4m1 <andrew@bulletlogic.com>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# The Reactor - An Opinionated Generator
|
|
2
|
-
|
|
3
|
-
This project scaffolds a modern web application. It is fairly opinionated, but is customizable and extensible.
|
|
4
|
-
|
|
5
|
-
Here's the mile-long list of technologies the generated project can leverage:
|
|
6
|
-
|
|
7
|
-
- [Babel](https://babeljs.io/) - Compile modern ECMAScript to Node-compatible JS
|
|
8
|
-
- [Webpack](https://webpack.js.org/) - Bundle code, styles, markup, and more into a web application
|
|
9
|
-
- [husky](https://www.npmjs.com/package/husky) - Execute lint-staged before committing to Git
|
|
10
|
-
- [lint-staged](https://www.npmjs.com/package/lint-staged) - Execute linters for specific file types
|
|
11
|
-
- [ESLint](https://eslint.org/) - Apply hundreds of style/usage rules to ECMAScript
|
|
12
|
-
- [Prettier](https://prettier.io/) - Apply style/formatting rules to code
|
|
13
|
-
- [stylelint](https://stylelint.io/) - Apply style/usage rules to Sass
|
|
14
|
-
- [Bootstrap](https://getbootstrap.com/) - UI toolkit
|
|
15
|
-
- [React](https://reactjs.org/) - UI library
|
|
16
|
-
- [Redux](https://redux.js.org/) - Application state container
|
|
17
|
-
- [Redux-Saga](https://redux-saga.js.org/) - Redux middleware for action/side-effect interaction
|
|
18
|
-
- [Jest](https://jestjs.io/) - Unit, integration, and snapshot testing
|
|
1
|
+
# The Reactor - An Opinionated Generator
|
|
2
|
+
|
|
3
|
+
This project scaffolds a modern web application. It is fairly opinionated, but is customizable and extensible.
|
|
4
|
+
|
|
5
|
+
Here's the mile-long list of technologies the generated project can leverage:
|
|
6
|
+
|
|
7
|
+
- [Babel](https://babeljs.io/) - Compile modern ECMAScript to Node-compatible JS
|
|
8
|
+
- [Webpack](https://webpack.js.org/) - Bundle code, styles, markup, and more into a web application
|
|
9
|
+
- [husky](https://www.npmjs.com/package/husky) - Execute lint-staged before committing to Git
|
|
10
|
+
- [lint-staged](https://www.npmjs.com/package/lint-staged) - Execute linters for specific file types
|
|
11
|
+
- [ESLint](https://eslint.org/) - Apply hundreds of style/usage rules to ECMAScript
|
|
12
|
+
- [Prettier](https://prettier.io/) - Apply style/formatting rules to code
|
|
13
|
+
- [stylelint](https://stylelint.io/) - Apply style/usage rules to Sass
|
|
14
|
+
- [Bootstrap](https://getbootstrap.com/) - UI toolkit
|
|
15
|
+
- [React](https://reactjs.org/) - UI library
|
|
16
|
+
- [Redux](https://redux.js.org/) - Application state container
|
|
17
|
+
- [Redux-Saga](https://redux-saga.js.org/) - Redux middleware for action/side-effect interaction
|
|
18
|
+
- [Jest](https://jestjs.io/) - Unit, integration, and snapshot testing
|