@zohodesk/react-cli 0.0.1-beta.172 → 0.0.1-beta.174
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/.eslintrc.js +1 -0
- package/README.md +34 -2
- package/docs/VariableConversion.md +678 -0
- package/lib/configs/jest.config.js +8 -12
- package/lib/configs/libAlias.js +10 -3
- package/lib/configs/webpack.dev.config.js +12 -11
- package/lib/configs/webpack.docs.config.js +5 -4
- package/lib/configs/webpack.impact.config.js +5 -4
- package/lib/configs/webpack.prod.config.js +13 -12
- package/lib/jest/preProcessors/cssPreprocessor.js +16 -7
- package/lib/loaderUtils/getCSSLoaders.js +22 -10
- package/lib/postcss-plugins/hoverActivePlugin.js +30 -13
- package/lib/postcss-plugins/variableModificationPlugin/ErrorHandler.js +37 -0
- package/lib/postcss-plugins/variableModificationPlugin/index.js +247 -0
- package/lib/postcss-plugins/variableModifier.js +1 -0
- package/lib/schemas/index.js +11 -4
- package/package.json +1 -3
- package/templates/docs/css/style.css +1 -1
- package/templates/docs/index.html +9 -1
package/.eslintrc.js
CHANGED
@@ -125,6 +125,7 @@ let commonConfigs = {
|
|
125
125
|
'semi-spacing': [logLevel],
|
126
126
|
'arrow-spacing': [logLevel],
|
127
127
|
'arrow-body-style': [logLevel],
|
128
|
+
'prefer-const': [logLevel],
|
128
129
|
'arrow-parens': [logLevel, 'as-needed'],
|
129
130
|
'no-const-assign': [logLevel],
|
130
131
|
'no-dupe-class-members': [logLevel],
|
package/README.md
CHANGED
@@ -2,9 +2,36 @@
|
|
2
2
|
|
3
3
|
A CLI tool for build modern web application and libraries
|
4
4
|
|
5
|
+
# 0.0.1-beta.174
|
6
|
+
|
7
|
+
cli has been updated to fix compose issue faced when classname:hover exists and classname does not before compose
|
8
|
+
|
9
|
+
**Issue Fix:-**
|
10
|
+
* In react-cli version `0.0.1-beta.173`, when we use `start` command throws error issue fixed
|
11
|
+
* while using `cssVariableReplacementOptions`, compose issue faced in css files, when classname:hover exists and classname does not exist issue fixed
|
12
|
+
|
13
|
+
**Feature:-**
|
14
|
+
* `react-cli.test.classnameFormat` option added to change CssModules (Ex: import style from "./a.module.css" ) className transform template unittest case.
|
15
|
+
`classnameFormat` default value `[classname]` you can customize it. Example: `[classname]-[hash]`
|
16
|
+
|
17
|
+
**Changes:-**
|
18
|
+
* `jsonFile_test_*.json` files deleted after they used.
|
19
|
+
|
20
|
+
# 0.0.1-beta.173
|
21
|
+
|
22
|
+
Conversion for Variables from Variables to px in Supportapp completed (`variableIgnore.js` && `pxParserPostcss.js` to be referred to), and px to custom variables through the new `variableModificationPlugin`. Error Log generation can also be converted on enabling
|
23
|
+
|
24
|
+
**Features:**
|
25
|
+
1. variables are converted from px to custom variables ( options are consumed from `cssVariableReplacementOptions.json` present in source folder )
|
26
|
+
2. To enable the error log generation `errorLog` is to be made `true` in `cssVariableReplacementOptions.json` ( it will take a little longer than usual build time )
|
27
|
+
3. To enable the console display of errors that are generated, `errorInConsole` is to be made `true` in `cssVariableReplacementOptions.json`
|
28
|
+
4. To enable specific errors in the error log generation / error display on console, `DECLARATION_IGNORED`(for ignoring that particular line / declaration),`UNIT_ERROR` (when the Unit doesnt match the available units for the property),`RANGE_ERROR` (when the value does not fall within the range that is given for the property), `VARIABLE_PRESENT`(whether the value supposed to be in px for conversion sake is not converted from var() to px or if it's properly converted to px for conversion from px to var through our plugin) are to be individually made `true` in `cssVariableReplacementOptions.json`
|
29
|
+
|
30
|
+
For an more information and reference, refer to : `docs/VariableConversion.md `
|
31
|
+
|
5
32
|
# 0.0.1-beta.172
|
6
33
|
We have renamed some options, For Our future features convenience.
|
7
|
-
We have given fallback support.
|
34
|
+
We have given fallback support.
|
8
35
|
Deprecation Warnings:-
|
9
36
|
* `react-cli.app.hasRTL` ==> `react-cli.app.plugins.hasRTL`
|
10
37
|
* `react-cli.app.rtlExclude` ==> `react-cli.app.exclude.rtl`
|
@@ -15,7 +42,8 @@ these options have fallback support.
|
|
15
42
|
|
16
43
|
# 0.0.1-beta.171
|
17
44
|
|
18
|
-
|
45
|
+
Features added :
|
46
|
+
1. `react-cli.app.mediaQueryHoverActiveString` and `react-cli.docs.mediaQueryHoverActiveString` templates support added for @media(hover: hover) and @media(hover: none) queries. We can modify these to modify respective queries.
|
19
47
|
|
20
48
|
# 0.0.1-beta.170
|
21
49
|
|
@@ -69,6 +97,10 @@ Changes:-
|
|
69
97
|
1. `enableChunkHash` option enabled for dev mode, use it as `react-cli.app.enableChunkHash` in `package.json`
|
70
98
|
2. `--enable_efc=true` option added to enable efc by terminal
|
71
99
|
3. unwanted pem files removed
|
100
|
+
# 0.0.1-exp.167.1
|
101
|
+
Features:-
|
102
|
+
* In docs we have added `Description` for Component Props- check out it in `PropTypes` tab
|
103
|
+
|
72
104
|
|
73
105
|
# 0.0.1-beta.167
|
74
106
|
|