How to use @pattern-lab/uikit-workshop - 1 common examples

To help you get started, we’ve selected a few @pattern-lab/uikit-workshop examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pattern-lab / patternlab-node / packages / uikit-workshop / build-tools.js View on Github external
const webpackServer = require('@pattern-lab/uikit-workshop/build/webpack-server.js');
const path = require('path');
const configFilePath = path.join(process.cwd(), './patternlab-config.json');
const config = require(configFilePath);
const patternlab = require('@pattern-lab/core')(config);

// build + start watch mode
patternlab.build({
  watch: true,
  cleanPublic: true,
});

webpackServer.serve(
  patternlab,
  configFilePath,
  path.resolve(process.cwd(), config.paths.public.root)
);

@pattern-lab/uikit-workshop

Front-end assets and templates for the default Pattern Lab workshop view

MIT
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis

Popular @pattern-lab/uikit-workshop functions

Similar packages