lib/gulp-tasks/patterns-import.js
function () {
  'use strict';

  // default options for angularTemplatecache gulp task
  var options = {
    config: {
      compilePatternsOnImport: false,
      dataSource: 'pattern',
      dataFileName: 'pattern.yml',
      htmlTemplateDest: './source/_patterns',
      stylesDest: './source/css/scss',
      scriptsDest: './source/js',
      cssCompiler: 'sass', // sass, less, stylus, none
      templateEngine: 'twig',
      templateEngineOptions: {
        base: 'node_modules/pattern-library/patterns/',
        async: false
      },
      templateDonut: {
        twig: './node_modules/pattern-importer/templates/donut.twig'
      },
      convertCategoryTitles: true
    },
    src: ['./node_modules/pattern-library/patterns/**/pattern.yml'],
    taskName: 'patterns-import', // default task name
    dependencies: [] // gulp tasks which should be run before this task
  };

  return options;
}
function () {
  'use strict';

  // default options for angularTemplatecache gulp task
  var options = {
    config: {
      compilePatternsOnImport: false,
      dataSource: 'pattern',
      dataFileName: 'pattern.yml',
      htmlTemplateDest: './source/_patterns',
      stylesDest: './source/css/scss',
      scriptsDest: './source/js',
      cssCompiler: 'sass', // sass, less, stylus, none
      templateEngine: 'twig',
      templateEngineOptions: {
        base: 'node_modules/pattern-library/patterns/',
        async: false
      },
      templateDonut: {
        twig: './node_modules/pattern-importer/templates/donut.twig'
      },
      convertCategoryTitles: true
    },
    src: ['./node_modules/pattern-library/patterns/**/pattern.yml'],
    taskName: 'patterns-import', // default task name
    dependencies: [] // gulp tasks which should be run before this task
  };

  return options;
}
function ( ) { 'use strict' ; // default options for angularTemplatecache gulp task var options = { config : { compilePatternsOnImport : false , dataSource : 'pattern' , dataFileName : 'pattern.yml' , htmlTemplateDest : './source/_patterns' , stylesDest : './source/css/scss' , scriptsDest : './source/js' , cssCompiler : 'sass' , // sass, less, stylus, none templateEngine : 'twig' , templateEngineOptions : { base : 'node_modules/pattern-library/patterns/' , async : false } , templateDonut : { twig : './node_modules/pattern-importer/templates/donut.twig' } , convertCategoryTitles : true } , src : [ './node_modules/pattern-library/patterns/**/pattern.yml' ] , taskName : 'patterns-import' , // default task name dependencies : [ ] // gulp tasks which should be run before this task } ; return options ; }
Function to get default options for an implementation of patternlab-import
@return {Object}  options  an object of default patternlab-import options
Function to get default options for an implementation of patternlab - import