We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4709845 commit 381d949Copy full SHA for 381d949
script-base.js
@@ -15,6 +15,14 @@ var Generator = module.exports = function Generator() {
15
16
this.lodash = lodash;
17
18
+ if(!process.env.CI) {
19
+ yoCheckPromise = genUtils.runCmd('yo --version').then(stdout => {
20
+ if(!semver.satisfies(semver.clean(stdout), '>= 1.7.1')) {
21
+ throw new Error('ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)');
22
+ }
23
+ });
24
+ } // CI won't have yo installed
25
+
26
try {
27
this.appname = require(path.join(process.cwd(), 'bower.json')).name;
28
} catch (e) {
0 commit comments