Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a6ca6f7

Browse files
author
Sylvester Aswin Stanley
committedJan 6, 2021
add build config
1 parent 2663855 commit a6ca6f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+120
-112
lines changed
 

‎.eslintrc.js

+9
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,13 @@ module.exports = {
1616
es6: true,
1717
node: true,
1818
},
19+
overrides: [
20+
{
21+
files: ["./example/**/*.js"],
22+
rules: {
23+
// Allow require statement for all JS files
24+
"@typescript-eslint/no-var-requires": "off",
25+
},
26+
},
27+
],
1928
};

‎example/example.config.js

+25-26
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,49 @@
11
const path = require("path");
22
const {
33
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");
76

87
const breakPoints = {
98
ns: "screen and (min-width: 48rem)",
109
m: "screen and (min-width: 48rem) and (max-width: 80rem)",
11-
l: "screen and (min-width: 80rem)"
10+
l: "screen and (min-width: 80rem)",
1211
};
1312

1413
const plugins = [
1514
json({
16-
output: path.join(__dirname, "/dist/example.json")
15+
output: path.join(__dirname, "/dist/example.json"),
1716
}),
1817
docs({
1918
output: path.join(__dirname, "/dist/docs.html"),
20-
openFile: true
21-
})
19+
openFile: true,
20+
}),
2221
];
2322

2423
const modules = [
2524
boxShadow({
2625
names: {
2726
"bxsh:n": "boxShadowNone",
28-
bxsh: "boxShadow"
27+
bxsh: "boxShadow",
2928
},
3029
boxShadowValues: {
3130
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)",
3332
},
34-
whitelist: ["bxsh:n", "bxsh"]
33+
whitelist: ["bxsh:n", "bxsh"],
3534
}),
3635
border({
3736
names: {
3837
"bd:w": "borderWidth",
3938
"bd:s": "borderStyle",
40-
"bd:n": "borderNone"
39+
"bd:n": "borderNone",
4140
},
4241
whitelist: ["bd:w", "bd:s", "bd:n"],
4342
borderStyleValues: ["solid", "dotted"],
4443
borderWidthValues: ["1px", "2px"],
4544
pseudoClasses: { "bd:n": [":hover"] },
4645
isResponsive: true,
47-
responsiveWhiteList: ["bd:n"]
46+
responsiveWhiteList: ["bd:n"],
4847
}),
4948
font({
5049
names: { fz: "f" },
@@ -59,9 +58,9 @@ const modules = [
5958
"1.625rem",
6059
"1.75rem",
6160
"1.875rem",
62-
"2rem"
61+
"2rem",
6362
],
64-
isResponsive: true
63+
isResponsive: true,
6564
}),
6665
colors({
6766
nestedRules: {
@@ -70,16 +69,16 @@ const modules = [
7069
isResponsive: true,
7170
colorValues: {
7271
black: "#ffffff",
73-
white: "#1a1a1a"
74-
}
72+
white: "#1a1a1a",
73+
},
7574
},
7675
"@media foo": {
7776
whitelist: ["c"],
7877
colorValues: {
7978
black: "#ffffff",
80-
white: "#1a1a1a"
81-
}
82-
}
79+
white: "#1a1a1a",
80+
},
81+
},
8382
},
8483
whitelist: ["c", "bgc", "bdc"],
8584
pseudoClasses: { c: [":hover"], bgc: [":hover", ":active"] },
@@ -92,32 +91,32 @@ const modules = [
9291
grey3: "#dddddd",
9392
red: "#ce3535",
9493
green: "#0f7e4a",
95-
blue: "#0062b4"
94+
blue: "#0062b4",
9695
},
9796
backgroundColorValues: {
9897
white: "#f3f3f3",
9998
pink: "#fde5e5",
10099
green: "#e0f3ea",
101-
yellow: "#fffdc0"
100+
yellow: "#fffdc0",
102101
},
103102
borderColorValues: {
104103
orange: "#ff6900",
105104
black: "#1a1a1a",
106105
white: "#ffffff",
107106
grey: "#a5a5a5",
108107
green: "#0f7e4a",
109-
red: "#ce3535"
110-
}
111-
})
108+
red: "#ce3535",
109+
},
110+
}),
112111
];
113112

114113
module.exports = {
115114
forceInsert: true,
116115
config: {
117116
breakPoints,
118117
breakPointSeparator: "_",
119-
pseudoClassesSeparator: "_"
118+
pseudoClassesSeparator: "_",
120119
},
121120
modules,
122-
plugins
121+
plugins,
123122
};

0 commit comments

Comments
 (0)
Please sign in to comment.