@zohodesk/codestandard-validator 0.0.7-exp-13 → 1.0.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.
@@ -18,6 +18,9 @@ const {
18
18
  installPlugins
19
19
  } = require("../utils/PluginsInstallation/installPlugins");
20
20
  const path = require("path");
21
+ const {
22
+ Logger
23
+ } = require("../utils/Logger/Logger");
21
24
  async function hooks() {
22
25
  var jsonFilePath = path.join(__dirname, '..', '..', 'jsonUtils', 'fsUtils.json');
23
26
  if (!(getLastCommitHash() == getStoredCommitHash())) {
@@ -25,6 +28,7 @@ async function hooks() {
25
28
  data.commitHash = getLastCommitHash();
26
29
  return data;
27
30
  });
31
+ Logger.log(Logger.INFO_TYPE, `Some rules and plugins are being fetched from a remote source and installed...`);
28
32
  await executeMethodsThatReturnBooleanValue("Make sure zgit.csez.zohocorpin.com is accessible", cloneViaCdt, null);
29
33
  const {
30
34
  uninstalledPlugins
@@ -46,7 +46,7 @@ function cloneViaCdt() {
46
46
  token
47
47
  } = getConfigurationPrecommit();
48
48
  const currentEnv = getRunningEnv();
49
- Logger.log(Logger.INFO_TYPE, `Running in environment: ${currentEnv}`);
49
+ Logger.log(Logger.INFO_TYPE, `Application is running in the following environment:${currentEnv}`);
50
50
 
51
51
  // Clean up existing folder
52
52
  const deleteDir = getDeleteDirPath();
@@ -64,7 +64,7 @@ function getSupportedLanguage() {
64
64
  const {
65
65
  supportedExtensions
66
66
  } = getConfigurationPrecommit();
67
- const _language = supportedExtensions;
67
+ const _language = supportedExtensions || [];
68
68
  _language.push('.js');
69
69
  _language.push('.jsx');
70
70
  _language.push('.ts');
@@ -12,15 +12,9 @@ const {
12
12
  const {
13
13
  Logger
14
14
  } = require('../Logger/Logger');
15
- const {
16
- createVersionControlFile
17
- } = require('../FileAndFolderOperations/versionControl');
18
15
  const {
19
16
  getNodeModulesPath
20
17
  } = require('../General/getNodeModulesPath');
21
- const {
22
- spawn
23
- } = require('child_process');
24
18
 
25
19
  /**
26
20
  * @function installPlugins - installs uninstalled plugins for the project
@@ -39,13 +33,14 @@ function installPlugins(pluginsToBeInstalled) {
39
33
  if (arePluginsInstalledSuccessfully) {
40
34
  Logger.log(Logger.SUCCESS_TYPE, 'Plugins installation successful');
41
35
  let isPackageJsonRestored = restorePackageJsonContent(packageJsonBeforePluginsInstallation);
42
- if (isPackageJsonRestored) {
43
- createVersionControlFile(pluginsToBeInstalled);
44
- return true;
45
- } else {
46
- Logger.log(Logger.FAILURE_TYPE, 'Unable to restore package.json content');
47
- return false;
48
- }
36
+ // if(isPackageJsonRestored){
37
+ // createVersionControlFile(pluginsToBeInstalled)
38
+ // return true
39
+ // }
40
+ // else{
41
+ // Logger.log(Logger.FAILURE_TYPE,'Unable to restore package.json content')
42
+ // return false
43
+ // }
49
44
  } else {
50
45
  Logger.log(Logger.FAILURE_TYPE, "Unable to install plugins. Kindly retry the command");
51
46
  return false;
package/changeLog.md CHANGED
@@ -32,7 +32,7 @@
32
32
  2. Support for .properties file is also extended in this version along with existing support for file types .js, .jsx, .ts, .tsx
33
33
 
34
34
 
35
- # - Support For Stylelint
35
+ # 1.0.0 - Support For Stylelint
36
36
 
37
37
  1. Enhancement Parser support CSS files and linter
38
- 2. Clonet Configuration Flow Enhancement Validation
38
+ 2. Clone Configuration Flow Enhancement Validation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/codestandard-validator",
3
- "version": "0.0.7-exp-13",
3
+ "version": "1.0.0",
4
4
  "description": "library to enforce code standard using eslint",
5
5
  "main": "index.js",
6
6
  "scripts": {