source: trip-planner-front/node_modules/csso/lib/restructure/index.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1var prepare = require('./prepare/index');
2var mergeAtrule = require('./1-mergeAtrule');
3var initialMergeRuleset = require('./2-initialMergeRuleset');
4var disjoinRuleset = require('./3-disjoinRuleset');
5var restructShorthand = require('./4-restructShorthand');
6var restructBlock = require('./6-restructBlock');
7var mergeRuleset = require('./7-mergeRuleset');
8var restructRuleset = require('./8-restructRuleset');
9
10module.exports = function(ast, options) {
11 // prepare ast for restructing
12 var indexer = prepare(ast, options);
13 options.logger('prepare', ast);
14
15 mergeAtrule(ast, options);
16 options.logger('mergeAtrule', ast);
17
18 initialMergeRuleset(ast);
19 options.logger('initialMergeRuleset', ast);
20
21 disjoinRuleset(ast);
22 options.logger('disjoinRuleset', ast);
23
24 restructShorthand(ast, indexer);
25 options.logger('restructShorthand', ast);
26
27 restructBlock(ast);
28 options.logger('restructBlock', ast);
29
30 mergeRuleset(ast);
31 options.logger('mergeRuleset', ast);
32
33 restructRuleset(ast);
34 options.logger('restructRuleset', ast);
35};
Note: See TracBrowser for help on using the repository browser.