This commit is contained in:
Kasra Bigdeli 2019-01-13 10:08:41 -08:00
parent e9c299daff
commit 6eea0d190e
1 changed files with 10 additions and 7 deletions

View File

@ -7,17 +7,20 @@ const pathOfV1 = path.join(pathOfPublic, 'v1');
const pathOfApps = path.join(pathOfV1, 'apps');
const pathOfList = path.join(pathOfV1, 'autoGeneratedList.json');
fs.readdir(pathOfApps, function(err, items) {
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)
ghpages.publish('public', function (err) {
if (err)
console.log(err);
else
console.log('Built and deployed successfully');
});
});