restructured directories
This commit is contained in:
parent
0993f1b6ac
commit
7224ce1b2c
8
index.js
8
index.js
|
|
@ -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)
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue