How to use the generator-jhipster/generators/generator-base.js.prototype function in generator-jhipster

To help you get started, we’ve selected a few generator-jhipster examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bastienmichaux / generator-jhipster-db-helper / generators / dbh.js View on Github external
(onResolve) => {
                const conf = onResolve['generator-jhipster'];
                const poly = {};

                // @todo: defensive programming with these properties (hasOwnProperty ? throw ?)

                // jhipsterVar polyfill :
                poly.baseName = conf.baseName;
                poly.packageName = conf.packageName;
                poly.angularAppName = conf.angularAppName || null; // handle an undefined value (JSON properties can't be undefined)
                poly.clientFramework = conf.clientFramework;
                poly.clientPackageManager = conf.clientPackageManager;
                poly.buildTool = conf.buildTool;

                // jhipsterFunc polyfill :
                poly.registerModule = jhipsterModuleSubgenerator.prototype.registerModule;
                poly.updateEntityConfig = jhipsterModuleSubgenerator.prototype.updateEntityConfig;

                // @todo : handle this.options.testMode ?

                return poly;
            },
            (onError) => {
github bastienmichaux / generator-jhipster-db-helper / generators / dbh.js View on Github external
const conf = onResolve['generator-jhipster'];
                const poly = {};

                // @todo: defensive programming with these properties (hasOwnProperty ? throw ?)

                // jhipsterVar polyfill :
                poly.baseName = conf.baseName;
                poly.packageName = conf.packageName;
                poly.angularAppName = conf.angularAppName || null; // handle an undefined value (JSON properties can't be undefined)
                poly.clientFramework = conf.clientFramework;
                poly.clientPackageManager = conf.clientPackageManager;
                poly.buildTool = conf.buildTool;

                // jhipsterFunc polyfill :
                poly.registerModule = jhipsterModuleSubgenerator.prototype.registerModule;
                poly.updateEntityConfig = jhipsterModuleSubgenerator.prototype.updateEntityConfig;

                // @todo : handle this.options.testMode ?

                return poly;
            },
            (onError) => {
github bastienmichaux / generator-jhipster-db-helper / generators / dbh.js View on Github external
(onResolve) => {
                const conf = onResolve['generator-jhipster'];
                const poly = {};

                // jhipsterVar polyfill :
                poly.jhipsterConfig = conf;
                poly.javaDir = `${jhipsterConstants.SERVER_MAIN_SRC_DIR + conf.packageFolder}/`;
                poly.resourceDir = jhipsterConstants.SERVER_MAIN_RES_DIR;
                poly.replaceContent = jhipsterModuleSubgenerator.prototype.replaceContent;
                poly.updateEntityConfig = jhipsterModuleSubgenerator.prototype.updateEntityConfig;

                return poly;
            },
            (onError) => {

generator-jhipster

Spring Boot + Angular/React/Vue in one handy generator

Apache-2.0
Latest version published 28 days ago

Package Health Score

89 / 100
Full package analysis