@zohodesk/react-cli 0.0.1-exp.167.1 → 0.0.1-exp.167.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/.eslintrc.js +1 -0
  2. package/.prettierrc +6 -0
  3. package/README.md +98 -3
  4. package/bin/cli.js +10 -20
  5. package/docs/HoverActive.md +12 -0
  6. package/docs/InstallNode.md +28 -0
  7. package/docs/VariableConversion.md +678 -0
  8. package/lib/common/splitChunks.js +133 -7
  9. package/lib/configs/jest.config.js +8 -12
  10. package/lib/configs/libAlias.js +10 -3
  11. package/lib/configs/webpack.dev.config.js +21 -26
  12. package/lib/configs/webpack.docs.config.js +13 -19
  13. package/lib/configs/webpack.impact.config.js +13 -19
  14. package/lib/configs/webpack.prod.config.js +19 -15
  15. package/lib/jest/preProcessors/cssPreprocessor.js +16 -7
  16. package/lib/loaderUtils/configsAssetsLoaders.js +117 -0
  17. package/lib/loaderUtils/getCSSLoaders.js +51 -7
  18. package/lib/plugins/I18nSplitPlugin/I18nSplit.md +63 -54
  19. package/lib/postcss-plugins/{ExcludeRTLPlugin.js → ExcludePlugin.js} +1 -1
  20. package/lib/postcss-plugins/__test__/hoverActivePlugin.spec.js +22 -0
  21. package/lib/postcss-plugins/__test__/test1Input.css +39 -0
  22. package/lib/postcss-plugins/__test__/test1Output.css +39 -0
  23. package/lib/postcss-plugins/hoverActivePlugin.js +385 -0
  24. package/lib/postcss-plugins/variableModificationPlugin/ErrorHandler.js +37 -0
  25. package/lib/postcss-plugins/variableModificationPlugin/index.js +247 -0
  26. package/lib/postcss-plugins/variableModifier.js +244 -0
  27. package/lib/schemas/index.js +57 -6
  28. package/lib/servers/getCliPath.js +7 -3
  29. package/lib/utils/getOptions.js +29 -1
  30. package/package.json +4 -3
  31. package/cert/cert.pem +0 -37
  32. package/cert/key.pem +0 -27
  33. package/cert/passphrase.pem +0 -1
  34. package/eslint/NOTES.md +0 -3
  35. package/eslint/React_CDN.zip +0 -0
  36. package/eslint/a.sh +0 -14
  37. package/eslint/a23.c +0 -16
  38. package/eslint/a28.c +0 -25
  39. package/eslint/a29.c +0 -25
  40. package/eslint/a30.c +0 -29
  41. package/eslint/a31.c +0 -23
  42. package/eslint/a35.c +0 -23
  43. package/eslint/a36.c +0 -18
  44. package/eslint/a37.c +0 -25
  45. package/eslint/a38.c +0 -28
  46. package/eslint/a39.c +0 -17
  47. package/eslint/a40.c +0 -32
  48. package/eslint/mockapi.html +0 -18
  49. package/eslint/mockapi.md +0 -5
  50. package/eslint/testa/build.sh +0 -7
  51. package/eslint/testa/build1/index.html +0 -12
  52. package/eslint/testa/build1/js/2_.js +0 -15
  53. package/eslint/testa/build1/js/2_.js.map +0 -1
  54. package/eslint/testa/build1/js/main_.js +0 -40
  55. package/eslint/testa/build1/js/main_.js.map +0 -1
  56. package/eslint/testa/build1/js/runtime~main_.js +0 -251
  57. package/eslint/testa/build1/js/runtime~main_.js.map +0 -1
  58. package/eslint/testa/build2/index.html +0 -12
  59. package/eslint/testa/build2/js/2_.js +0 -15
  60. package/eslint/testa/build2/js/2_.js.map +0 -1
  61. package/eslint/testa/build2/js/3_.js +0 -15
  62. package/eslint/testa/build2/js/3_.js.map +0 -1
  63. package/eslint/testa/build2/js/main_.js +0 -46
  64. package/eslint/testa/build2/js/main_.js.map +0 -1
  65. package/eslint/testa/build2/js/runtime~main_.js +0 -251
  66. package/eslint/testa/build2/js/runtime~main_.js.map +0 -1
  67. package/eslint/testa/build3/index.710b00fba04c6c594ad3.html +0 -12
  68. package/eslint/testa/build3/js/2.321b867f0966f9c9cdfd_.js +0 -1
  69. package/eslint/testa/build3/js/main.eb2aec4c9f1c16a385e0_.js +0 -1
  70. package/eslint/testa/build3/js/runtime~main.fafbbe7484e9c126f4f7_.js +0 -1
  71. package/eslint/testa/build3/manifest.json +0 -1
  72. package/eslint/testa/build4/index.9ff03a2ccdc9b904f1fe.html +0 -12
  73. package/eslint/testa/build4/js/2.8b63ce57af6dd2bac274_.js +0 -1
  74. package/eslint/testa/build4/js/3.5208acbe37a44362090e_.js +0 -1
  75. package/eslint/testa/build4/js/main.a934d6c2e2329d97269e_.js +0 -1
  76. package/eslint/testa/build4/js/runtime~main.5b85dd9ab73069c1455a_.js +0 -1
  77. package/eslint/testa/build4/manifest.json +0 -1
  78. package/eslint/testa/package.json +0 -24
  79. package/eslint/testa/scr/chunk1.js +0 -3
  80. package/eslint/testa/scr/chunk2.js +0 -3
  81. package/eslint/testa/scr/index.html +0 -12
  82. package/eslint/testa/scr/index.js +0 -4
  83. package/eslint/testa/scr/utlis.js +0 -12
  84. package/eslint/testa/src/chunk1.js +0 -3
  85. package/eslint/testa/src/index.html +0 -12
  86. package/eslint/testa/src/index.js +0 -3
  87. package/eslint/testa/src/utlis.js +0 -7
