@zohodesk/react-cli 0.0.1-exp.169.1 → 0.0.1-exp.175.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/.eslintrc.js +1 -0
  2. package/{CHANGELOG.md → CHANGELOG-fz.md} +0 -0
  3. package/Changelog.md +1019 -0
  4. package/README.md +17 -936
  5. package/docs/VariableConversion.md +678 -0
  6. package/lib/configs/jest.config.js +8 -10
  7. package/lib/configs/libAlias.js +10 -3
  8. package/lib/configs/resolvers.js +38 -0
  9. package/lib/configs/webpack.dev.config.js +19 -26
  10. package/lib/configs/webpack.docs.config.js +12 -19
  11. package/lib/configs/webpack.impact.config.js +13 -15
  12. package/lib/configs/webpack.prod.config.js +24 -28
  13. package/lib/constants.js +31 -0
  14. package/lib/jest/preProcessors/cssPreprocessor.js +14 -7
  15. package/lib/loaderUtils/getCSSLoaders.js +45 -8
  16. package/lib/pluginUtils/configHtmlWebpackPlugins.js +59 -0
  17. package/lib/pluginUtils/getDevPlugins.js +14 -34
  18. package/lib/pluginUtils/getProdPlugins.js +24 -42
  19. package/lib/postcss-plugins/{ExcludeRTLPlugin.js → ExcludePlugin.js} +1 -1
  20. package/lib/postcss-plugins/hoverActivePlugin.js +51 -27
  21. package/lib/postcss-plugins/variableModificationPlugin/ErrorHandler.js +37 -0
  22. package/lib/postcss-plugins/variableModificationPlugin/index.js +248 -0
  23. package/lib/postcss-plugins/variableModifier.js +244 -0
  24. package/lib/schemas/index.js +50 -10
  25. package/lib/servers/docsServerCore.js +13 -12
  26. package/lib/servers/getCliPath.js +1 -1
  27. package/lib/servers/httpsOptions.js +40 -9
  28. package/lib/servers/nowatchserver.js +12 -11
  29. package/lib/servers/server.js +14 -13
  30. package/lib/utils/getOptions.js +42 -14
  31. package/package.json +5 -34
  32. package/postpublish.js +6 -4
  33. package/templates/docs/css/style.css +1 -1
  34. package/templates/docs/index.html +9 -1
  35. package/cert/Tsicsezwild-22-23.crt +0 -37
  36. package/cert/Tsicsezwild-22-23.key +0 -27
