Skip to content

Commit 49d21dd

Browse files
committedNov 29, 2017
chore(package): build:docs script
1 parent 2e98859 commit 49d21dd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
},
3535
"devDependencies": {
3636
"@octokit/fixtures": "^5.4.0",
37+
"apidoc": "^0.17.6",
3738
"chai": "^4.1.2",
3839
"coveralls": "^3.0.0",
3940
"glob": "^7.1.2",
41+
"mkdirp": "^0.5.1",
4042
"mocha": "^4.0.1",
4143
"mustache": "^2.2.1",
4244
"nock": "^9.1.0",
@@ -56,6 +58,9 @@
5658
"pretest": "standard && standard-markdown",
5759
"test": "nyc mocha test/**/*-test.js",
5860
"build": "npm-run-all build:*",
61+
"prebuild:docs": "mkdirp doc/",
62+
"build:docs": "node scripts/generate-api-docs",
63+
"postbuild:docs": "apidoc -i doc/ -o apidoc/",
5964
"build:flow": "node scripts/generate-flow-types",
6065
"build:ts": "node scripts/generate-typescript-types",
6166
"presemantic-release": "npm run -s build",
@@ -72,11 +77,8 @@
7277
"lib"
7378
],
7479
"apidoc": {
75-
"title": "node-github",
76-
"name": "node-github",
77-
"version": "11.0.0",
7880
"template": {
79-
"withCompare": true
81+
"withCompare": false
8082
}
8183
},
8284
"nyc": {

0 commit comments

Comments
 (0)
Please sign in to comment.