anubis-ui 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/config/qol.config.json +16 -0
- package/src/tools/config.tool.ts +9 -18
package/package.json
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"prefix": "blur",
|
|
4
|
+
"standalone": true,
|
|
5
|
+
"declaration": "backdrop-filter: blur(${value})",
|
|
6
|
+
"variations": {
|
|
7
|
+
"default": "3px"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
2
10
|
{
|
|
3
11
|
"prefix": "smooth",
|
|
4
12
|
"standalone": true,
|
|
@@ -38,5 +46,13 @@
|
|
|
38
46
|
"dashed": "dashed",
|
|
39
47
|
"dotted": "dotted"
|
|
40
48
|
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"prefix": "position",
|
|
52
|
+
"declaration": "position: ${value}",
|
|
53
|
+
"variations": {
|
|
54
|
+
"relative": "relative",
|
|
55
|
+
"absolute": "absolute"
|
|
56
|
+
}
|
|
41
57
|
}
|
|
42
58
|
]
|
package/src/tools/config.tool.ts
CHANGED
|
@@ -31,28 +31,19 @@ const init = () => {
|
|
|
31
31
|
checkUserConfig()
|
|
32
32
|
|
|
33
33
|
for (const file of anubisConfigFiles) {
|
|
34
|
-
let configToUse =
|
|
35
|
-
|
|
36
|
-
const filePath = path.join(anubisConfigFolder, `${file}.config.json`)
|
|
37
|
-
const configContent = fs.readFileSync(filePath, { encoding: 'utf-8' })
|
|
38
|
-
if (!configContent) { continue }
|
|
39
|
-
|
|
40
|
-
configToUse = JSON.parse(configContent)
|
|
34
|
+
let configToUse = null
|
|
41
35
|
|
|
42
36
|
if (userConfig && userConfig[file]) {
|
|
43
|
-
log(`${file} config found,
|
|
44
|
-
configToUse
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
console.log({ configToUse })
|
|
52
|
-
}
|
|
37
|
+
log(`${file} config found, overriding default.`)
|
|
38
|
+
configToUse = userConfig[file]
|
|
39
|
+
} else {
|
|
40
|
+
const filePath = path.join(anubisConfigFolder, `${file}.config.json`)
|
|
41
|
+
const configContent = fs.readFileSync(filePath, { encoding: 'utf-8' })
|
|
42
|
+
if (!configContent) { continue }
|
|
43
|
+
|
|
44
|
+
configToUse = JSON.parse(configContent)
|
|
53
45
|
}
|
|
54
46
|
|
|
55
|
-
|
|
56
47
|
config[file as keyof typeof config] = configToUse
|
|
57
48
|
}
|
|
58
49
|
|