Skip to content

Commit 45643c9

Browse files
author
Brian Muenzenmeyer
authored
Merge pull request #373 from pattern-lab/dev
2.0.1 Remove media query hunter
2 parents 4cf8245 + 3129f09 commit 45643c9

File tree

5 files changed

+1
-141
lines changed

5 files changed

+1
-141
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "patternlab-node",
33
"description": "Pattern Lab is a collection of tools to help you create atomic design systems. This is the node command line interface (CLI).",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"main": "./core/lib/patternlab.js",
66
"dependencies": {
77
"diveSync": "^0.3.0",

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)