Skip to content

Commit

Permalink
add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
thedustinsmith committed Jun 23, 2016
1 parent 514bb36 commit b2831b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions deploy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var ghpages = require('gh-pages'),
path = require('path');

ghpages.publish(__dirname, function (err) {
if (err) console.error(err);
else console.log('Successfully deployed to gh-pages');
});
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"description": "A simple javascript image cropper",
"main": "croppie.js",
"devDependencies": {
"gh-pages": "^0.11.0",
"mocha": "2.4.5"
},
"scripts": {
"test": "mocha test/unit"
"test": "mocha test/unit",
"deploy": "node deploy.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit b2831b7

Please sign in to comment.