reformat
This commit is contained in:
parent
e9c299daff
commit
6eea0d190e
|
|
@ -9,15 +9,18 @@ const pathOfList = path.join(pathOfV1, 'autoGeneratedList.json');
|
|||
|
||||
fs.readdir(pathOfApps, function (err, items) {
|
||||
for (var i = 0; i < items.length; i++) {
|
||||
items[i] = items[i].replace('.json', '')
|
||||
items[i] = items[i].replace('.json', '');
|
||||
}
|
||||
|
||||
fs.outputJsonSync(pathOfList, {
|
||||
appList: items
|
||||
})
|
||||
});
|
||||
|
||||
ghpages.publish('public', function (err) {
|
||||
console.log(err)
|
||||
if (err)
|
||||
console.log(err);
|
||||
else
|
||||
console.log('Built and deployed successfully');
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Reference in New Issue