X-Git-Url: https://pwan.org/git/?p=tech-radar.git;a=blobdiff_plain;f=scripts%2Fpublish-examples.js;fp=scripts%2Fpublish-examples.js;h=42dca3d17b258dac251f5e84e407e13e80ffd8ae;hp=0000000000000000000000000000000000000000;hb=7dfc90c0d65cf2e95b4001e15e72dcc99b2a0701;hpb=b5fec289ad389a08030e077b9e54506efd2f9e66 diff --git a/scripts/publish-examples.js b/scripts/publish-examples.js new file mode 100644 index 0000000..42dca3d --- /dev/null +++ b/scripts/publish-examples.js @@ -0,0 +1,15 @@ +var ghpages = require('gh-pages') + , path = require('path') + , options = {}; + +options.logger = console.log.bind(this); + +function callback(err) { + if (err) { + console.error('Error publishing to gh-pages', err); + } else { + console.log('Successfully published to gh-pages'); + } +} + +ghpages.publish(path.join(__dirname, './examples'), options, callback);