File tree Expand file tree Collapse file tree 4 files changed +416
-316
lines changed Expand file tree Collapse file tree 4 files changed +416
-316
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Put your changes here...
6
6
7
+ ## 0.19.3
8
+
9
+ - Fixed custom app name supplied via CLI.
10
+ - Various dependencies bumped.
11
+
7
12
## 0.19.2
8
13
9
14
- Fixed missing favicon from generated app.
Original file line number Diff line number Diff line change @@ -3,11 +3,17 @@ const helper = require('./promptingHelpers')
3
3
const defaults = require ( './templates/defaults.json' )
4
4
const beautify = require ( 'gulp-beautify' )
5
5
const filter = require ( 'gulp-filter' )
6
+ const cache = { }
6
7
7
8
module . exports = class extends Generator {
8
9
constructor ( args , opts ) {
9
10
super ( args , opts )
10
11
12
+ // if this is executed like `yo roosevelt --standard-install custom-app-name`, cache that name so it can override appName later
13
+ if ( opts . standardInstall && typeof opts . standardInstall === 'string' ) {
14
+ cache . standardInstall = opts . standardInstall
15
+ }
16
+
11
17
this . option ( 'standard-install' , {
12
18
alias : 's' ,
13
19
type : String ,
@@ -34,6 +40,9 @@ module.exports = class extends Generator {
34
40
start ( ) {
35
41
if ( this . options [ 'standard-install' ] ) {
36
42
this . appName = defaults . appName
43
+ if ( cache . standardInstall ) {
44
+ this . appName = cache . standardInstall
45
+ }
37
46
this . packageName = helper . sanitizePackageName ( this . appName )
38
47
return true
39
48
}
You can’t perform that action at this time.
0 commit comments