@wonderflow/config 1.5.0 → 1.5.4
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/index.js +5 -1
- package/package.json +12 -12
- package/postcss/config.js +10 -4
package/index.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postcssConfig = void 0;
|
|
4
|
+
var config_1 = require("./postcss/config");
|
|
5
|
+
Object.defineProperty(exports, "postcssConfig", { enumerable: true, get: function () { return config_1.postcssConfig; } });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wonderflow/config",
|
|
3
3
|
"description": "Wanda design system shared configurations ",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.4",
|
|
5
5
|
"author": "Wonderflow",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|
|
@@ -33,27 +33,28 @@
|
|
|
33
33
|
"postbuild": "copyfiles package.json dist"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@wonderflow/
|
|
37
|
-
"
|
|
38
|
-
"cssnano": "5.
|
|
39
|
-
"cssnano-preset-default": "5.1.5",
|
|
36
|
+
"@wonderflow/tokens": "1.3.6",
|
|
37
|
+
"cssnano": "5.0.11",
|
|
38
|
+
"cssnano-preset-default": "5.1.7",
|
|
40
39
|
"flat": "5.0.2",
|
|
41
40
|
"postcss-easy-import": "3.0.0",
|
|
42
41
|
"postcss-inset": "1.0.0",
|
|
42
|
+
"postcss-mixins": "8.1.0",
|
|
43
43
|
"postcss-preset-env": "6.7.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@commitlint/cli": "14.1.0",
|
|
47
47
|
"@commitlint/config-conventional": "14.1.0",
|
|
48
|
-
"@semantic-release/commit-analyzer": "9.0.
|
|
48
|
+
"@semantic-release/commit-analyzer": "9.0.2",
|
|
49
49
|
"@semantic-release/exec": "6.0.2",
|
|
50
50
|
"@semantic-release/git": "10.0.1",
|
|
51
51
|
"@semantic-release/github": "8.0.2",
|
|
52
|
-
"@semantic-release/npm": "8.0.
|
|
52
|
+
"@semantic-release/npm": "8.0.3",
|
|
53
53
|
"@semantic-release/release-notes-generator": "10.0.2",
|
|
54
54
|
"@types/flat": "5.0.2",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
56
|
-
"@typescript-eslint/parser": "5.
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "5.4.0",
|
|
56
|
+
"@typescript-eslint/parser": "5.4.0",
|
|
57
|
+
"@wonderflow/eslint-config": "1.1.5",
|
|
57
58
|
"commitizen": "4.2.4",
|
|
58
59
|
"copyfiles": "2.4.1",
|
|
59
60
|
"cz-conventional-changelog": "3.3.0",
|
|
@@ -61,9 +62,8 @@
|
|
|
61
62
|
"husky": "7.0.4",
|
|
62
63
|
"is-ci": "3.0.1",
|
|
63
64
|
"npm-run-all": "4.1.5",
|
|
64
|
-
"postcss-mixins": "8.1.0",
|
|
65
65
|
"rimraf": "3.0.2",
|
|
66
|
-
"semantic-release": "18.0.
|
|
67
|
-
"typescript": "4.
|
|
66
|
+
"semantic-release": "18.0.1",
|
|
67
|
+
"typescript": "4.5.2"
|
|
68
68
|
}
|
|
69
69
|
}
|
package/postcss/config.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.postcssConfig = void 0;
|
|
7
|
+
const tokens_json_1 = __importDefault(require("@wonderflow/tokens/platforms/web/tokens.json"));
|
|
8
|
+
const flat_1 = __importDefault(require("flat"));
|
|
9
|
+
const flatTokens = (0, flat_1.default)(tokens_json_1.default, {
|
|
4
10
|
delimiter: '-'
|
|
5
11
|
});
|
|
6
12
|
const environmentVariables = Object.keys(flatTokens).reduce((acc, key) => {
|
|
@@ -8,7 +14,7 @@ const environmentVariables = Object.keys(flatTokens).reduce((acc, key) => {
|
|
|
8
14
|
acc[newKey] = `${flatTokens[key]}`;
|
|
9
15
|
return acc;
|
|
10
16
|
}, {});
|
|
11
|
-
|
|
17
|
+
exports.postcssConfig = {
|
|
12
18
|
plugins: {
|
|
13
19
|
'postcss-mixins': {},
|
|
14
20
|
'postcss-easy-import': {
|