File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,10 @@ const defaultConfig = {
21
21
plugins : [ ] ,
22
22
badges : {
23
23
/**
24
- * Should there be a greenkeeper badge?
25
- * `undefined` means autodetect (by parsing the badge for the repo-url)
24
+ * Should there be a greenkeeper badge? Default: false
26
25
* @property
27
26
*/
28
- greenkeeper : undefined
27
+ greenkeeper : false
29
28
}
30
29
}
31
30
@@ -44,6 +43,7 @@ module.exports = function createSpec (workingDir) {
44
43
debug ( 'config loaded' , config )
45
44
return customize
46
45
. registerEngine ( 'handlebars' , require ( 'customize-engine-handlebars' ) )
46
+ . merge ( { handlebars : { data : { config : defaultConfig } } } )
47
47
. merge ( {
48
48
handlebars : {
49
49
partials : path . join ( __dirname , 'handlebars' , 'partials' ) ,
@@ -63,9 +63,13 @@ module.exports = function createSpec (workingDir) {
63
63
// Apply any customization from the config-files (such as loading modules)
64
64
. load ( function ( customize ) {
65
65
debug ( 'Loading modules' , config )
66
- return config . plugins . reduce ( ( prev , plugin ) => {
67
- return prev . load ( plugin )
68
- } , customize )
66
+ if ( config && config . plugins ) {
67
+ return config . plugins . reduce ( ( prev , plugin ) => {
68
+ return prev . load ( plugin )
69
+ } , customize )
70
+ } else {
71
+ return customize
72
+ }
69
73
} )
70
74
. merge ( {
71
75
handlebars : {
You can’t perform that action at this time.
0 commit comments