diff --git a/gulpfile.js b/gulpfile.js index c76b3e52..b6269ea3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -24,7 +24,7 @@ const testTask = () => { }; const readmeTask = () => { - return src('./README.md') + return src(['./README.md', './README_ZH.md']) .pipe(replace(/Hilo3d\/[\d\.]+\/Hilo3d\.js/g, `Hilo3d/${pkg.version}/Hilo3d.js`)) .pipe(dest('./')); }; diff --git a/package.json b/package.json index 53375a2a..5680a8e1 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "debug": "webpack --watch --env.debug", "build": " webpack", "release": "tnpm update && webpack -p", - "doc": "jsdoc -c doc.conf.json", + "doc": "gulp readme && jsdoc -c doc.conf.json", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "eslint-fix": "eslint --fix ./src", "seinjs-dev": "webpack --watch --env.development --seinjs",