generator-jhipster-yellowbricks 1.2.4 → 2.0.0

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
@@ -27,12 +27,20 @@
27
27
 
28
28
  | Yellowbrick name | What it does |
29
29
  | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------- |
30
- | [generator-jhipster-yellowbricks-angular-contextpath](https://github.com/idNoRD/generator-jhipster-yellowbricks-angular-contextpath) | Sets `baseHref` in `angular.json` |
30
+ | [generator-jhipster-yellowbricks-angular-contextpath](https://github.com/idNoRD/generator-jhipster-yellowbricks-angular-contextpath) | Sets `baseHref` in `angular.json` and `proxy.config.mjs` |
31
31
  | [generator-jhipster-yellowbricks-spring-boot-contextpath](https://github.com/idNoRD/generator-jhipster-yellowbricks-spring-boot-contextpath) | Sets `context-path` in `application.yml` |
32
32
  | [generator-jhipster-yellowbricks-client-contextpath](https://github.com/idNoRD/generator-jhipster-yellowbricks-client-contextpath) | Sets `<base href>` in `index.html` and `swagger-ui/index.html` |
33
33
  | [generator-jhipster-yellowbricks-angular-relativepathresource](https://github.com/idNoRD/generator-jhipster-yellowbricks-angular-relativepathresource) | Makes logo URL relative in `navbar.scss` |
34
34
  | [generator-jhipster-yellowbricks-client-relativepathresource](https://github.com/idNoRD/generator-jhipster-yellowbricks-client-relativepathresource) | Makes logo URL relative in `loading.css` |
35
35
 
36
+ ## Waiting for your contribution
37
+
38
+ | Yellowbrick name | What it does |
39
+ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------- |
40
+ | generator-jhipster-yellowbricks-[cypress-contextpath](https://github.com/mshima/local-blueprints/blob/main/app/context-path.mjs#L96) | Sets `baseHref` for cypress |
41
+ | generator-jhipster-yellowbricks-vue-contextpath | Sets `baseHref` for vue |
42
+ | generator-jhipster-yellowbricks-vue-relativepathresource | Makes logo URL relative for vue |
43
+
36
44
  ## Prerequisites
37
45
 
38
46
  - Node.js `^22.18.0 || >=24.11.0`
@@ -7,6 +7,8 @@ import stripJsonComments from 'strip-json-comments';
7
7
 
8
8
  const require = createRequire(import.meta.url);
9
9
 
10
+ const REQUIRED_JHIPSTER_VERSION = '9.0.0';
11
+
10
12
  const KNOWN_BRICKS = new Set([
11
13
  'generator-jhipster-yellowbricks-angular-contextpath',
12
14
  'generator-jhipster-yellowbricks-spring-boot-contextpath',
@@ -27,19 +29,17 @@ export default class extends BaseApplicationGenerator {
27
29
  const { version } = require('../../package.json');
28
30
  console.log('');
29
31
  console.log('========================================');
30
- console.log(` YellowBricks blueprint v${version} `);
32
+ console.log(` YellowBricks blueprint v${version}`);
33
+ console.log(` Requires JHipster ${REQUIRED_JHIPSTER_VERSION}+`);
31
34
  console.log('========================================');
32
35
  console.log('');
33
36
  super(args, opts, { ...features, sbsBlueprint: true });
34
37
 
35
- // JHipster v8's yeoman-environment doesn't implement getContextMap (added in v9).
36
- // Polyfill it so the v9-based base generator can run inside a v8 environment.
37
38
  if (!('getContextMap' in this.env)) {
38
- const contextStore = new Map();
39
- this.env.getContextMap = (key, factory = () => new Map()) => {
40
- if (!contextStore.has(key)) contextStore.set(key, factory());
41
- return contextStore.get(key);
42
- };
39
+ throw new Error(
40
+ `JHipster ${REQUIRED_JHIPSTER_VERSION} or later is required.\n` +
41
+ ` Run: npm install -g generator-jhipster@${REQUIRED_JHIPSTER_VERSION}`,
42
+ );
43
43
  }
44
44
  }
45
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-jhipster-yellowbricks",
3
- "version": "1.2.4",
3
+ "version": "2.0.0",
4
4
  "description": "Yellowbricks main blueprint — orchestrates all yellowbricks in a single JHipster blueprint",
5
5
  "keywords": [
6
6
  "yeoman-generator",
@@ -50,7 +50,7 @@
50
50
  "eslint": "9.39.2",
51
51
  "eslint-config-prettier": "10.1.8",
52
52
  "eslint-plugin-prettier": "5.5.5",
53
- "generator-jhipster": "9.0.0-beta.3",
53
+ "generator-jhipster": "9.0.0",
54
54
  "globals": "17.3.0",
55
55
  "husky": "9.1.7",
56
56
  "jiti": "2.6.1",
@@ -62,7 +62,7 @@
62
62
  "yeoman-test": ">=10"
63
63
  },
64
64
  "engines": {
65
- "generator-jhipster": "9.0.0-beta.3",
65
+ "generator-jhipster": "9.0.0",
66
66
  "node": "^22.18.0 || >=24.11.0"
67
67
  }
68
68
  }