How to use the patternlab-node/core/lib/pattern_engines.getSupportedFileExtensions function in patternlab-node

To help you get started, we’ve selected a few patternlab-node 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 Comcast / patternlab-edition-node-webpack / webpack.config.js View on Github external
afterEmit: function(compilation) {
              const supportedTemplateExtensions = patternEngines.getSupportedFileExtensions();
              const templateFilePaths = supportedTemplateExtensions.map(
                function(dotExtension) {
                  return `${plConfig.paths.source.patterns}**/*${dotExtension}`;
                }
              );

              // additional watch files
              const watchFiles = [
                `${plConfig.paths.source.patterns}**/*.(json|md|yaml|yml)`,
                `${plConfig.paths.source.data}**/*.(json|md|yaml|yml)`,
                `${plConfig.paths.source.fonts}**/*`,
                `${plConfig.paths.source.images}**/*`,
                `${plConfig.paths.source.meta}**/*`,
                `${plConfig.paths.source.annotations}**/*`
              ];

patternlab-node

Pattern Lab is a collection of tools to help you create atomic design systems. This is the node command line interface (CLI).

MIT
Latest version published 7 years ago

Package Health Score

53 / 100
Full package analysis