bosca-ceoil-js/tasks/deploy.ts

23 lines
433 B
TypeScript
Raw Normal View History

import * as ghPages from "gh-pages";
import * as 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",
2019-07-16 10:03:12 +02:00
"index.css",
2019-07-16 09:31:45 +02:00
"assets/*.css",
"assets/*.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
}
);