Skip to content

Commit dc16895

Browse files
committed
allow you to pass in name of app as an argument
1 parent 98c06d7 commit dc16895

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ var wiredep = require('wiredep');
1010
var AngularFullstackGenerator = yeoman.generators.Base.extend({
1111

1212
init: function () {
13-
this.appname = this.appname || path.basename(process.cwd());
13+
this.argument('name', { type: String, required: false });
14+
this.appname = this.name || path.basename(process.cwd());
1415
this.appname = this._.camelize(this._.slugify(this._.humanize(this.appname)));
1516

1617
this.option('app-suffix', {

0 commit comments

Comments
 (0)