Skip to content

Instantly share code, notes, and snippets.

@jarrodek
Created June 18, 2018 18:53
Show Gist options
  • Save jarrodek/94387cf0e5c8d8b439a2ce772d255c9e to your computer and use it in GitHub Desktop.
Save jarrodek/94387cf0e5c8d8b439a2ce772d255c9e to your computer and use it in GitHub Desktop.
An example of building the API console with api-console-builder
const builder = require('api-console-builder');
builder({
tagName: '5.0.0-preview',
embedded: true,
themeFile: './my-theme.html',
destination: 'console-bundle'
})
.then(() => console.log('Build complete <3'))
.catch((cause) => console.log('Build error <\\3', cause.message));
/*
See https://github.com/mulesoft-labs/api-console-builder/blob/master/lib/builder-options.js
for all available options.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment