File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,11 @@ var patternlab_engine = function (config) {
137
137
return starterkit_manager . list_starterkits ( ) ;
138
138
}
139
139
140
+ function loadStarterKit ( starterkitName ) {
141
+ var starterkit_manager = new sm ( patternlab ) ;
142
+ starterkit_manager . load_starterkit ( starterkitName ) ;
143
+ }
144
+
140
145
function buildPatterns ( deletePatternDir ) {
141
146
try {
142
147
patternlab . data = fs . readJSONSync ( path . resolve ( paths . source . data , 'data.json' ) ) ;
@@ -319,6 +324,9 @@ var patternlab_engine = function (config) {
319
324
} ,
320
325
list_starterkits : function ( ) {
321
326
return listStarterkits ( ) ;
327
+ } ,
328
+ load_starterkit : function ( starterkitName ) {
329
+ loadStarterKit ( starterkitName ) ;
322
330
}
323
331
} ;
324
332
} ;
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ var starterkit_manager = function (pl) {
15
15
console . log ( starterkitName + ' not found, please use npm to install it first' ) ;
16
16
}
17
17
console . log ( kit ) ;
18
-
19
-
20
18
}
21
19
22
20
function listStarterkits ( ) {
You can’t perform that action at this time.
0 commit comments