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) {
|
module.exports = function (scaffoldingPath, bookPath, contentPath, chaptersPath, manifestPath) {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
cpr(scaffoldingPath, bookPath, { filter: noThumbs }),
|
|
||||||
getChapters(contentPath, chaptersPath, manifestPath).then(function (chapters) {
|
getChapters(contentPath, chaptersPath, manifestPath).then(function (chapters) {
|
||||||
|
cpr(scaffoldingPath, bookPath, { overwrite: true, confirm: true, filter: noThumbs }),
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
writeOpf(chapters, contentPath),
|
writeOpf(chapters, contentPath),
|
||||||
writeNcx(chapters, contentPath)
|
writeNcx(chapters, contentPath)
|
||||||
|
|
|
||||||
|
|
@ -23,30 +23,35 @@ const argv = yargs
|
||||||
alias: "start-url",
|
alias: "start-url",
|
||||||
default: "https://parahumans.wordpress.com/2011/06/11/1-1/",
|
default: "https://parahumans.wordpress.com/2011/06/11/1-1/",
|
||||||
describe: "the URL from which to start crawling, for the download command",
|
describe: "the URL from which to start crawling, for the download command",
|
||||||
requiresArg: true
|
requiresArg: true,
|
||||||
|
global: true
|
||||||
})
|
})
|
||||||
.option("c", {
|
.option("c", {
|
||||||
alias: "cache-directory",
|
alias: "cache-directory",
|
||||||
default: "cache",
|
default: "cache",
|
||||||
describe: "cache directory, for the download and convert commands",
|
describe: "cache directory, for the download and convert commands",
|
||||||
requiresArg: true
|
requiresArg: true,
|
||||||
|
global: true
|
||||||
})
|
})
|
||||||
.option("b", {
|
.option("b", {
|
||||||
alias: "book-directory",
|
alias: "book-directory",
|
||||||
default: "book",
|
default: "book",
|
||||||
describe: "directory in which to assemble the EPUB files before zipping, for the convert, scaffold, and zip " +
|
describe: "directory in which to assemble the EPUB files before zipping, for the convert, scaffold, and zip " +
|
||||||
"commands",
|
"commands",
|
||||||
requiresArg: true
|
requiresArg: true,
|
||||||
|
global: true
|
||||||
})
|
})
|
||||||
.option("o", {
|
.option("o", {
|
||||||
alias: "out",
|
alias: "out",
|
||||||
default: "Worm.epub",
|
default: "Worm.epub",
|
||||||
describe: "output file destination, for the zip command",
|
describe: "output file destination, for the zip command",
|
||||||
requiresArg: true
|
requiresArg: true,
|
||||||
|
global: true
|
||||||
})
|
})
|
||||||
.require(1) // TODO remove and allow all
|
.demandCommand(1) // TODO remove and allow all
|
||||||
.addHelpOpt("help")
|
.recommendCommands()
|
||||||
.version(packageJson.version, "version")
|
.help()
|
||||||
|
.version()
|
||||||
.argv;
|
.argv;
|
||||||
|
|
||||||
const cachePath = path.resolve(argv.cacheDirectory);
|
const cachePath = path.resolve(argv.cacheDirectory);
|
||||||
|
|
|
||||||
12
package.json
12
package.json
|
|
@ -20,17 +20,17 @@
|
||||||
"lint": "eslint lib && jscs lib"
|
"lint": "eslint lib && jscs lib"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"archiver": "^0.14.4",
|
"archiver": "^1.3.0",
|
||||||
"cpr": "^0.4.0",
|
"cpr": "^2.0.2",
|
||||||
"jsdom": "^5.3.0",
|
"jsdom": "^9.9.1",
|
||||||
"mkdirp-then": "^1.0.1",
|
"mkdirp-then": "^1.0.1",
|
||||||
"requisition": "^1.5.0",
|
"requisition": "^1.5.0",
|
||||||
"rimraf-then": "^1.0.0",
|
"rimraf-then": "^1.0.0",
|
||||||
"thenify": "^3.1.0",
|
"thenify": "^3.1.0",
|
||||||
"throat": "^2.0.2",
|
"throat": "^3.0.0",
|
||||||
"xmlserializer": "^0.3.3",
|
"xmlserializer": "^0.6.0",
|
||||||
"xtend": "^4.0.0",
|
"xtend": "^4.0.0",
|
||||||
"yargs": "^3.9.1",
|
"yargs": "^6.6.0",
|
||||||
"zfill": "0.0.2"
|
"zfill": "0.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue