Skip to content

Commit

Permalink
json docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chaos358 committed Apr 1, 2018
1 parent 0434127 commit cb55867
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/docs.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
]
},
"source": {
"include": [
"include": [
"src"
],
"includePattern": ".js$",
Expand All @@ -21,10 +21,10 @@
"useLongnameInNav": false
},
"opts": {
"destination": "./docs/",
"destination": "./docs/docs.json",
"encoding": "utf8",
"private": true,
"recurse": true,
"template": "./node_modules/docdash"
"template": "./node_modules/jsdoc-json"
}
}
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ gulp.task('default', [
'watch'
]);

gulp.task('doc-dir', function () {
if (!fs.existsSync('docs')){
fs.mkdirSync('docs');
}
});

gulp.task('release', ['default'], function () {
return gulp.src(paths.dist + '/**/*')
.pipe($.zip('release.zip'))
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"dev": "gulp --progress --watch --colors --env dev",
"build": "npm run test && gulp --env build -- release",
"docs": "./node_modules/.bin/jsdoc --configure ./config/docs.config.json",
"docs": "gulp doc-dir && ./node_modules/.bin/jsdoc --configure ./config/docs.config.json",
"test": "mocha --require babel-core/register --colors ./test/*.spec.js",
"test:watch": "mocha --require babel-core/register --colors -w ./test/*.spec.js",
"test:coverage": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha --require babel-core/register test/*.spec.js",
Expand All @@ -30,7 +30,7 @@
"coveralls": "^3.0.0",
"cross-env": "^5.1.4",
"del": "^3.0.0",
"docdash": "latest",
"jsdoc-json": "2.0.2",
"eslint": "^4.19.1",
"eslint-loader": "^2.0.0",
"gulp": "latest",
Expand Down

0 comments on commit cb55867

Please sign in to comment.