Skip to content

Commit 21a6733

Browse files
author
Brian Muenzenmeyer
authored
Merge pull request #372 from james-nash/remove-media-hunter
Removed the media query hunter
2 parents 65ccf31 + aa36595 commit 21a6733

File tree

4 files changed

+0
-140
lines changed

4 files changed

+0
-140
lines changed

core/lib/media_hunter.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

core/lib/ui_builder.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,6 @@ function sortPatterns(patternsArray) {
401401
// MAIN BUILDER FUNCTION
402402

403403
function buildFrontEnd(patternlab) {
404-
var mh = require('./media_hunter');
405-
var media_hunter = new mh();
406404
var ae = require('./annotation_exporter');
407405
var annotation_exporter = new ae(patternlab);
408406
var styleguidePatterns = [];
@@ -416,9 +414,6 @@ function buildFrontEnd(patternlab) {
416414
//sort all patterns explicitly.
417415
patternlab.patterns = sortPatterns(patternlab.patterns);
418416

419-
//find mediaQueries
420-
media_hunter.find_media_queries(path.resolve(paths.source.css), patternlab);
421-
422417
// check if patterns are excluded, if not add them to styleguidePatterns
423418
styleguidePatterns = assembleStyleguidePatterns(patternlab);
424419

@@ -478,7 +473,6 @@ function buildFrontEnd(patternlab) {
478473
//ishControls
479474
output += 'var ishControls = {"ishControlsHide":' + JSON.stringify(patternlab.config.ishControlsHide) + '};' + eol;
480475

481-
//todo add media queries to this
482476
//navItems
483477
output += 'var navItems = {"patternTypes": ' + JSON.stringify(patternlab.patternTypes) + '};' + eol;
484478

test/files/test.css

Lines changed: 0 additions & 19 deletions
This file was deleted.

test/media_hunter_tests.js

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)