Skip to content

Commit

Permalink
change module's layout
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Feb 28, 2017
1 parent a67d1e9 commit f381f09
Show file tree
Hide file tree
Showing 37 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions lib/compressor/index.js → lib/compress.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var List = require('css-tree').List;
var clone = require('css-tree').clone;
var usageUtils = require('./usage');
var clean = require('./clean');
var compress = require('./compress');
var replace = require('./replace');
var restructureBlock = require('./restructure');
var walkRules = require('css-tree').walkRules;

Expand Down Expand Up @@ -65,9 +65,9 @@ function compressChunk(ast, firstAtrulesAllowed, usageData, num, logger) {
clean(ast, usageData);
logger('clean', ast);

// compress nodes
compress(ast, usageData);
logger('compress', ast);
// replace nodes for shortened forms
replace(ast, usageData);
logger('replace', ast);

return ast;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var csstree = require('css-tree');
var parse = csstree.parse;
var compress = require('./compressor');
var compress = require('./compress');
var translate = csstree.translate;
var translateWithSourceMap = csstree.translateWithSourceMap;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/specificity.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var fs = require('fs');
var assert = require('assert');
var csso = require('../lib');
var specificity = require('../lib/compressor/restructure/prepare/specificity.js');
var specificity = require('../lib/restructure/prepare/specificity.js');

function createSpecificityTest(test) {
it(test.selector, function() {
Expand Down

0 comments on commit f381f09

Please sign in to comment.