@@ -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: {
@@ -65,11 +66,20 @@ var _default = {
65
66
  dirVarName: 'document.dir'
66
67
  },
67
68
  efc: {
68
- hasEFC: false,
69
+ hasEFC: {
70
+ value: false,
71
+ cli: 'enable_efc'
72
+ },
69
73
  createSDkFile: false,
70
74
  nameScope: 'ZOHODESK',
71
- version: 'default',
72
- outputFile: 'zohodesk-efc-sdk-[version].js',
75
+ version: {
76
+ value: 'stable',
77
+ cli: 'efc_version'
78
+ },
79
+ outputFile: {
80
+ value: 'efc-sdk-[version].js',
81
+ cli: 'efc_output_file'
82
+ },
73
83
  templateFilePath: '',
74
84
  localeAttr: 'data-efc-locale',
75
85
  localeDefaultValue: 'en_US',
@@ -150,10 +160,17 @@ var _default = {
150
160
  cli: 'mock_port'
151
161
  }
152
162
  },
163
+ mediaQueryHoverActiveString: {
164
+ hover: 'all and (min--moz-device-pixel-ratio:0) and (hover: hover), (hover: hover)',
165
+ none: '(hover: none)'
166
+ },
153
167
  disableES5Transpile: false,
154
168
  isReactMig: false,
155
169
  hasWidget: false,
156
- hasEFC: false,
170
+ hasEFC: {
171
+ value: false,
172
+ cli: 'enable_efc'
173
+ },
157
174
  enableChunkHash: {
158
175
  value: false,
159
176
  cli: 'hash_enable'
@@ -181,6 +198,9 @@ var _default = {
181
198
  cli: 'attr_name'
182
199
  },
183
200
  publicPaths: false,
201
+ // TODO: Deprecated
202
+ hasRTL: false,
203
+ rtlExclude: [],
184
204
  instrumentScript: {
185
205
  value: false,
186
206
  cli: 'instru_script'
@@ -193,8 +213,19 @@ var _default = {
193
213
  value: true,
194
214
  cli: 'enable_smaphook'
195
215
  },
196
- hasRTL: false,
197
- rtlExclude: [],
216
+ plugins: {
217
+ hasRTL: false,
218
+ hoverActive: false,
219
+ combinerMediaQuery: false,
220
+ cssVariableReplacement: false
221
+ },
222
+ exclude: {
223
+ rtl: [],
224
+ hoverActive: [],
225
+ combinerMediaQuery: [],
226
+ cssVariableReplacement: []
227
+ },
228
+ cssVariableReplacementConfig: '',
198
229
  seperateCssModules: {
199
230
  value: false,
200
231
  cli: 'sep_cssmodules'
@@ -256,15 +287,34 @@ var _default = {
256
287
  },
257
288
  branch: false
258
289
  },
290
+ mediaQueryHoverActiveString: {
291
+ hover: 'all and (min--moz-device-pixel-ratio:0) and (hover: hover), (hover: hover)',
292
+ none: '(hover: none)'
293
+ },
259
294
  componentFolder: 'src',
260
295
  cssUniqueness: {
261
296
  value: true,
262
297
  cli: 'css_unique'
263
298
  },
299
+ enableChunkHash: false,
264
300
  folder: 'src',
265
301
  disableES5Transpile: false,
302
+ // TODO: Deprecated
266
303
  hasRTL: false,
267
304
  rtlExclude: [],
305
+ plugins: {
306
+ hasRTL: false,
307
+ hoverActive: false,
308
+ combinerMediaQuery: false,
309
+ cssVariableReplacement: false
310
+ },
311
+ exclude: {
312
+ rtl: [],
313
+ hoverActive: [],
314
+ combinerMediaQuery: [],
315
+ cssVariableReplacement: []
316
+ },
317
+ cssVariableReplacementConfig: '',
268
318
  cssHashSelectors: {
269
319
  filenames: [],
270
320
  packages: []
@@ -275,6 +325,7 @@ var _default = {
275
325
  }
276
326
  },
277
327
  test: {
328
+ classnameFormat: '[classname]',
278
329
  srcBranch: {
279
330
  value: 'master',
280
331
  cli: 'src_branch'
@@ -9,16 +9,20 @@ var _path = _interopRequireDefault(require("path"));
9
9
 
10
10
  var _os = require("os");
11
11
 
12
+ var _fs = require("fs");
13
+
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
15
 
14
- let appPath = process.cwd();
16
+ const appPath = process.cwd();
15
17
  const isNodeModuleUnderAppFolder = __dirname.indexOf(appPath) !== -1;
16
- let isWindows = (0, _os.platform)().toLowerCase() === 'win32';
18
+ const isWindows = (0, _os.platform)().toLowerCase() === 'win32';
17
19
 
18
20
  const _getCliPath = !isNodeModuleUnderAppFolder ? libName => _path.default.join(__dirname, '..', '..', 'node_modules', '.bin', libName) : libName => libName;
19
21
 
20
22
  const suffixExt = isWindows ? '.cmd' : '';
21
23
 
22
24
  function getCliPath(libName) {
23
- return _getCliPath(libName) + suffixExt;
25
+ const cliPath = _getCliPath(libName + suffixExt);
26
+
27
+ return (0, _fs.existsSync)(cliPath) ? cliPath : libName + suffixExt;
24
28
  }
@@ -122,7 +122,34 @@ let defaulter = (target, source) => {
122
122
  return defaultObject;
123
123
  };
124
124
 
125
- global.reactCLIOptions = null;
125
+ global.reactCLIOptions = null; // function selectn(obj, key) {
126
+ // let temp = obj;
127
+ // let keys = key.split('.');
128
+ // for (let i = 0; i < keys.length; i++) {
129
+ // const element = keys[i];
130
+ // temp = temp && temp[element];
131
+ // }
132
+ // return temp;
133
+ // }
134
+
135
+ function deprecationSupport(options) {
136
+ // if (selectn(options, ".app.hasRTL") === true) {
137
+ if (options.app.hasRTL === true) {
138
+ options.app.plugins.hasRTL = true;
139
+ }
140
+
141
+ if (options.docs.hasRTL === true) {
142
+ options.docs.plugins.hasRTL = true;
143
+ }
144
+
145
+ if (options.app.rtlExclude.length > 0) {
146
+ options.app.exclude.rtl = options.app.rtlExclude;
147
+ }
148
+
149
+ if (options.docs.rtlExclude.length > 0) {
150
+ options.docs.exclude.rtl = options.docs.rtlExclude;
151
+ }
152
+ }
126
153
 
127
154
  let getOptions = () => {
128
155
  if (global.reactCLIOptions) {
@@ -142,6 +169,7 @@ let getOptions = () => {
142
169
 
143
170
  options.npmVersion = getNpmVersion();
144
171
  options.cwd = getCWD();
172
+ deprecationSupport(options);
145
173
  options.packageVersion = process.env.npm_package_version;
146
174
  global.reactCLIOptions = options;
147
175
  return options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "0.0.1-exp.167.1",
3
+ "version": "0.0.1-exp.167.2",
4
4
  "description": "A CLI tool for build modern web application and libraries",
5
5
  "scripts": {
6
6
  "init": "node ./lib/utils/init.js",
@@ -78,7 +78,6 @@
78
78
  "html-webpack-inject-attributes-plugin": "1.0.6",
79
79
  "html-webpack-plugin": "4.3.0",
80
80
  "http-proxy-middleware": "1.0.5",
81
- "identity-obj-proxy": "3.0.0",
82
81
  "jest": "26.4.0",
83
82
  "jsdom": "16.4.0",
84
83
  "loader-utils": "2.0.0",
@@ -91,8 +90,10 @@
91
90
  "nodemon": "2.0.4",
92
91
  "optimize-js": "1.0.3",
93
92
  "postcss": "7.0.32",
93
+ "postcss-combine-media-query": "1.0.1",
94
94
  "postcss-hash-classname": "0.4.0",
95
95
  "postcss-loader": "3.0.0",
96
+ "postcss-mobile-hover": "1.0.2",
96
97
  "postcss-selector-replace": "1.0.2",
97
98
  "prop-types": "15.7.2",
98
99
  "react": "16.13.1",
@@ -142,4 +143,4 @@
142
143
  "@babel/react"
143
144
  ]
144
145
  }
145
- }
146
+ }
package/cert/cert.pem DELETED
@@ -1,37 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIGXjCCBUagAwIBAgIQAtcYpsFFTaNHj+IMkHFT4TANBgkqhkiG9w0BAQsFADCB
3
- jzELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
4
- A1UEBxMHU2FsZm9yZDEYMBYGA1UEChMPU2VjdGlnbyBMaW1pdGVkMTcwNQYDVQQD
5
- Ey5TZWN0aWdvIFJTQSBEb21haW4gVmFsaWRhdGlvbiBTZWN1cmUgU2VydmVyIENB
6
- MB4XDTIxMDUxOTAwMDAwMFoXDTIyMDUxOTIzNTk1OVowHjEcMBoGA1UEAxMTY3Nl
7
- ei56b2hvY29ycGluLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
8
- AKvOzaIzBQ3PDjQoiEUfNzhalfKGftg4R1D79dNV31RSGG6iIwr8LqPopHwzdlVv
9
- LOuJPJ1V3HSZs3GkfsTAp6/RBWvloth3Yd+ucGFzHqe9JObGZLTiRizUfRsZnk4B
10
- f88sSF97WPy7PD4YFXrrgn134UC92+I+Y+5vem4SBGqG4iJNkuJJG861S5XTrW+h
11
- cgUPohjOoLr3LgdqT/uNo6vnXMXI2ifk+18oZZUp9PSiOK8ZOXORCq+3knddvTM9
12
- eezBEyBnSRk4eQGFhpKmOiZziJk0ekhwLS5FkuZuQ2V01pb02kfBqFtF0qRQNcRe
13
- XaQfijnSuWevQvkUNUtv/40CAwEAAaOCAyQwggMgMB8G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fChPeG6DFiyGH7gNuIY1WngI8hXwK
26
- ezMfJldH/sjKtawm6LyRk2VmUFe+HYiXO4eZxDuj4tRi/kgGnipYwlI=
27
- -----END RSA PRIVATE KEY-----
@@ -1 +0,0 @@
1
- Nb@$#3NGscc
package/eslint/NOTES.md DELETED
@@ -1,3 +0,0 @@
1
- Suggestions :
2
-
3
- 1. 'lint-setup', 'add-lint-scripts' not need to exposed
Binary file
package/eslint/a.sh DELETED
@@ -1,14 +0,0 @@
1
- #!/bin/bash
2
- sourcemap_needed=$1
3
- efc_needed=$2
4
- echo "efc_needed $efc_needed)"
5
- main() {
6
- echo "function call "
7
-
8
- return
9
- echo "afert functioin"
10
-
11
- }
12
-
13
- main
14
-
package/eslint/a23.c DELETED
@@ -1,16 +0,0 @@
1
- // Online C compiler to run C program online
2
- #include <stdio.h>
3
- // 23
4
-
5
- int main()
6
- {
7
- // Write C code here
8
- int i = 20, j = 22, k = 20, l = 10;
9
-
10
- for (int m = 0; m <= 10; m++)
11
- {
12
- l = ++i + ++j - k--;
13
- }
14
- printf("%d\n", l);
15
- return 0;
16
- }
package/eslint/a28.c DELETED
@@ -1,25 +0,0 @@
1
- // Online C compiler to run C program online
2
- #include <stdio.h>
3
- // 28
4
- int mark(int x)
5
- {
6
- if (x <= 0)
7
- {
8
- return 1;
9
- }
10
- return 0;
11
- }
12
-
13
- int main()
14
- {
15
- // Write C code here
16
- int x = 2345, t, a = 0;
17
- while (x > 0)
18
- {
19
- t = x % 10;
20
- a += mark(t);
21
- x /= 10;
22
- }
23
- printf("%d\n", a);
24
- return 0;
25
- }
package/eslint/a29.c DELETED
@@ -1,25 +0,0 @@
1
- // Online C compiler to run C program online
2
- #include <stdio.h>
3
- // 29
4
-
5
- int main()
6
- {
7
- // Write C code here
8
- int x = 777, y, s = 0, m, n, t, u;
9
- y = x;
10
- for (m = 0; y != 0; y /= 10)
11
- {
12
- u = y % 9;
13
- for (n = m, t = 1; n >= 0; n--)
14
- {
15
- t *= 9;
16
- }
17
- if (u < 5)
18
- {
19
- u += 3;
20
- }
21
- s = s * u + t;
22
- }
23
- printf("%d\n", s);
24
- return 0;
25
- }
package/eslint/a30.c DELETED
@@ -1,29 +0,0 @@
1
- // Online C compiler to run C program online
2
- #include <stdio.h>
3
- // 30
4
-
5
- int main()
6
- {
7
- // Write C code here
8
- int a[8] = {24, 27, 33, 27, 9, 43, 0, 3};
9
- int i, sum = 0;
10
- for (i = 0; i < 5; i = i + 1)
11
- {
12
- switch (a[i] % 3)
13
- {
14
- case 2:
15
- sum = sum * sum;
16
- break;
17
- case 1:
18
- sum += a[i];
19
- break;
20
- case 0:
21
- sum -= a[i];
22
- break;
23
- default:
24
- sum = sum * a[i];
25
- }
26
- }
27
- printf("%d\n", sum);
28
- return 0;
29
- }
package/eslint/a31.c DELETED
@@ -1,23 +0,0 @@
1
- // Online C compiler to run C program online
2
- #include <stdio.h>
3
- // 31
4
-
5
- int main()
6
- {
7
- // Write C code here
8
- int x = 16, y = 32, i = 0;
9
- do
10
- {
11
- if (x % 2 == 0)
12
- {
13
- y /= 2;
14
- }
15
- if (y % 2 < 1)
16
- {
17
- x /= 2;
18
- }
19
- i++;
20
- } while (x > 1);
21
- printf("%d\n", i);
22
- return 0;
23
- }