Skip to content

Commit c168ccc

Browse files
Merge pull request #555 from bleathem/expose-pattern-engines
Expose the pattern engines as a property of the patternlab object
2 parents f5bab2a + 039528a commit c168ccc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/lib/patternlab.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ var diveSync = require('diveSync'),
1818
inherits = require('util').inherits,
1919
pm = require('./plugin_manager'),
2020
fs = require('fs-extra'),
21-
plutils = require('./utilities');
21+
plutils = require('./utilities'),
22+
patternEngines = require('./pattern_engines');
2223

2324
var EventEmitter = require('events').EventEmitter;
2425

@@ -137,6 +138,8 @@ var patternlab_engine = function (config) {
137138
Pattern = require('./object_factory').Pattern,
138139
patternlab = {};
139140

141+
patternlab.engines = patternEngines;
142+
140143
var pattern_assembler = new pa(),
141144
pattern_exporter = new pe(),
142145
lineage_hunter = new lh();

0 commit comments

Comments
 (0)