node.jsjhipsteryeomanyeoman-generator

Any possible ways to add answer for this question "may we anonymously report usage statistics to improve the tool over time?" in .yo-rc.json


Is there any possible ways to add answer for this question "may we anonymously report usage statistics to improve the tool over time?", which is asked as the 1st question when I hit "yo jhipster --force" on cmd, in .yo-rc.json. My .yo-rc.json file contains different required details but no answer for the above mentioned question. As the jhipster gets reinstalled everytime deployment is done on kubernets and the image gets recreated, and then jhipster command ran from script, it gets stuck at the first question prompt whose answer I am expecting to be taken from .yo-rc.json file, which is otherwise a manual task to go into cmd and manually answer the prompt for every deployment.

I am attaching my .yo-rc.json file. Please help me with my requirement.

{
  "generator-jhipster": {
    "baseName": "localApp",
    "packageName": "com.cg.localApp",
    "packageFolder": "com/cg/localApp",
    "serverPort": "*****",
    "authenticationType": "session",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": "no",
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "mysql",
    "searchEngine": false,
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "useSass": true,
    "applicationType": "monolith",
    "testFrameworks": ["gatling", "cucumber", "protractor"],
    "jhiPrefix": "cg",
    "enableTranslation": false,
    "jhipsterVersion": "6.10.3",
    "cacheProvider": "ehcache",
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "rememberMeKey": "****",
    "embeddableLaunchScript": false,
    "clientPackageManager": "npm",
    "clientFramework": "angularX",
    "clientTheme": "none",
    "creationTimestamp": 1608305785798,
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "otherModules": [],
    "blueprints": []
  }
}

Solution

  • There's an undocumented command line option --no-insight which does this, so you could use in .yo-rc.json as "noInsight": true.

    But deployment process should not require jhipster command, so I suspect something is wrong in your approach.