Skip to content

Public API

Brian Muenzenmeyer edited this page Oct 10, 2017 · 11 revisions
Instance Methods
// instantiation. assumed first step for below
const config = require('./patternlab-config.json');
const patternlab = require('patternlab-node')(config);
// print help
patternlab.help(() => {}, getConfiguredCleanOption())
// build
patternlab.build(() => {}, getConfiguredCleanOption())
// log version to console
patternlab.version(); // v3.0.0
// return package.json version as string
patternlab.v(); // v3.0.0