bosca-ceoil-js/tasks/deploy.ts
2019-07-21 10:50:11 -04:00

23 lines
433 B
TypeScript

import * as ghPages from "gh-pages";
import * as path from "path";
const root = `${path.dirname(process.argv[1])}/..`;
ghPages.publish(
root,
{
"src": [
"index.html",
"index.css",
"assets/*.css",
"assets/*.js",
"audio/**/*.ogg",
]
},
err => {
if (err !== undefined) {
console.log(`Failure: ${err}`);
}
}
);