2019-07-28 02:03:45 +02:00
|
|
|
import ghPages from "gh-pages";
|
|
|
|
import path from "path";
|
2019-07-21 16:40:50 +02:00
|
|
|
|
|
|
|
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-28 02:03:45 +02:00
|
|
|
"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
|
|
|
}
|
|
|
|
);
|