Skip to content

Commit

Permalink
Merge pull request #372 from james-nash/remove-media-hunter
Browse files Browse the repository at this point in the history
Removed the media query hunter
  • Loading branch information
Brian Muenzenmeyer authored Jun 26, 2016
2 parents 65ccf31 + aa36595 commit 21a6733
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 140 deletions.
41 changes: 0 additions & 41 deletions core/lib/media_hunter.js

This file was deleted.

6 changes: 0 additions & 6 deletions core/lib/ui_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,6 @@ function sortPatterns(patternsArray) {
// MAIN BUILDER FUNCTION

function buildFrontEnd(patternlab) {
var mh = require('./media_hunter');
var media_hunter = new mh();
var ae = require('./annotation_exporter');
var annotation_exporter = new ae(patternlab);
var styleguidePatterns = [];
Expand All @@ -416,9 +414,6 @@ function buildFrontEnd(patternlab) {
//sort all patterns explicitly.
patternlab.patterns = sortPatterns(patternlab.patterns);

//find mediaQueries
media_hunter.find_media_queries(path.resolve(paths.source.css), patternlab);

// check if patterns are excluded, if not add them to styleguidePatterns
styleguidePatterns = assembleStyleguidePatterns(patternlab);

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

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

Expand Down
19 changes: 0 additions & 19 deletions test/files/test.css

This file was deleted.

74 changes: 0 additions & 74 deletions test/media_hunter_tests.js

This file was deleted.

0 comments on commit 21a6733

Please sign in to comment.