ant-design/scripts/deploy.js

14 lines
308 B
JavaScript
Raw Normal View History

2015-07-20 17:45:05 +08:00
var ghPages = require('gh-pages');
2015-07-20 17:51:44 +08:00
var path = require('path');
2015-07-20 17:45:05 +08:00
ghPages.publish(path.join(process.cwd(), '_site'), {
depth: 1,
logger: function (message) {
console.log(message);
}
}, function (err) {
if (err) {
2015-06-19 18:19:30 +08:00
throw err;
}
2015-06-19 18:22:14 +08:00
console.log('Site has been published to http://ant.design');
2015-06-19 18:19:30 +08:00
});