Skip to content

Commit 2a9b332

Browse files
committed
initial refactor - a simple method with test coverage. still working with generation
1 parent 9639f00 commit 2a9b332

File tree

4 files changed

+588
-405
lines changed

4 files changed

+588
-405
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ branches:
1616
only:
1717
- master
1818
- dev
19-
- dev-2.0-core
19+
- ui-rewrite
2020

2121
notifications:
2222
webhooks:

core/lib/patternlab.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/*
2-
* patternlab-node - v2.3.0 - 2016
3-
*
1+
/*
2+
* patternlab-node - v2.3.0 - 2016
3+
*
44
* Brian Muenzenmeyer, Geoff Pursell, and the web community.
5-
* Licensed under the MIT license.
6-
*
7-
* Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice.
5+
* Licensed under the MIT license.
6+
*
7+
* Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice.
88
*
99
*/
1010

@@ -85,7 +85,8 @@ var patternlab_engine = function (config) {
8585
pa = require('./pattern_assembler'),
8686
pe = require('./pattern_exporter'),
8787
lh = require('./lineage_hunter'),
88-
buildFrontEnd = require('./ui_builder'),
88+
ui = require('./ui_builder'),
89+
ui2 = require('./ui_builder'),
8990
plutils = require('./utilities'),
9091
sm = require('./starterkit_manager'),
9192
patternlab = {};
@@ -389,7 +390,8 @@ var patternlab_engine = function (config) {
389390
},
390391
build: function (callback, deletePatternDir) {
391392
buildPatterns(deletePatternDir);
392-
buildFrontEnd(patternlab);
393+
new ui().buildFrontend(patternlab);
394+
//new ui2().buildFrontend2(patternlab);
393395
printDebug();
394396
callback();
395397
},

0 commit comments

Comments
 (0)