我需要复制一个jhipster项目。自从我创建了这个项目以来,我已经更新了jhipster版本。我想用第一个项目的相同jhipster版本复制项目。
我如何知道我在第一次申请时使用的Jhipster版本?
答案 0 :(得分:8)
查找此信息的最佳位置似乎是./Gruntfile.js的第一行:
// Generated on 2015-12-14 using generator-jhipster 2.25.0
用于生成项目的版本的标识符也可以在许多其他地方找到:
➜ grep -R '2\.25\.0' . # current version of jhipster is 2.25.0
./Gruntfile.js:// Generated on 2015-12-14 using generator-jhipster 2.25.0
./node_modules/connect/History.md:2.25.0 / 2014-08-05
./node_modules/generator-jhipster/package.json: "generator-jhipster@2.25.0",
./node_modules/generator-jhipster/package.json: "_from": "generator-jhipster@2.25.0",
./node_modules/generator-jhipster/package.json: "_id": "generator-jhipster@2.25.0",
./node_modules/generator-jhipster/package.json: "raw": "generator-jhipster@2.25.0",
./node_modules/generator-jhipster/package.json: "rawSpec": "2.25.0",
./node_modules/generator-jhipster/package.json: "spec": "2.25.0",
./node_modules/generator-jhipster/package.json: "_resolved": "https://registry.npmjs.org/generator-jhipster/-/generator-jhipster-2.25.0.tgz",
./node_modules/generator-jhipster/package.json: "_spec": "generator-jhipster@2.25.0",
./node_modules/generator-jhipster/package.json: "tarball": "http://registry.npmjs.org/generator-jhipster/-/generator-jhipster-2.25.0.tgz"
./node_modules/generator-jhipster/package.json: "version": "2.25.0"
./node_modules/phantomjs/node_modules/request/CHANGELOG.md:### v2.25.0 (2013/07/23 21:51 +00:00)
./node_modules/phantomjs/node_modules/request/CHANGELOG.md:- [828f12a](https://github.com/mikeal/request/commit/828f12a1ae0f187deee4d531b2eaf7531169aaf2) 2.25.0 (@mikeal)
./package.json: "generator-jhipster": "2.25.0",
答案 1 :(得分:6)
当您运行yo jhipster
时,欢迎信息中会以黄色显示。
答案 2 :(得分:4)
如果您在应用程序设置期间未使用过grunt,您也可以在.yo-rc中找到此信息
“jhipsterVersion”:XXX
答案 3 :(得分:2)
直接从项目文件夹中询问jhipster。
jhipster --version
这是我的输出
salathiel@salathiel-genese-pc:~/path/to/project$ jhipster --version
Using JHipster version installed locally in current project's node_modules
4.14.3