Skip to content

Commit

Permalink
fix(package.json & doc.js): fix doc tool error. (#791)
Browse files Browse the repository at this point in the history
- fix `npm run doc-* ` error
- fix doc tool on the windows platform
  • Loading branch information
binsee authored and popomore committed Apr 25, 2017
1 parent 90234ef commit 9ef9d6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -64,6 +64,7 @@
"moment": "^2.17.1",
"mz": "^2.6.0",
"mz-modules": "^1.0.0",
"npminstall": "^2.29.1",
"once": "^1.3.3",
"pedding": "^1.1.0",
"rds": "^0.1.0",
Expand All @@ -89,9 +90,9 @@
"test-local": "egg-bin test",
"cov": "egg-bin cov",
"ci": "npm run lint && npm run cov",
"doc-server": "./scripts/doc.js server",
"doc-build": "./scripts/doc.js build",
"doc-deploy": "./scripts/doc.js deploy",
"doc-server": "node ./scripts/doc.js server",
"doc-build": "node ./scripts/doc.js build",
"doc-deploy": "node ./scripts/doc.js deploy",
"autod": "autod",
"puml": "puml . --dest ./docs",
"commits": "./scripts/commits.sh"
Expand Down
3 changes: 2 additions & 1 deletion scripts/doc.js
Expand Up @@ -8,12 +8,13 @@ const rimraf = require('rimraf');
const runscript = require('runscript');
const ghpages = require('gh-pages');
const jsdoc = require('./jsdoc');
const path = require('path');

// The branch that pushing document
const BRANCH = 'gh-pages';
const DOC_PUBLISHER_NAME = 'Auto Doc Publisher';
const DOC_PUBLISHER_EMAIL = 'docs@eggjs.org';
process.env.PATH += `:${process.cwd()}/docs/node_modules/.bin`;
process.env.PATH += `${path.delimiter}${process.cwd()}/docs/node_modules/.bin`;
const EGG_VERSION = require('../package.json').version;
const NODE_VERSION = require('../package.json').engines.node;

Expand Down

0 comments on commit 9ef9d6a

Please sign in to comment.