-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
47 lines (47 loc) · 2.17 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"name": "mueller-report-ebook-builder",
"version": "1.0.0",
"main": "index.js",
"author": "Jon Scheiding <[email protected]>",
"license": "MIT",
"scripts": {
"lint": "eslint src/",
"prepare:download:pages": "wget -O build/pages.original.json 'https://static01.nyt.com/newsgraphics/2019/03/25/mueller-report-full/b0292ffe2aa124f590e2fba67ed4948e50d74f27/pages.json'",
"prepare:download:document": "wget -O build/document.html https://www.nytimes.com/interactive/2019/04/18/us/politics/mueller-report-document.html",
"prepare:download": "run-s prepare:download:pages prepare:download:document",
"prepare:patch": "patch build/pages.original.json -i corrections.patch -o build/pages.json",
"prepare:parse:annotations": "babel-node src/parse-annotations.js --source build/document.html --output build/annotations.json",
"prepare": "run-s prepare:download prepare:patch prepare:parse:annotations",
"build": "run-s build:epub build:mobi",
"build:epub": "babel-node src/build.js --pages build/pages.json --annotations build/annotations.json --output build/mueller-ebook.epub",
"build:mobi": "tools/kindlegen build/mueller-ebook.epub",
"build:unzip": "rimraf build/mueller-ebook && unzip -o -d build/mueller-ebook build/mueller-ebook.epub",
"start": "run-p start:watch start:server",
"start:server": "serve -s build/mueller-ebook/OEBPS",
"start:watch": "nodemon --ignore build/ -e js,ejs,css,json --exec yarn run start:html",
"start:html": "run-s build:epub build:unzip",
"push": "yarn build && tools/push-to-kindle build/mueller-ebook.mobi"
},
"dependencies": {
"@babel/core": "^7.4.4",
"@babel/node": "^7.2.2",
"@babel/preset-env": "^7.4.4",
"cheerio": "^1.0.0-rc.3",
"epub-gen": "^0.1.0",
"npm-run-all": "^4.1.5",
"pretty": "^2.0.0",
"shortid": "^2.2.14",
"yargs": "^13.2.2"
},
"devDependencies": {
"eslint": "^5.16.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0",
"nodemon": "^1.19.0",
"rimraf": "^2.6.3",
"serve": "^11.0.0"
}
}