src/Cli.js
function build(options) {
  options = Object.assign({}, options)

  return resolveStyleguide(options)
  .then(function (styleguide) {
    success('Styleguide.write:', 'start writing ...')
    return styleguide.write()
  })
  .then(function (styleguide) {
    success('Styleguide.write:', 'finished writing')
    return styleguide
  })
  .catch(function (e) {
    error('Cli.build', 'failed to build Styleguide', e)
    throw (e)
  })
}
function build(options) {
  options = Object.assign({}, options)

  return resolveStyleguide(options)
  .then(function (styleguide) {
    success('Styleguide.write:', 'start writing ...')
    return styleguide.write()
  })
  .then(function (styleguide) {
    success('Styleguide.write:', 'finished writing')
    return styleguide
  })
  .catch(function (e) {
    error('Cli.build', 'failed to build Styleguide', e)
    throw (e)
  })
}
function build ( options ) { options = Object . assign ( { } , options ) return resolveStyleguide ( options ) . then ( function ( styleguide ) { success ( 'Styleguide.write:' , 'start writing ...' ) return styleguide . write ( ) } ) . then ( function ( styleguide ) { success ( 'Styleguide.write:' , 'finished writing' ) return styleguide } ) . catch ( function ( e ) { error ( 'Cli.build' , 'failed to build Styleguide' , e ) throw ( e ) } ) }
create the static styleguide
create the static styleguide