bosca-ceoil-js/tasks/deploy.ts

22 lines
398 B
TypeScript
Raw Normal View History

import ghPages from "gh-pages";
import path from "path";
const root = `${path.dirname(process.argv[1])}/..`;
2019-07-16 09:31:45 +02:00
ghPages.publish(
root,
2019-07-16 09:31:45 +02:00
{
"src": [
"index.html",
"public/*.css",
"public/*.js",
2019-07-21 16:50:11 +02:00
"audio/**/*.ogg",
2019-07-16 09:31:45 +02:00
]
},
err => {
2019-07-16 10:03:12 +02:00
if (err !== undefined) {
console.log(`Failure: ${err}`);
}
2019-07-16 09:31:45 +02:00
}
);