@@ -0,0 +1,248 @@
1
+ "use strict";
2
+
3
+ const postcss = require('postcss');
4
+
5
+ const fs = require('fs');
6
+
7
+ const path = require('path');
8
+
9
+ const errors = [];
10
+ let allowedErrs = {};
11
+ const convertableProps = {
12
+ 'font-size': true,
13
+ margin: true,
14
+ 'margin-left': true,
15
+ 'margin-right': true,
16
+ 'margin-top': true,
17
+ 'margin-bottom': true,
18
+ padding: true,
19
+ 'padding-top': true,
20
+ 'padding-bottom': true,
21
+ 'padding-left': true,
22
+ 'padding-right': true,
23
+ width: true,
24
+ 'min-width': true,
25
+ 'max-width': true,
26
+ height: true,
27
+ 'min-height': true,
28
+ 'max-height': true,
29
+ top: true,
30
+ bottom: true,
31
+ left: true,
32
+ right: true
33
+ };
34
+ const constantValues = {
35
+ inherit: true,
36
+ initial: true,
37
+ auto: true,
38
+ 'fit-content': true,
39
+ unset: true
40
+ };
41
+
42
+ function getNumericValue(value) {
43
+ if (value.includes('var')) {
44
+ return parseInt(value.replace(/var\(--zd_size(\d+)\)/gi, '$1').replace(/var\(--zd_font_size(\d+)\)/gi, '$1'));
45
+ } // Not need for this dum loop
46
+ // allowed.forEach(alwdUnit => {
47
+ // if (value.includes(alwdUnit)) {
48
+ // return parseInt(value);
49
+ // }
50
+ // });
51
+
52
+
53
+ if (constantValues[value.toLowerCase()]) {
54
+ return 1;
55
+ }
56
+
57
+ return parseInt(value);
58
+ }
59
+
60
+ function pxToCalc(value) {
61
+ const arr = value.split(' ');
62
+ arr.forEach((val, index) => {
63
+ ['px'].forEach(unit => {
64
+ const valWithUnit = new RegExp(`(\\d+)${unit}`, 'gi');
65
+
66
+ if (valWithUnit.test(val)) {
67
+ arr[index] = val.replace(valWithUnit, '(var(--zd_size$1))');
68
+ }
69
+ });
70
+ });
71
+ return arr.join(' ');
72
+ }
73
+
74
+ const addError = errstr => {
75
+ errors.push(`{\n${errstr}\n}\n`);
76
+ };
77
+
78
+ const errorFunction = (errStr, type) => {
79
+ if (type === 'DECLARATION_IGNORED' && allowedErrs.DECLARATION_IGNORED) {
80
+ addError(errStr);
81
+ } else if (type === 'UNIT_ERROR' && allowedErrs.UNIT_ERROR) {
82
+ addError(errStr);
83
+ } else if (type === 'RANGE_ERROR' && allowedErrs.RANGE_ERROR) {
84
+ addError(errStr);
85
+ } else if (type === 'VARIABLE_PRESENT' && allowedErrs.VARIABLE_PRESENT) {
86
+ addError(errStr);
87
+ }
88
+ };
89
+
90
+ const singleConvertor = (value, changeVal, details, range) => {
91
+ const {
92
+ path,
93
+ filename,
94
+ decl
95
+ } = details;
96
+
97
+ if (getNumericValue(value) >= range.start && getNumericValue(value) <= range.end || getNumericValue(value) === 0) {
98
+ let retVal = value.replace(/(\d+)px/gi, changeVal.replace('$$', '$1'));
99
+
100
+ if (/^-var/.test(retVal)) {
101
+ retVal = `calc( ${retVal.substring(1)} * -1 )`;
102
+ }
103
+
104
+ return retVal;
105
+ } // if(unitErrorVal && unitErrorVal != '0' ){
106
+ // console.log(value, 'not within range')
107
+
108
+
109
+ errorFunction(` prop: ${decl.prop} ,\n value : ${decl.value} ,\n filename : ${filename} ,\n filepath : ${path} ,\n line : ${decl.source.start.line} ,\n message : value (${value}) (${typeof value}) not within range (${range.start},${range.end})\r`, 'RANGE_ERROR'); // }
110
+ // addError(` prop: ${decl.prop} ,\n value : ${decl.value} ,\n filename : ${filename} ,\n filepath : ${path} ,\n line : ${decl.source.start.line} ,\n message : value (${value}) not within range (${range.start},${range.end})\r`)
111
+
112
+ return value;
113
+ };
114
+
115
+ module.exports = postcss.plugin('postcss-variable-report', cssVariableReplacementConfig => {
116
+ const rawdata = fs.readFileSync(cssVariableReplacementConfig);
117
+ const data = JSON.parse(rawdata);
118
+ const {
119
+ errorsAllowed,
120
+ settings: settingsObject,
121
+ errorLog: errorLogStatus,
122
+ errorInConsole: errorConsoleStatus
123
+ } = data; // const keys = Object.keys(settingsObject);
124
+
125
+ fs.writeFileSync('./css_error.log', '');
126
+ allowedErrs = errorsAllowed;
127
+ const replacementArray = [];
128
+ Object.keys(settingsObject).forEach(key => {
129
+ Object.values(settingsObject[key].replacements).forEach(val => {
130
+ if (!replacementArray.includes(val)) {
131
+ replacementArray.push(val);
132
+ }
133
+ });
134
+ });
135
+ let regValStr = '';
136
+ replacementArray.forEach((val, index) => {
137
+ if (index !== replacementArray.length - 1) {
138
+ regValStr += `${val.replace('$$', '\\d+').replace('(', '\\(').replace(')', '\\)')}|`;
139
+ } else {
140
+ regValStr += `${val.replace('$$', '\\d+').replace('(', '\\(').replace(')', '\\)')}`;
141
+ }
142
+ });
143
+ const valRegex = new RegExp(regValStr, 'gi');
144
+ return rootOriginal => {
145
+ rootOriginal.walkRules(rule => {
146
+ // rule.nodes[-1] = {}
147
+ // need map, forEach fine less memory
148
+ rule.nodes.forEach((decl, position) => {
149
+ // case font-size
150
+ const commentStr = 'variable:ignore';
151
+ const prevNode = rule.nodes[position - 1];
152
+ const fromPath = rootOriginal.source.input.from; // this will be problem for linux and mac use require('path').sep
153
+ // split not need use slice and lastIndexOf less memory
154
+
155
+ const filename = fromPath.split(path.sep).pop();
156
+
157
+ if (prevNode && prevNode.type === 'comment' && prevNode.text.toLowerCase().includes(commentStr)) {
158
+ const errStr = ` prop: ${decl.prop} ,\n value : ${decl.value} ,\n filename : ${filename} ,\n filepath : ${fromPath} ,\n line : ${decl.source.start.line} ,\n message : Declaration Ignored \r`;
159
+ errorFunction(errStr, 'DECLARATION_IGNORED');
160
+ return;
161
+ }
162
+
163
+ if (settingsObject[decl.prop] && !decl.value.includes('var(--')) {
164
+ const settings = settingsObject[decl.prop]; // console.log(settings)
165
+
166
+ const {
167
+ allowed,
168
+ range
169
+ } = settings; // suggestion filter !decl.value.includes('calc')
170
+ // Reason below some of logic happen based on this
171
+
172
+ const unit = decl.value.toString() // no need round braket since you do not need group for less memory
173
+ .replace(/\d+/gi, '').replace('var(--zd_size)', 'px').replace('var(--zd_font_size)', 'px').split(' ').filter(x => x !== ''); // unit = unit.replace(unit, unit.replace('-',''))
174
+ // console.log('unit : ');
175
+ // console.log(unit);
176
+
177
+ unit.forEach((val, index) => {
178
+ allowed.forEach(alwdVal => {
179
+ if (val.includes(alwdVal)) {
180
+ // ## for what purpose
181
+ unit[index] = val.replace(`-${alwdVal}`, `${alwdVal}`).replace(`-.${alwdVal}`, `${alwdVal}`);
182
+ }
183
+ });
184
+ });
185
+ let unitError = false;
186
+ let unitErrorVal = '';
187
+ unit.forEach(val => {
188
+ if (!val.includes('calc')) {
189
+ if (!allowed.includes(val.toString())) {
190
+ unitError = true;
191
+ unitErrorVal = val;
192
+ }
193
+ }
194
+ }); // console.log(allowed, replacements, range)
195
+
196
+ if (!unitError) {
197
+ // use variable decl.value.split(' ')
198
+ if (range) {
199
+ // console.log('multiple :', decl.value)
200
+ let newVal = '';
201
+ decl.value.split(' ').forEach(singleVal => {
202
+ newVal += `${singleConvertor(singleVal, settings.replacements.px, {
203
+ decl,
204
+ filename,
205
+ path: fromPath
206
+ }, range)} `;
207
+ });
208
+ decl.value = newVal;
209
+ }
210
+ } else {
211
+ if (!decl.value.includes('calc')) {
212
+ // addError(` prop: ${decl.prop} ,\n value : ${decl.value} ,\n filename : ${filename} ,\n filepath : ${path} ,\n line : ${decl.source.start.line} ,\n unit : ${unitErrorVal} ,\n message : ${unitErrorVal} (Unit) Not Allowed \r`);
213
+ errorFunction(` prop: ${decl.prop} ,\n value : ${decl.value} ,\n filename : ${filename} ,\n filepath : ${fromPath} ,\n line : ${decl.source.start.line} ,\n unit : ${unitErrorVal} ,\n message : ${unitErrorVal} (Unit) Not Allowed \r`, 'UNIT_ERROR');
214
+ } else {
215
+ decl.value = pxToCalc(decl.value);
216
+ }
217
+ }
218
+ } else {
219
+ if (decl.prop && decl.value && !decl.prop.includes('--') && valRegex.test(decl.value) && (settingsObject[decl.prop] || convertableProps[decl.prop]) && decl.value.includes('var') && !decl.value.includes('calc')) {
220
+ errorFunction(` prop: ${decl.prop} ,\n value : ${decl.value} ,\n filename : ${filename} ,\n filepath : ${fromPath} ,\n line : ${decl.source.start.line} ,\n message : value (${decl.value}) has var in it, kindly check`, 'VARIABLE_PRESENT');
221
+ }
222
+ }
223
+ });
224
+ }); // console.log(filename)
225
+ // console.log('Done!')
226
+ // console.log('----------------------------------------------------------------------------------------------------------------------')
227
+
228
+ if (errorLogStatus) {
229
+ fs.writeFileSync('./css_error.log', '');
230
+
231
+ if (errors.length > 0) {
232
+ errors.forEach(err => {
233
+ fs.appendFileSync('./css_error.log', err);
234
+ }); // console.log('----------------------------------------------------------------------------------------------------------------------')
235
+ }
236
+ }
237
+
238
+ if (errorConsoleStatus) {
239
+ if (errors.length > 0) {
240
+ errors.forEach(err => {
241
+ // fs.appendFileSync('./css_error.log', err);
242
+ console.log(err);
243
+ });
244
+ console.log('----------------------------------------------------------------------------------------------------------------------');
245
+ }
246
+ }
247
+ };
248
+ });
@@ -0,0 +1,244 @@
1
+ "use strict";
2
+
3
+ const postcss = require('postcss');
4
+
5
+ const path = require('path');
6
+
7
+ const fs = require('fs');
8
+
9
+ function populateArray(start, end) {
10
+ let temp = [];
11
+
12
+ for (var i = start; i < end; i++) {
13
+ temp.push(i);
14
+ }
15
+
16
+ return temp;
17
+ }
18
+
19
+ let allwdVars = {
20
+ 'font-size': ['px', 'em']
21
+ };
22
+ let numberObject = {
23
+ 'font-size': {
24
+ allowed: ['px', 'em'],
25
+ replacements: {
26
+ px: 'var(--zd_font_size$$)',
27
+ em: 'var(--zd_font_size$$em)'
28
+ },
29
+ //[5,10,15,20,25],
30
+ available: populateArray(0, 251),
31
+ replacementValues: {
32
+ px: [],
33
+ em: []
34
+ }
35
+ },
36
+ 'margin': {
37
+ allowed: ['px'],
38
+ replacements: {
39
+ px: 'var(--zd_size$$)'
40
+ },
41
+ available: populateArray(-250, 251),
42
+ replacementValues: {
43
+ px: []
44
+ }
45
+ },
46
+ 'margin-left': {
47
+ allowed: ['px'],
48
+ replacements: {
49
+ px: 'var(--zd_size$$)'
50
+ },
51
+ available: populateArray(-250, 251),
52
+ replacementValues: {
53
+ px: []
54
+ }
55
+ },
56
+ 'margin-right': {
57
+ allowed: ['px'],
58
+ replacements: {
59
+ px: 'var(--zd_size$$)'
60
+ },
61
+ available: populateArray(-250, 251),
62
+ replacementValues: {
63
+ px: []
64
+ }
65
+ },
66
+ 'margin-top': {
67
+ allowed: ['px'],
68
+ replacements: {
69
+ px: 'var(--zd_size$$)'
70
+ },
71
+ available: populateArray(-250, 251),
72
+ replacementValues: {
73
+ px: []
74
+ }
75
+ },
76
+ 'margin-bottom': {
77
+ allowed: ['px'],
78
+ replacements: {
79
+ px: 'var(--zd_size$$)'
80
+ },
81
+ available: populateArray(-250, 251),
82
+ replacementValues: {
83
+ px: []
84
+ }
85
+ }
86
+ };
87
+
88
+ function hasIgnoreComment(node) {
89
+ return node ? node.type == 'comment' ? node.text == 'Variable:Ignore' ? true : false : false : false;
90
+ }
91
+
92
+ let errors = [];
93
+ module.exports = postcss.plugin('postcss-variable-report', () => rootOriginal => {
94
+ // console.log('inside postcss plugin')
95
+ // fs.writeFile('./css_error.log', '\r\nLog File: \r\n\r\n', (err) => {
96
+ // if(err)console.log(err);
97
+ // });
98
+ // console.log(rootOriginal.source.input.file);
99
+ if (!rootOriginal.source.input.file.includes('css_error')) {
100
+ rootOriginal.walkRules(rule => {
101
+ rule.walkDecls((decl, position) => {
102
+ // case font-size
103
+ if (!hasIgnoreComment(rule.nodes[position - 1])) {
104
+ console.log(settings);
105
+ let unit = decl.value.replace(/[0-9]/g, '');
106
+ let settings = numberObject[decl.prop];
107
+ let path = rootOriginal.source.input.from;
108
+ let filename = path.split('\\');
109
+ filename = filename[filename.length - 1];
110
+
111
+ if (decl.prop === 'font-size' || decl.prop === 'margin-left' || decl.prop === 'margin-right' || decl.prop === 'margin-top' || decl.prop === 'margin-bottom') {
112
+ let {
113
+ allowed,
114
+ replacements,
115
+ available
116
+ } = settings;
117
+
118
+ if (!rootOriginal.source.input.from.includes('node_modules')) {
119
+ if (unit != 0) {
120
+ if (allowed.includes(unit)) {
121
+ // console.log(available, parseInt(decl.value))
122
+ if (available.includes(parseInt(decl.value))) {
123
+ // replacementValues[unit].push({[decl.value] : replacements[unit].replace('$$', parseInt(decl.value))})
124
+ decl.value = replacements[unit].replace('$$', parseInt(decl.value)); //console.log("replacements:")
125
+ } else {
126
+ let err = {
127
+ prop: decl.prop,
128
+ value: decl.value,
129
+ filename,
130
+ filepath: rootOriginal.source.input.from,
131
+ line: decl.source.start.line,
132
+ unit,
133
+ message: 'value not available consider others'
134
+ };
135
+ errors.push(err);
136
+ }
137
+ } else {
138
+ let err = {
139
+ prop: decl.prop,
140
+ value: decl.value,
141
+ filename,
142
+ filepath: rootOriginal.source.input.from,
143
+ line: decl.source.start.line,
144
+ unit,
145
+ message: 'Unit not supported'
146
+ };
147
+ errors.push(err);
148
+ }
149
+ }
150
+ }
151
+ } else if (decl.prop === 'margin') {
152
+ let {
153
+ allowed,
154
+ replacements,
155
+ available
156
+ } = settings; //console.log(decl.prop + " " + decl.value)
157
+
158
+ let valArr = decl.value.split(' '); //console.log(valArr)
159
+ //console.log(allowed, replacements, available)
160
+
161
+ let hasError = false;
162
+ let newVal = '';
163
+ valArr.forEach(val => {
164
+ let unit = val.replace(parseInt(val), '');
165
+ let numVal = parseInt(val);
166
+
167
+ if (unit != 0) {
168
+ if (allowed.includes(unit)) {
169
+ if (available.includes(numVal)) {
170
+ if (numVal >= 0) {
171
+ if (!hasError) {
172
+ newVal += replacements[unit].replace('$$', numVal) + " ";
173
+ }
174
+ } else {
175
+ if (!hasError) {
176
+ newVal += `calc(${replacements[unit].replace('$$', numVal * -1)} * -1)` + " ";
177
+ }
178
+ }
179
+ } else {
180
+ hasError = true;
181
+ let err = {
182
+ prop: decl.prop,
183
+ value: numVal,
184
+ filename,
185
+ filepath: rootOriginal.source.input.from,
186
+ line: decl.source.start.line,
187
+ unit,
188
+ message: 'value not available consider others'
189
+ };
190
+ errors.push(err);
191
+ }
192
+ } else {
193
+ hasError = true;
194
+ let err = {
195
+ prop: decl.prop,
196
+ value: decl.value,
197
+ filename,
198
+ filepath: rootOriginal.source.input.from,
199
+ line: decl.source.start.line,
200
+ unit,
201
+ message: 'Unit not supported'
202
+ };
203
+ errors.push(err);
204
+ }
205
+ }
206
+ });
207
+
208
+ if (!hasError) {
209
+ decl.value = newVal;
210
+ }
211
+ }
212
+ }
213
+ });
214
+ }); //fs.writeFile('./src/trial.json', JSON.stringify(variables) ,(err) =>{
215
+ // if(err)console.log(err);
216
+ // else{
217
+ // console.log('updated successfully');
218
+ // }
219
+ // })
220
+ // console.log(errors)
221
+
222
+ let errorArr = [];
223
+ errors.forEach(errStr => {
224
+ errorArr.push(` prop: ${errStr.prop} ,\n value : ${errStr.value} ,\n filename : ${errStr.filename} ,\n filepath : ${errStr.filepath} ,\n line : ${errStr.line} ,\n unit : ${errStr.unit} ,\n message : ${errStr.message} \r`);
225
+ }); //fs.writeFile('./css_error.log','', (err) =>{
226
+ // if(err){
227
+ // console.log(err);
228
+ // }
229
+ //});
230
+ // errorArr.forEach(err => {
231
+ // let data = `\n{\n${err}\n},\n`;
232
+ // //fs.appendFile('./css_error.log',data,(err)=>{
233
+ // // if(err){
234
+ // // console.log(err);
235
+ // // }
236
+ // //})
237
+ // });
238
+ // fs.writeFileSync('./css_error.log','');
239
+ // errorArr.forEach(err => {
240
+ // let data = `\n{\n${err}\n},\n`;
241
+ // fs.appendFileSync('./css_error.log',data);
242
+ // });
243
+ }
244
+ });
@@ -13,6 +13,7 @@ var _getCurrentBranch = _interopRequireDefault(require("../utils/getCurrentBranc
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
+ // TODO move deprecated options to separate file and manage seperately
16
17
  var _default = {
17
18
  cliRootPath: null,
18
19
  unstableDepsInverse: {
@@ -90,6 +91,10 @@ var _default = {
90
91
  cssDirStatement: null
91
92
  },
92
93
  app: {
94
+ moduleResolvePath: {
95
+ value: '',
96
+ cli: 'module_resolve_path'
97
+ },
93
98
  // this option only for impact testing
94
99
  devCssFileBountry: {
95
100
  value: '',
@@ -136,6 +141,10 @@ var _default = {
136
141
  value: 'dev',
137
142
  cli: 'app_mode'
138
143
  },
144
+ httpsCerts: {
145
+ value: '',
146
+ cli: 'https_certs'
147
+ },
139
148
  branch: {
140
149
  value: 'master',
141
150
  cli: 'app_branch'
@@ -159,6 +168,10 @@ var _default = {
159
168
  cli: 'mock_port'
160
169
  }
161
170
  },
171
+ mediaQueryHoverActiveString: {
172
+ hover: 'all and (min--moz-device-pixel-ratio:0) and (hover: hover), (hover: hover)',
173
+ none: '(hover: none)'
174
+ },
162
175
  disableES5Transpile: false,
163
176
  isReactMig: false,
164
177
  hasWidget: false,
@@ -193,6 +206,9 @@ var _default = {
193
206
  cli: 'attr_name'
194
207
  },
195
208
  publicPaths: false,
209
+ // TODO: Deprecated
210
+ hasRTL: false,
211
+ rtlExclude: [],
196
212
  instrumentScript: {
197
213
  value: false,
198
214
  cli: 'instru_script'
@@ -205,8 +221,19 @@ var _default = {
205
221
  value: true,
206
222
  cli: 'enable_smaphook'
207
223
  },
208
- hasRTL: false,
209
- rtlExclude: [],
224
+ plugins: {
225
+ hasRTL: false,
226
+ hoverActive: false,
227
+ combinerMediaQuery: false,
228
+ cssVariableReplacement: false
229
+ },
230
+ exclude: {
231
+ rtl: [],
232
+ hoverActive: [],
233
+ combinerMediaQuery: [],
234
+ cssVariableReplacement: []
235
+ },
236
+ cssVariableReplacementConfig: '',
210
237
  seperateCssModules: {
211
238
  value: false,
212
239
  cli: 'sep_cssmodules'
@@ -221,8 +248,6 @@ var _default = {
221
248
  value: 'zd',
222
249
  cli: 'class_prefix'
223
250
  },
224
- combinerMq: false,
225
- hoverActive: false,
226
251
  selectorReplace: null,
227
252
  devConsoleExculde: {
228
253
  value: false,
@@ -236,6 +261,7 @@ var _default = {
236
261
  replaceText: '//<!--AssetsFromBuild -->'
237
262
  },
238
263
  htmlTemplate: {
264
+ minify: null,
239
265
  inject: true
240
266
  },
241
267
  removePropTypes: false,
@@ -270,18 +296,34 @@ var _default = {
270
296
  },
271
297
  branch: false
272
298
  },
299
+ mediaQueryHoverActiveString: {
300
+ hover: 'all and (min--moz-device-pixel-ratio:0) and (hover: hover), (hover: hover)',
301
+ none: '(hover: none)'
302
+ },
273
303
  componentFolder: 'src',
274
304
  cssUniqueness: {
275
305
  value: true,
276
306
  cli: 'css_unique'
277
307
  },
278
308
  enableChunkHash: false,
279
- combinerMq: false,
280
- hoverActive: false,
281
309
  folder: 'src',
282
310
  disableES5Transpile: false,
311
+ // TODO: Deprecated
283
312
  hasRTL: false,
284
313
  rtlExclude: [],
314
+ plugins: {
315
+ hasRTL: false,
316
+ hoverActive: false,
317
+ combinerMediaQuery: false,
318
+ cssVariableReplacement: false
319
+ },
320
+ exclude: {
321
+ rtl: [],
322
+ hoverActive: [],
323
+ combinerMediaQuery: [],
324
+ cssVariableReplacement: []
325
+ },
326
+ cssVariableReplacementConfig: '',
285
327
  cssHashSelectors: {
286
328
  filenames: [],
287
329
  packages: []
@@ -292,6 +334,7 @@ var _default = {
292
334
  }
293
335
  },
294
336
  test: {
337
+ classnameFormat: '[classname]',
295
338
  srcBranch: {
296
339
  value: 'master',
297
340
  cli: 'src_branch'
@@ -309,7 +352,6 @@ var _default = {
309
352
  cli: 'branch_name'
310
353
  },
311
354
  impactServerDomain: {
312
- //value: 'ht' + 'tp://desk-qa-impact.tsi.zohocorpin.com:8080',
313
355
  value: 'ht' + 'tp://desk-automation.csez.zohocorpin.com:8080',
314
356
  cli: 'impact_server_domain'
315
357
  },
@@ -332,7 +374,6 @@ var _default = {
332
374
  cli: 'service_name'
333
375
  },
334
376
  impactServerDomain: {
335
- //value: 'ht' + 'tp://desk-qa-impact.tsi.zohocorpin.com:8080',
336
377
  value: 'ht' + 'tp://desk-automation.csez.zohocorpin.com:8080',
337
378
  cli: 'impact_server_domain'
338
379
  },
@@ -370,7 +411,7 @@ var _default = {
370
411
  cli: 'path_to_sub_projs'
371
412
  },
372
413
  tokenGit: {
373
- value: 'YbByNJ3yURAm92Lhx4vW',
414
+ value: '',
374
415
  cli: 'git_token'
375
416
  },
376
417
  changesOnly: {
@@ -551,7 +592,6 @@ var _default = {
551
592
  },
552
593
  impactServerDomain: {
553
594
  value: 'ht' + 'tp://desk-automation.csez.zohocorpin.com:8080',
554
- //value: 'ht' + 'tp://desk-qa-impact.tsi.zohocorpin.com:8080',
555
595
  cli: 'impact_server_domain'
556
596
  },
557
597
  impactRun: {