-
Notifications
You must be signed in to change notification settings - Fork 40
/
index.js
94 lines (79 loc) · 3.18 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
var fs = require('fs');
var Comb = require('csscomb');
var config = require('./.csscomb.json');
var specificityGraph = require('specificity-graph');
var concat = require('concat-files');
var comb = new Comb(config);
comb.processPath('./bem-css');
comb.processPath('./bem-flexboxgrid');
comb.processPath('./bem-platform/pages/index');
comb.processPath('./bem-sass');
comb.processPath('./css-modules/build');
comb.processPath('./oocss');
comb.processPath('./organic');
comb.processPath('./raw');
comb.processPath('./smacss');
console.log('csscomb finished work successfully');
fs.readFile('./atomic/style.css', 'utf8', function(err, data) {
specificityGraph('./atomic/specificity-graph', data, function(directory) {
console.log('specificity-graph files created in ' + directory);
});
});
fs.readFile('./bem-bootstrap-4/style.css', 'utf8', function(err, data){
specificityGraph('./bem-bootstrap-4/specificity-graph', data, function(directory){
console.log('specificity-graph files created in ' + directory);
});
});
fs.readFile('./bem-css/style.css', 'utf8', function(err, data){
specificityGraph('./bem-css/specificity-graph', data, function(directory){
console.log('specificity-graph files created in ' + directory);
});
});
fs.readFile('./bem-flexboxgrid/style.css', 'utf8', function(err, data){
specificityGraph('./bem-flexboxgrid/specificity-graph', data, function(directory){
console.log('specificity-graph files created in ' + directory);
});
});
fs.readFile('./bem-platform/pages/index/index.css', 'utf8', function(err, data){
specificityGraph('./bem-platform/specificity-graph', data, function(directory){
console.log('specificity-graph files created in ' + directory);
});
});
fs.readFile('./bem-sass/style.css', 'utf8', function(err, data){
specificityGraph('./bem-sass/specificity-graph', data, function(directory){
console.log('specificity-graph files created in ' + directory);
});
});
fs.readFile('./css-modules/build/style.css', 'utf8', function(err, data){
specificityGraph('./css-modules/specificity-graph', data, function(directory){
console.log('specificity-graph files created in ' + directory);
});
});
fs.readFile('./oocss/style.css', 'utf8', function(err, data){
specificityGraph('./oocss/specificity-graph', data, function(directory){
console.log('specificity-graph files created in ' + directory);
});
});
fs.readFile('./organic/style.css', 'utf8', function(err, data){
specificityGraph('./organic/specificity-graph', data, function(directory){
console.log('specificity-graph files created in ' + directory);
});
});
fs.readFile('./raw/style.css', 'utf8', function(err, data){
specificityGraph('./raw/specificity-graph', data, function(directory){
console.log('specificity-graph files created in ' + directory);
});
});
concat([
'./smacss/basic.css',
'./smacss/layouts.css',
'./smacss/modules.css',
'./smacss/themes.css',
'./smacss/states.css'
], './smacss/build.css', function(err) {
fs.readFile('./smacss/build.css', 'utf8', function(err, data){
specificityGraph('./smacss/specificity-graph', data, function(directory){
console.log('specificity-graph files created in ' + directory);
});
});
});