jhiPrefix remains "jhi" after in .angular-cli.json being specified with --jhi-prefix
See original GitHub issueOverview of the issue
I am trying to generate a monolithic an Angular 4 app with jhipster. I have specified a custom – jhi-prefix but my generated angular components are services still have the “jhi” default prefix
Motivation for or Use Case As per the documentation, mentioning --jhi-prefix should
“Add prefix before services, components and state/route names (Default: jhi)”
Reproduce the error
I am generating the app using the following command
yo jhipster:app --skip-install --skip-user-management --jhi-prefix app --npm --skip-cache
Related issues https://github.com/jhipster/generator-jhipster/issues/6003
JHipster Version(s) 4.9.0
JHipster configuration
.yo-rc.json
{ "generator-jhipster": { "jhipsterVersion": "4.9.0", "baseName": "sonarpulse", "packageName": "com.sonarpulse", "packageFolder": "com/sonarpulse", "serverPort": "8080", "authenticationType": "jwt", "hibernateCache": "no", "clusteredHttpSession": false, "websocket": false, "databaseType": "mongodb", "devDatabaseType": "mongodb", "prodDatabaseType": "mongodb", "searchEngine": false, "messageBroker": false, "serviceDiscoveryType": false, "buildTool": "maven", "enableSocialSignIn": false, "enableSwaggerCodegen": false, "jwtSecretKey": "04c629cd4d358cbc94bee0c282430bcd394878a4", "clientFramework": "angularX", "useSass": false, "clientPackageManager": "npm", "applicationType": "monolith", "testFrameworks": [], "jhiPrefix": "app", "skipUserManagement": true, "enableTranslation": true, "nativeLanguage": "en", "languages": [ "en" ] } }
.angular-cli.json
{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "project": { "name": "sonarpulse" }, "apps": [{ "root": "src/main/webapp", "outDir": "target/www/app", "assets": [ "content", "i18n", "favicon.ico" ], "index": "index.html", "main": "app/app.main.ts", "polyfills": "app/polyfills.ts", "test": "src/test/javascript/spec/entry.ts", "tsconfig": "../../../tsconfig.json", "prefix": "jhi", "mobile": false, "styles": [ "content/css/vendor.css", "content/css/global.css" ], "scripts": [] }], "lint": [{ "project": "../../../tsconfig.json" }, { "project": "../../../tsconfig-aot.json" } ], "test": { "karma": { "config": "src/test/javascript/karma.conf.js" } }, "defaults": { "styleExt": "css", "prefixInterfaces": false, "component" : { "inlineStyle" : true, "inlineTemplate": false, "spec": false }, "directive" : { "spec": false }, "guard" : { "spec": false }, "pipe" : { "spec": false }, "service" : { "spec": false } }, "packageManager": "yarn" }
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Think I’ve spotted the issue - I’ll take this
@mahatosourav91 I think if using npm it should be same there as well. Again missing template I guess