2019-07-21 16:40:50 +02:00
|
|
|
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(
|
2019-07-21 16:40:50 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
);
|