question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jhiPrefix remains "jhi" after in .angular-cli.json being specified with --jhi-prefix

See original GitHub issue

Overview 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:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sophiekoonincommented, Oct 15, 2017

Think I’ve spotted the issue - I’ll take this

0reactions
deepu105commented, Oct 15, 2017

@mahatosourav91 I think if using npm it should be same there as well. Again missing template I guess

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 6 Migration -.angular-cli.json to angular.json
ERROR: The specified command update is invalid, for available options see ng-help. then you need to run 2 commands as follows. npm install...
Read more >
Angular workspace configuration
The angular.json file at the root level of an Angular workspace provides workspace-wide and project-specific configuration defaults.
Read more >
Understanding the Angular CLI Workspace File
In this article we're going to cover the Angular Workspace concept and elaborate the schema of the new angular.json file. Contents. What is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found