Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed the media query hunter #372

Merged
merged 1 commit into from
Jun 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.