Update dependencies
This commit is contained in:
parent
53bd48fc3b
commit
876be19c8b
3 changed files with 19 additions and 14 deletions
|
|
@ -23,8 +23,8 @@ const COVER_MIMETYPE = "image/png";
|
|||
|
||||
module.exports = function (scaffoldingPath, bookPath, contentPath, chaptersPath, manifestPath) {
|
||||
return Promise.all([
|
||||
cpr(scaffoldingPath, bookPath, { filter: noThumbs }),
|
||||
getChapters(contentPath, chaptersPath, manifestPath).then(function (chapters) {
|
||||
cpr(scaffoldingPath, bookPath, { overwrite: true, confirm: true, filter: noThumbs }),
|
||||
return Promise.all([
|
||||
writeOpf(chapters, contentPath),
|
||||
writeNcx(chapters, contentPath)
|
||||
|
|
|
|||
|
|
@ -23,30 +23,35 @@ const argv = yargs
|
|||
alias: "start-url",
|
||||
default: "https://parahumans.wordpress.com/2011/06/11/1-1/",
|
||||
describe: "the URL from which to start crawling, for the download command",
|
||||
requiresArg: true
|
||||
requiresArg: true,
|
||||
global: true
|
||||
})
|
||||
.option("c", {
|
||||
alias: "cache-directory",
|
||||
default: "cache",
|
||||
describe: "cache directory, for the download and convert commands",
|
||||
requiresArg: true
|
||||
requiresArg: true,
|
||||
global: true
|
||||
})
|
||||
.option("b", {
|
||||
alias: "book-directory",
|
||||
default: "book",
|
||||
describe: "directory in which to assemble the EPUB files before zipping, for the convert, scaffold, and zip " +
|
||||
"commands",
|
||||
requiresArg: true
|
||||
requiresArg: true,
|
||||
global: true
|
||||
})
|
||||
.option("o", {
|
||||
alias: "out",
|
||||
default: "Worm.epub",
|
||||
describe: "output file destination, for the zip command",
|
||||
requiresArg: true
|
||||
requiresArg: true,
|
||||
global: true
|
||||
})
|
||||
.require(1) // TODO remove and allow all
|
||||
.addHelpOpt("help")
|
||||
.version(packageJson.version, "version")
|
||||
.demandCommand(1) // TODO remove and allow all
|
||||
.recommendCommands()
|
||||
.help()
|
||||
.version()
|
||||
.argv;
|
||||
|
||||
const cachePath = path.resolve(argv.cacheDirectory);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue