Skip to content

Commit 5c75d08

Browse files
author
alxndrsn
committed
Add debug
1 parent b4007d5 commit 5c75d08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/build-site.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ var POUCHDB_LESS = __dirname + '/../docs/static/less/pouchdb/pouchdb.less';
1414
process.chdir('docs');
1515

1616
function checkJekyll() {
17+
console.log('checkJekyll()');
1718
return exec('bundle check').catch(function () {
1819
throw new Error('Jekyll is not installed. You need to do: npm run install-jekyll');
1920
});
2021
}
2122

2223
function buildCSS() {
24+
console.log('buildCSS()');
2325
mkdirp.sync(__dirname + '/../docs/static/css');
2426
var cmd = __dirname + '/../node_modules/less/bin/lessc ' + POUCHDB_LESS;
2527
return exec(cmd).then(function (child) {
@@ -30,6 +32,7 @@ function buildCSS() {
3032
}
3133

3234
function buildJekyll(path) {
35+
console.log('buildJekyll()');
3336
// Dont rebuild on website artifacts being written
3437
if (path && /^_site/.test(path.relative)) {
3538
return;
@@ -43,6 +46,7 @@ function buildJekyll(path) {
4346
}
4447

4548
function highlightEs6() {
49+
console.log('highlightEs6()');
4650
var path = require('path').resolve(__dirname, '../docs/_site');
4751

4852
// TODO: this is a fragile and hacky way to get
@@ -62,6 +66,7 @@ function onError(err) {
6266
}
6367

6468
function buildEverything() {
69+
console.log('buildEverything()');
6570
return Promise.resolve()
6671
.then(checkJekyll)
6772
.then(buildCSS)

0 commit comments

Comments
 (0)