Skip to content

Commit 94a1075

Browse files
committed
wiring up load kit
1 parent 63a89ea commit 94a1075

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

core/lib/patternlab.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ var patternlab_engine = function (config) {
137137
return starterkit_manager.list_starterkits();
138138
}
139139

140+
function loadStarterKit(starterkitName) {
141+
var starterkit_manager = new sm(patternlab);
142+
starterkit_manager.load_starterkit(starterkitName);
143+
}
144+
140145
function buildPatterns(deletePatternDir) {
141146
try {
142147
patternlab.data = fs.readJSONSync(path.resolve(paths.source.data, 'data.json'));
@@ -319,6 +324,9 @@ var patternlab_engine = function (config) {
319324
},
320325
list_starterkits: function () {
321326
return listStarterkits();
327+
},
328+
load_starterkit: function (starterkitName) {
329+
loadStarterKit(starterkitName);
322330
}
323331
};
324332
};

core/lib/starterkit_manager.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ var starterkit_manager = function (pl) {
1515
console.log(starterkitName + ' not found, please use npm to install it first');
1616
}
1717
console.log(kit);
18-
19-
2018
}
2119

2220
function listStarterkits() {

0 commit comments

Comments
 (0)