generator-jhipster-yellowbricks-angular-contextpath 1.1.1 → 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 +7 -24
- package/generators/angular/generator.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,18 +34,7 @@ npm install -g generator-jhipster-yellowbricks-angular-contextpath
|
|
|
34
34
|
|
|
35
35
|
## Usage
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Run JHipster with this blueprint and pass your desired context path:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
jhipster --blueprints yellowbricks-angular-contextpath \
|
|
43
|
-
--yellowbricks-angular-contextpath-config='{"contextPath":"/jh/"}'
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### With `import-jdl`
|
|
47
|
-
|
|
48
|
-
`import-jdl` does not support blueprint-specific CLI options. Create a `.yo-rc.json` in your project directory first:
|
|
37
|
+
Create a `.yo-rc.json` in your project directory with the desired context path:
|
|
49
38
|
|
|
50
39
|
```json
|
|
51
40
|
{
|
|
@@ -55,22 +44,16 @@ jhipster --blueprints yellowbricks-angular-contextpath \
|
|
|
55
44
|
}
|
|
56
45
|
```
|
|
57
46
|
|
|
58
|
-
Then run:
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
jhipster import-jdl your-app.jdl --blueprints yellowbricks-angular-contextpath
|
|
62
|
-
```
|
|
63
|
-
|
|
64
47
|
Replace `/jh/` with your actual context path. The trailing slash is required.
|
|
65
48
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
To use the latest unreleased version directly from GitHub:
|
|
49
|
+
Then run JHipster with this blueprint:
|
|
69
50
|
|
|
70
51
|
```bash
|
|
71
|
-
|
|
72
|
-
jhipster --blueprints yellowbricks-angular-contextpath
|
|
73
|
-
|
|
52
|
+
# Standard generator
|
|
53
|
+
jhipster --blueprints yellowbricks-angular-contextpath
|
|
54
|
+
|
|
55
|
+
# With JDL
|
|
56
|
+
jhipster import-jdl your-app.jdl --blueprints yellowbricks-angular-contextpath
|
|
74
57
|
```
|
|
75
58
|
|
|
76
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 —
|
|
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