+{exec} = require 'child_process'
 {Promise} = require 'es6-promise'
 borage = require 'borage'
 browserify = require 'browserify'

    @emit 'end'

gulp.task 'build', [
  'build-html'
  'build-resource'
  'build-script'

  loadEntries('./data/nofile.md').forEach ({ paths, entry }) ->
    paths.forEach (path) ->
      prerender(baseDir + path, entry)

gulp.task 'build-json', (done) ->
  exec '$(npm bin)/kraken', (err, stdout, stderr) ->
    return done(err) if err?
    console.log stdout if stdout?.length > 0
    console.error stderr if stderr?.length > 0
    done()

gulp.task 'build-resource', ['build-font'], ->
  gulp.src [
