restructured directories

This commit is contained in:
Kasra Bigdeli 2019-01-13 00:02:06 -08:00
parent 0993f1b6ac
commit 7224ce1b2c
17 changed files with 5 additions and 3 deletions

View File

@ -2,8 +2,10 @@ const ghpages = require('gh-pages');
const path = require('path');
const fs = require('fs-extra')
const pathOfApps = path.join(path.join(__dirname, 'v1'), 'apps');
const pathOfList = path.join(path.join(__dirname, 'v1'), 'autoGeneratedList.json');
const pathOfPublic = path.join(__dirname, 'public');
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) {
for (var i = 0; i < items.length; i++) {
@ -14,7 +16,7 @@ fs.readdir(pathOfApps, function(err, items) {
appList: items
})
ghpages.publish('v1', function(err) {
ghpages.publish('public', function(err) {
console.log(err)
});