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);
|
||||
|
|
|
|||
12
package.json
12
package.json
|
|
@ -20,17 +20,17 @@
|
|||
"lint": "eslint lib && jscs lib"
|
||||
},
|
||||
"dependencies": {
|
||||
"archiver": "^0.14.4",
|
||||
"cpr": "^0.4.0",
|
||||
"jsdom": "^5.3.0",
|
||||
"archiver": "^1.3.0",
|
||||
"cpr": "^2.0.2",
|
||||
"jsdom": "^9.9.1",
|
||||
"mkdirp-then": "^1.0.1",
|
||||
"requisition": "^1.5.0",
|
||||
"rimraf-then": "^1.0.0",
|
||||
"thenify": "^3.1.0",
|
||||
"throat": "^2.0.2",
|
||||
"xmlserializer": "^0.3.3",
|
||||
"throat": "^3.0.0",
|
||||
"xmlserializer": "^0.6.0",
|
||||
"xtend": "^4.0.0",
|
||||
"yargs": "^3.9.1",
|
||||
"yargs": "^6.6.0",
|
||||
"zfill": "0.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue