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.
Files changed (42) hide show
  1. package/.prettierrc +5 -5
  2. package/.stylelintrc +188 -104
  3. package/LICENSE +7 -9
  4. package/README.md +18 -18
  5. package/generators/app/index.js +392 -1
  6. package/generators/component/index.js +51 -1
  7. package/generators/module/index.js +127 -1
  8. package/generators/util/fs.js +34 -1
  9. package/package.json +63 -69
  10. package/templates/app/.babelrc +4 -9
  11. package/templates/app/.browserslistrc +3 -3
  12. package/templates/app/.editorconfig +11 -11
  13. package/templates/app/.esdoc.json +23 -23
  14. package/templates/app/.eslintrc.js +46 -185
  15. package/templates/app/.lintstagedrc +4 -4
  16. package/templates/app/.prettierrc +4 -4
  17. package/templates/app/.storybook/addons.js +1 -1
  18. package/templates/app/.storybook/config.js +14 -14
  19. package/templates/app/.storybook/webpack.config.babel.js +7 -7
  20. package/templates/app/.stylelintrc +188 -271
  21. package/templates/app/gitignore +2 -2
  22. package/templates/app/jest.config.js +15 -15
  23. package/templates/app/jsconfig.json +7 -8
  24. package/templates/app/package.json +18 -18
  25. package/templates/app/src/components/App.js +14 -14
  26. package/templates/app/src/index.html +10 -10
  27. package/templates/app/src/index.js +47 -50
  28. package/templates/app/src/index.scss +16 -16
  29. package/templates/app/src/reducers/application.js +21 -21
  30. package/templates/app/src/reducers/index.js +7 -7
  31. package/templates/app/src/sagas/application.js +9 -9
  32. package/templates/app/src/sagas/index.js +7 -7
  33. package/templates/app/src/selectors/application.js +1 -1
  34. package/templates/app/src/selectors/application.test.js +13 -13
  35. package/templates/app/src/utils/index.js +36 -36
  36. package/templates/app/webpack.config.babel.js +103 -103
  37. package/templates/component/index.js +19 -19
  38. package/templates/component/index.test.js +14 -14
  39. package/templates/module/reducer/index.js +20 -20
  40. package/templates/module/saga/index.js +9 -9
  41. package/generators/es.regexp.flags-ccfbed60.js +0 -1
  42. package/templates/app/src/icons.js +0 -4
package/.prettierrc CHANGED
@@ -1,5 +1,5 @@
1
- {
2
- "singleQuote": true,
3
- "trailingComma": "none",
4
- "endOfLine": "auto"
5
- }
1
+ {
2
+ "endOfLine": "auto",
3
+ "singleQuote": true,
4
+ "trailingComma": "none"
5
+ }
package/.stylelintrc CHANGED
@@ -1,104 +1,188 @@
1
- {
2
- "defaultSeverity": "error",
3
- "rules": {
4
- "at-rule-empty-line-before": [
5
- "always",
6
- {
7
- "except": [ "blockless-after-blockless", "first-nested" ],
8
- "ignore": [ "after-comment" ],
9
- "ignoreAtRules": [ "else" ]
10
- }
11
- ],
12
- "at-rule-name-newline-after": "always-multi-line",
13
- "at-rule-name-space-after": "always-single-line",
14
- "at-rule-semicolon-newline-after": "always",
15
- "at-rule-semicolon-space-before": "never",
16
- "block-closing-brace-empty-line-before": "never",
17
- "block-closing-brace-newline-after": [
18
- "always",
19
- {
20
- "ignoreAtRules": [ "else", "if" ]
21
- }
22
- ],
23
- "block-closing-brace-newline-before": "always-multi-line",
24
- "block-closing-brace-space-after": "always-single-line",
25
- "block-closing-brace-space-before": "always-single-line",
26
- "block-no-empty": true,
27
- "block-opening-brace-newline-after": "always",
28
- "block-opening-brace-newline-before": "never-single-line",
29
- "block-opening-brace-space-after": "always-single-line",
30
- "block-opening-brace-space-before": "always",
31
- "comment-empty-line-before": [
32
- "always",
33
- {
34
- "ignore": [ "after-comment", "stylelint-commands" ]
35
- }
36
- ],
37
- "comment-no-empty": true,
38
- "comment-whitespace-inside": "always",
39
- "custom-property-empty-line-before": null,
40
- "declaration-bang-space-after": "never",
41
- "declaration-bang-space-before": "always",
42
- "declaration-block-semicolon-newline-after": "always",
43
- "declaration-block-semicolon-newline-before": null,
44
- "declaration-block-semicolon-space-after": "always-single-line",
45
- "declaration-block-semicolon-space-before": "never",
46
- "declaration-block-single-line-max-declarations": 1,
47
- "declaration-block-trailing-semicolon": "always",
48
- "declaration-colon-newline-after": null,
49
- "declaration-colon-space-after": "always",
50
- "declaration-colon-space-before": "never",
51
- "declaration-empty-line-before": "never",
52
- "function-comma-newline-after": null,
53
- "function-comma-newline-before": null,
54
- "function-comma-space-after": "always",
55
- "function-comma-space-before": null,
56
- "function-max-empty-lines": 0,
57
- "function-whitespace-after": "always",
58
- "indentation": 2,
59
- "max-empty-lines": 2,
60
- "max-line-length": 100,
61
- "max-nesting-depth": 4,
62
- "media-feature-colon-space-after": "always",
63
- "media-feature-colon-space-before": "never",
64
- "media-feature-parentheses-space-inside": "never",
65
- "media-feature-range-operator-space-after": "always",
66
- "media-feature-range-operator-space-before": "always",
67
- "media-query-list-comma-newline-after": null,
68
- "media-query-list-comma-newline-before": null,
69
- "media-query-list-comma-space-after": null,
70
- "media-query-list-comma-space-before": null,
71
- "no-duplicate-at-import-rules": true,
72
- "no-duplicate-selectors": true,
73
- "no-empty-source": true,
74
- "no-eol-whitespace": true,
75
- "no-extra-semicolons": true,
76
- "no-invalid-double-slash-comments": true,
77
- "no-missing-end-of-source-newline": true,
78
- "rule-empty-line-before": [
79
- "always",
80
- {
81
- "except": [ "first-nested" ],
82
- "ignore": [ "after-comment" ]
83
- }
84
- ],
85
- "selector-attribute-brackets-space-inside": "never",
86
- "selector-attribute-operator-space-after": "never",
87
- "selector-attribute-operator-space-before": "never",
88
- "selector-combinator-space-after": "always",
89
- "selector-combinator-space-before": "always",
90
- "selector-descendant-combinator-no-non-space": true,
91
- "selector-list-comma-newline-after": "always",
92
- "selector-list-comma-newline-before": "never-multi-line",
93
- "selector-list-comma-space-after": "always-single-line",
94
- "selector-list-comma-space-before": null,
95
- "selector-max-empty-lines": 0,
96
- "string-no-newline": true,
97
- "string-quotes": "double",
98
- "value-list-comma-newline-after": "always-multi-line",
99
- "value-list-comma-newline-before": null,
100
- "value-list-comma-space-after": null,
101
- "value-list-comma-space-before": "never",
102
- "value-list-max-empty-lines": 0
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
- The MIT License
2
-
3
- Copyright 2018-2023 ayan4m1 <andrew@bulletlogic.com>
4
-
5
- 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:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
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