restructured directories
This commit is contained in:
8
index.js
8
index.js
@ -2,8 +2,10 @@ const ghpages = require('gh-pages');
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs-extra')
|
const fs = require('fs-extra')
|
||||||
|
|
||||||
const pathOfApps = path.join(path.join(__dirname, 'v1'), 'apps');
|
const pathOfPublic = path.join(__dirname, 'public');
|
||||||
const pathOfList = path.join(path.join(__dirname, 'v1'), 'autoGeneratedList.json');
|
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++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
@ -14,7 +16,7 @@ fs.readdir(pathOfApps, function(err, items) {
|
|||||||
appList: items
|
appList: items
|
||||||
})
|
})
|
||||||
|
|
||||||
ghpages.publish('v1', function(err) {
|
ghpages.publish('public', function(err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user