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 +14 -11
- package/generators/angular/generator.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,23 +34,26 @@ npm install -g generator-jhipster-yellowbricks-angular-contextpath
|
|
|
34
34
|
|
|
35
35
|
## Usage
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
To use the latest unreleased version directly from GitHub:
|
|
49
|
+
Then run JHipster with this blueprint:
|
|
49
50
|
|
|
50
51
|
```bash
|
|
51
|
-
|
|
52
|
-
jhipster --blueprints yellowbricks-angular-contextpath
|
|
53
|
-
|
|
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 —
|
|
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