How to generate jhipster application into a different directory?

与世无争的帅哥 提交于 2019-12-02 18:48:21

问题


When I run the following in jhipster-generator's /cli directory:

cd cli
node jhipster.js

I'm generating the application in the same directory (cli). How would I change this directory to somewhere else? For example, export all the generated files into a specific directory.

I believe the directory has something to do with this line of code in jhipster.js:

const localCLI = require.resolve(path.join(process.cwd(), 'node_modules', 'generator-jhipster', 'cli', 'cli.js'));

Note: I'm not running the application with "jhipster" command.

来源:https://stackoverflow.com/questions/56960459/how-to-generate-jhipster-application-into-a-different-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!