Skip to content

Commit

Permalink
Enhancing the publishing script
Browse files Browse the repository at this point in the history
  • Loading branch information
mileszs committed Jul 13, 2016
1 parent bb7a8c1 commit 71ac0c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/pages_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ var path = require('path');

var logger = function(message) {
console.log(message);
}
};

var callback = function(err) {
if (err) {
console.log('Build errors OH NOES', err);
} else {
console.log('Built, yo');
console.log("\nFinished. Published. Boom.");
}
}
};

ghpages.publish(path.join(__dirname, '..', 'build'), { add: true, logger: logger }, callback);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"jscs": "jscs src/js/",
"test": "mocha --compilers js:babel-core/register,css:./test/unit/cssNullCompiler.js --require ./test/unit/testHelper.js --recursive ./test/unit",
"test:watch": "npm run test -- --watch",
"build:pages": "node ./bin/pages_build.js"
"publish": "node ./bin/pages_build.js"
},
"devDependencies": {
"babel-core": "6.7.7",
Expand Down

0 comments on commit 71ac0c3

Please sign in to comment.