1
1
const path = require ( "path" ) ;
2
2
const {
3
3
plugins : { docs, json } ,
4
- util : { defineClass } ,
5
- modules : { font, colors, border, boxShadow }
6
- } = require ( "../src/index" ) ;
4
+ modules : { font, colors, border, boxShadow } ,
5
+ } = require ( "../dist/index" ) ;
7
6
8
7
const breakPoints = {
9
8
ns : "screen and (min-width: 48rem)" ,
10
9
m : "screen and (min-width: 48rem) and (max-width: 80rem)" ,
11
- l : "screen and (min-width: 80rem)"
10
+ l : "screen and (min-width: 80rem)" ,
12
11
} ;
13
12
14
13
const plugins = [
15
14
json ( {
16
- output : path . join ( __dirname , "/dist/example.json" )
15
+ output : path . join ( __dirname , "/dist/example.json" ) ,
17
16
} ) ,
18
17
docs ( {
19
18
output : path . join ( __dirname , "/dist/docs.html" ) ,
20
- openFile : true
21
- } )
19
+ openFile : true ,
20
+ } ) ,
22
21
] ;
23
22
24
23
const modules = [
25
24
boxShadow ( {
26
25
names : {
27
26
"bxsh:n" : "boxShadowNone" ,
28
- bxsh : "boxShadow"
27
+ bxsh : "boxShadow" ,
29
28
} ,
30
29
boxShadowValues : {
31
30
xs : "0 0 0 1px rgba(0, 0, 0, 0.05)" ,
32
- inner : "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)"
31
+ inner : "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)" ,
33
32
} ,
34
- whitelist : [ "bxsh:n" , "bxsh" ]
33
+ whitelist : [ "bxsh:n" , "bxsh" ] ,
35
34
} ) ,
36
35
border ( {
37
36
names : {
38
37
"bd:w" : "borderWidth" ,
39
38
"bd:s" : "borderStyle" ,
40
- "bd:n" : "borderNone"
39
+ "bd:n" : "borderNone" ,
41
40
} ,
42
41
whitelist : [ "bd:w" , "bd:s" , "bd:n" ] ,
43
42
borderStyleValues : [ "solid" , "dotted" ] ,
44
43
borderWidthValues : [ "1px" , "2px" ] ,
45
44
pseudoClasses : { "bd:n" : [ ":hover" ] } ,
46
45
isResponsive : true ,
47
- responsiveWhiteList : [ "bd:n" ]
46
+ responsiveWhiteList : [ "bd:n" ] ,
48
47
} ) ,
49
48
font ( {
50
49
names : { fz : "f" } ,
@@ -59,9 +58,9 @@ const modules = [
59
58
"1.625rem" ,
60
59
"1.75rem" ,
61
60
"1.875rem" ,
62
- "2rem"
61
+ "2rem" ,
63
62
] ,
64
- isResponsive : true
63
+ isResponsive : true ,
65
64
} ) ,
66
65
colors ( {
67
66
nestedRules : {
@@ -70,16 +69,16 @@ const modules = [
70
69
isResponsive : true ,
71
70
colorValues : {
72
71
black : "#ffffff" ,
73
- white : "#1a1a1a"
74
- }
72
+ white : "#1a1a1a" ,
73
+ } ,
75
74
} ,
76
75
"@media foo" : {
77
76
whitelist : [ "c" ] ,
78
77
colorValues : {
79
78
black : "#ffffff" ,
80
- white : "#1a1a1a"
81
- }
82
- }
79
+ white : "#1a1a1a" ,
80
+ } ,
81
+ } ,
83
82
} ,
84
83
whitelist : [ "c" , "bgc" , "bdc" ] ,
85
84
pseudoClasses : { c : [ ":hover" ] , bgc : [ ":hover" , ":active" ] } ,
@@ -92,32 +91,32 @@ const modules = [
92
91
grey3 : "#dddddd" ,
93
92
red : "#ce3535" ,
94
93
green : "#0f7e4a" ,
95
- blue : "#0062b4"
94
+ blue : "#0062b4" ,
96
95
} ,
97
96
backgroundColorValues : {
98
97
white : "#f3f3f3" ,
99
98
pink : "#fde5e5" ,
100
99
green : "#e0f3ea" ,
101
- yellow : "#fffdc0"
100
+ yellow : "#fffdc0" ,
102
101
} ,
103
102
borderColorValues : {
104
103
orange : "#ff6900" ,
105
104
black : "#1a1a1a" ,
106
105
white : "#ffffff" ,
107
106
grey : "#a5a5a5" ,
108
107
green : "#0f7e4a" ,
109
- red : "#ce3535"
110
- }
111
- } )
108
+ red : "#ce3535" ,
109
+ } ,
110
+ } ) ,
112
111
] ;
113
112
114
113
module . exports = {
115
114
forceInsert : true ,
116
115
config : {
117
116
breakPoints,
118
117
breakPointSeparator : "_" ,
119
- pseudoClassesSeparator : "_"
118
+ pseudoClassesSeparator : "_" ,
120
119
} ,
121
120
modules,
122
- plugins
121
+ plugins,
123
122
} ;
0 commit comments