We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e227ac9 + bdb28bf commit 5a328ebCopy full SHA for 5a328eb
2 files changed
app/index.js
@@ -15,6 +15,8 @@ var GulpAngularGenerator = yeoman.generators.Base.extend({
15
required: false
16
});
17
18
+ this.version = require('../package.json').version;
19
+
20
this.props = {};
21
},
22
app/src/write.js
@@ -21,6 +21,7 @@ module.exports = function(GulpAngularGenerator) {
* Write computed props in the .yo-rc.json
*/
23
GulpAngularGenerator.prototype.writeYoRc = function writeYoRc() {
24
+ this.config.set('version', this.version);
25
this.config.set('props', this.props);
26
};
27
0 commit comments