reformat
This commit is contained in:
parent
e9c299daff
commit
6eea0d190e
|
|
@ -7,17 +7,20 @@ const pathOfV1 = path.join(pathOfPublic, 'v1');
|
||||||
const pathOfApps = path.join(pathOfV1, 'apps');
|
const pathOfApps = path.join(pathOfV1, 'apps');
|
||||||
const pathOfList = path.join(pathOfV1, 'autoGeneratedList.json');
|
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++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
items[i] = items[i].replace('.json', '')
|
items[i] = items[i].replace('.json', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.outputJsonSync(pathOfList, {
|
fs.outputJsonSync(pathOfList, {
|
||||||
appList: items
|
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');
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue