generator-jhipster-yellowbricks-angular-contextpath 1.1.0 → 1.1.2

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.
package/README.md CHANGED
@@ -34,23 +34,26 @@ npm install -g generator-jhipster-yellowbricks-angular-contextpath
34
34
 
35
35
  ## Usage
36
36
 
37
- Run JHipster with this blueprint and pass your desired context path:
38
-
39
- ```bash
40
- jhipster --blueprints yellowbricks-angular-contextpath \
41
- --yellowbricks-angular-contextpath-config='{"contextPath":"/jh/"}'
37
+ Create a `.yo-rc.json` in your project directory with the desired context path:
38
+
39
+ ```json
40
+ {
41
+ "generator-jhipster-yellowbricks-angular-contextpath": {
42
+ "contextPath": "/jh/"
43
+ }
44
+ }
42
45
  ```
43
46
 
44
47
  Replace `/jh/` with your actual context path. The trailing slash is required.
45
48
 
46
- ## Pre-release
47
-
48
- To use the latest unreleased version directly from GitHub:
49
+ Then run JHipster with this blueprint:
49
50
 
50
51
  ```bash
51
- npm install -g idNoRD/generator-jhipster-yellowbricks-angular-contextpath#main
52
- jhipster --blueprints yellowbricks-angular-contextpath \
53
- --yellowbricks-angular-contextpath-config='{"contextPath":"/jh/"}'
52
+ # Standard generator
53
+ jhipster --blueprints yellowbricks-angular-contextpath
54
+
55
+ # With JDL
56
+ jhipster import-jdl your-app.jdl --blueprints yellowbricks-angular-contextpath
54
57
  ```
55
58
 
56
59
  [npm-image]: https://img.shields.io/npm/v/generator-jhipster-yellowbricks-angular-contextpath.svg
@@ -88,7 +88,7 @@ export default class extends BaseApplicationGenerator {
88
88
  const contextPath = this.blueprintConfig.contextPath;
89
89
  if (!contextPath) {
90
90
  this.log.warn(
91
- '[base-href blueprint] contextPath not configured — pass --yellowbricks-angular-contextpath-config=\'{"contextPath":"/jh/"}\' when running jhipster',
91
+ '[base-href blueprint] contextPath not configured — add {"generator-jhipster-yellowbricks-angular-contextpath":{"contextPath":"/jh/"}} to .yo-rc.json',
92
92
  );
93
93
  return;
94
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-jhipster-yellowbricks-angular-contextpath",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "JHipster blueprint to configure Angular application baseHref via a custom context path",
5
5
  "keywords": [
6
6
  "yeoman-generator",