Skip to content

Commit 9fc17a3

Browse files
committed
Add pages script
1 parent b8cf33a commit 9fc17a3

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

jsdoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dictionaries": ["jsdoc","closure"]
55
},
66
"source": {
7-
"include": [ "./index.js", "./lib/init.js" ],
7+
"include": [ "./lib/init.js" ],
88
"includePattern": ".+\\.js(doc)?$",
99
"excludePattern": "(^|\\/|\\\\)_"
1010
},

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"lint": "jshint lib test",
1111
"docs": "jsdoc -c ./jsdoc.json -R ./Readme.md -u ./docs",
1212
"preversion": "npm run lint",
13-
"postversion": "git push && git push --tags",
13+
"pages": "node ./scripts/publish-gh.js",
14+
"postversion": "git push && git push --tags && npm run pages",
1415
"build": "npm run test && npm run docs"
1516
},
1617
"repository": {

scripts/publish-gh.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
var ghpages = require('gh-pages');
2+
var path = require('path');
3+
4+
ghpages.publish(path.join(__dirname, '../out'), function(err) {
5+
console.log(err)
6+
});

0 commit comments

Comments
 (0)