@powerlines/plugin-style-dictionary 0.3.264 → 0.3.266
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/dist/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/_virtual/_rolldown/runtime.mjs +3 -0
- package/dist/index.cjs +123 -0
- package/dist/index.d.cts +19 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +19 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +119 -0
- package/dist/index.mjs.map +1 -0
- package/dist/style-dictionary/file-header.cjs +15 -0
- package/dist/style-dictionary/file-header.mjs +15 -0
- package/dist/style-dictionary/file-header.mjs.map +1 -0
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +2 -0
- package/dist/types/index.d.mts +2 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +117 -0
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +117 -0
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
|
|
29
|
+
exports.__toESM = __toESM;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_file_header = require('./style-dictionary/file-header.cjs');
|
|
4
|
+
let _powerlines_plugin_esbuild_helpers_resolve = require("@powerlines/plugin-esbuild/helpers/resolve");
|
|
5
|
+
let _storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
6
|
+
let _stryke_type_checks_is_function = require("@stryke/type-checks/is-function");
|
|
7
|
+
let defu = require("defu");
|
|
8
|
+
defu = require_runtime.__toESM(defu);
|
|
9
|
+
let style_dictionary = require("style-dictionary");
|
|
10
|
+
style_dictionary = require_runtime.__toESM(style_dictionary);
|
|
11
|
+
|
|
12
|
+
//#region src/index.ts
|
|
13
|
+
/**
|
|
14
|
+
* A Powerlines plugin to integrate style-dictionary for code generation.
|
|
15
|
+
*
|
|
16
|
+
* @param options - The plugin options.
|
|
17
|
+
* @returns A Powerlines plugin instance.
|
|
18
|
+
*/
|
|
19
|
+
const plugin = (options = {}) => {
|
|
20
|
+
return {
|
|
21
|
+
name: "style-dictionary",
|
|
22
|
+
config() {
|
|
23
|
+
return { styleDictionary: (0, defu.default)(options, {
|
|
24
|
+
log: { verbosity: this.config.logLevel === _storm_software_config_tools_types.LogLevelLabel.TRACE ? "verbose" : this.config.logLevel === _storm_software_config_tools_types.LogLevelLabel.DEBUG ? "default" : "silent" },
|
|
25
|
+
fileHeader: "powerlines/file-header"
|
|
26
|
+
}) };
|
|
27
|
+
},
|
|
28
|
+
async configResolved() {
|
|
29
|
+
this.styleDictionary = this.config.styleDictionary.instance ?? new style_dictionary.default(this.config.styleDictionary);
|
|
30
|
+
this.styleDictionary.registerFileHeader(require_file_header.fileHeader(this));
|
|
31
|
+
if (this.config.styleDictionary.customActions) {
|
|
32
|
+
let builder;
|
|
33
|
+
if ((0, _stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customActions)) builder = this.config.styleDictionary.customActions;
|
|
34
|
+
else builder = await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customActions);
|
|
35
|
+
Object.entries((0, _stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, action]) => {
|
|
36
|
+
this.styleDictionary.registerAction({
|
|
37
|
+
...action,
|
|
38
|
+
name
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
if (this.config.styleDictionary.customFileHeaders) {
|
|
43
|
+
let builder;
|
|
44
|
+
if ((0, _stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customFileHeaders)) builder = this.config.styleDictionary.customFileHeaders;
|
|
45
|
+
else builder = await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customFileHeaders);
|
|
46
|
+
Object.entries((0, _stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, fileHeader]) => {
|
|
47
|
+
this.styleDictionary.registerFileHeader({
|
|
48
|
+
name,
|
|
49
|
+
fileHeader
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
if (this.config.styleDictionary.customFilters) {
|
|
54
|
+
let builder;
|
|
55
|
+
if ((0, _stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customFilters)) builder = this.config.styleDictionary.customFilters;
|
|
56
|
+
else builder = await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customFilters);
|
|
57
|
+
Object.entries((0, _stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, filter]) => {
|
|
58
|
+
this.styleDictionary.registerFilter({
|
|
59
|
+
...filter,
|
|
60
|
+
name
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
if (this.config.styleDictionary.customPreprocessors) {
|
|
65
|
+
let builder;
|
|
66
|
+
if ((0, _stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customPreprocessors)) builder = this.config.styleDictionary.customPreprocessors;
|
|
67
|
+
else builder = await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customPreprocessors);
|
|
68
|
+
Object.entries((0, _stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, preprocessor]) => {
|
|
69
|
+
this.styleDictionary.registerPreprocessor({
|
|
70
|
+
...preprocessor,
|
|
71
|
+
name
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
if (this.config.styleDictionary.customParsers) {
|
|
76
|
+
let builder;
|
|
77
|
+
if ((0, _stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customParsers)) builder = this.config.styleDictionary.customParsers;
|
|
78
|
+
else builder = await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customParsers);
|
|
79
|
+
Object.entries((0, _stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, parser]) => {
|
|
80
|
+
this.styleDictionary.registerParser({
|
|
81
|
+
...parser,
|
|
82
|
+
name
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
if (this.config.styleDictionary.customTransforms) {
|
|
87
|
+
let builder;
|
|
88
|
+
if ((0, _stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customTransforms)) builder = this.config.styleDictionary.customTransforms;
|
|
89
|
+
else builder = await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customTransforms);
|
|
90
|
+
Object.entries((0, _stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, transform]) => {
|
|
91
|
+
this.styleDictionary.registerTransform({
|
|
92
|
+
...transform,
|
|
93
|
+
name
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (this.config.styleDictionary.customTransformGroups) {
|
|
98
|
+
let builder;
|
|
99
|
+
if ((0, _stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customTransformGroups)) builder = this.config.styleDictionary.customTransformGroups;
|
|
100
|
+
else builder = await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customTransformGroups);
|
|
101
|
+
Object.entries((0, _stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, transformGroup]) => {
|
|
102
|
+
this.styleDictionary.registerTransformGroup({
|
|
103
|
+
name,
|
|
104
|
+
transforms: transformGroup
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
async clean() {
|
|
110
|
+
await this.styleDictionary.cleanAllPlatforms({ cache: !this.config.skipCache });
|
|
111
|
+
},
|
|
112
|
+
prepare: {
|
|
113
|
+
order: "pre",
|
|
114
|
+
async handler() {
|
|
115
|
+
if (!this.config.styleDictionary.skipBuild) await this.styleDictionary.buildAllPlatforms({ cache: !this.config.skipCache });
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
//#endregion
|
|
122
|
+
exports.default = plugin;
|
|
123
|
+
exports.plugin = plugin;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig } from "./types/plugin.cjs";
|
|
2
|
+
import { Plugin } from "powerlines";
|
|
3
|
+
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
declare module "powerlines" {
|
|
6
|
+
interface Config {
|
|
7
|
+
styleDictionary?: StyleDictionaryPluginOptions;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A Powerlines plugin to integrate style-dictionary for code generation.
|
|
12
|
+
*
|
|
13
|
+
* @param options - The plugin options.
|
|
14
|
+
* @returns A Powerlines plugin instance.
|
|
15
|
+
*/
|
|
16
|
+
declare const plugin: <TContext extends StyleDictionaryPluginContext = StyleDictionaryPluginContext>(options?: StyleDictionaryPluginOptions) => Plugin<TContext>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig, plugin as default, plugin };
|
|
19
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAyCY,MAAA;IACR,eAAA,GAAkB,4BAAA;EAAA;AAAA;;;;;;;cAUT,MAAA,oBACM,4BAAA,GAA+B,4BAAA,EAEhD,OAAA,GAAS,4BAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig } from "./types/plugin.mjs";
|
|
2
|
+
import { Plugin } from "powerlines";
|
|
3
|
+
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
declare module "powerlines" {
|
|
6
|
+
interface Config {
|
|
7
|
+
styleDictionary?: StyleDictionaryPluginOptions;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A Powerlines plugin to integrate style-dictionary for code generation.
|
|
12
|
+
*
|
|
13
|
+
* @param options - The plugin options.
|
|
14
|
+
* @returns A Powerlines plugin instance.
|
|
15
|
+
*/
|
|
16
|
+
declare const plugin: <TContext extends StyleDictionaryPluginContext = StyleDictionaryPluginContext>(options?: StyleDictionaryPluginOptions) => Plugin<TContext>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig, plugin as default, plugin };
|
|
19
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAyCY,MAAA;IACR,eAAA,GAAkB,4BAAA;EAAA;AAAA;;;;;;;cAUT,MAAA,oBACM,4BAAA,GAA+B,4BAAA,EAEhD,OAAA,GAAS,4BAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { fileHeader } from "./style-dictionary/file-header.mjs";
|
|
2
|
+
import { resolve } from "@powerlines/plugin-esbuild/helpers/resolve";
|
|
3
|
+
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
4
|
+
import { isFunction } from "@stryke/type-checks/is-function";
|
|
5
|
+
import defu from "defu";
|
|
6
|
+
import StyleDictionary from "style-dictionary";
|
|
7
|
+
|
|
8
|
+
//#region src/index.ts
|
|
9
|
+
/**
|
|
10
|
+
* A Powerlines plugin to integrate style-dictionary for code generation.
|
|
11
|
+
*
|
|
12
|
+
* @param options - The plugin options.
|
|
13
|
+
* @returns A Powerlines plugin instance.
|
|
14
|
+
*/
|
|
15
|
+
const plugin = (options = {}) => {
|
|
16
|
+
return {
|
|
17
|
+
name: "style-dictionary",
|
|
18
|
+
config() {
|
|
19
|
+
return { styleDictionary: defu(options, {
|
|
20
|
+
log: { verbosity: this.config.logLevel === LogLevelLabel.TRACE ? "verbose" : this.config.logLevel === LogLevelLabel.DEBUG ? "default" : "silent" },
|
|
21
|
+
fileHeader: "powerlines/file-header"
|
|
22
|
+
}) };
|
|
23
|
+
},
|
|
24
|
+
async configResolved() {
|
|
25
|
+
this.styleDictionary = this.config.styleDictionary.instance ?? new StyleDictionary(this.config.styleDictionary);
|
|
26
|
+
this.styleDictionary.registerFileHeader(fileHeader(this));
|
|
27
|
+
if (this.config.styleDictionary.customActions) {
|
|
28
|
+
let builder;
|
|
29
|
+
if (isFunction(this.config.styleDictionary.customActions)) builder = this.config.styleDictionary.customActions;
|
|
30
|
+
else builder = await resolve(this, this.config.styleDictionary.customActions);
|
|
31
|
+
Object.entries(isFunction(builder) ? builder(this) : builder).forEach(([name, action]) => {
|
|
32
|
+
this.styleDictionary.registerAction({
|
|
33
|
+
...action,
|
|
34
|
+
name
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
if (this.config.styleDictionary.customFileHeaders) {
|
|
39
|
+
let builder;
|
|
40
|
+
if (isFunction(this.config.styleDictionary.customFileHeaders)) builder = this.config.styleDictionary.customFileHeaders;
|
|
41
|
+
else builder = await resolve(this, this.config.styleDictionary.customFileHeaders);
|
|
42
|
+
Object.entries(isFunction(builder) ? builder(this) : builder).forEach(([name, fileHeader]) => {
|
|
43
|
+
this.styleDictionary.registerFileHeader({
|
|
44
|
+
name,
|
|
45
|
+
fileHeader
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
if (this.config.styleDictionary.customFilters) {
|
|
50
|
+
let builder;
|
|
51
|
+
if (isFunction(this.config.styleDictionary.customFilters)) builder = this.config.styleDictionary.customFilters;
|
|
52
|
+
else builder = await resolve(this, this.config.styleDictionary.customFilters);
|
|
53
|
+
Object.entries(isFunction(builder) ? builder(this) : builder).forEach(([name, filter]) => {
|
|
54
|
+
this.styleDictionary.registerFilter({
|
|
55
|
+
...filter,
|
|
56
|
+
name
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
if (this.config.styleDictionary.customPreprocessors) {
|
|
61
|
+
let builder;
|
|
62
|
+
if (isFunction(this.config.styleDictionary.customPreprocessors)) builder = this.config.styleDictionary.customPreprocessors;
|
|
63
|
+
else builder = await resolve(this, this.config.styleDictionary.customPreprocessors);
|
|
64
|
+
Object.entries(isFunction(builder) ? builder(this) : builder).forEach(([name, preprocessor]) => {
|
|
65
|
+
this.styleDictionary.registerPreprocessor({
|
|
66
|
+
...preprocessor,
|
|
67
|
+
name
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
if (this.config.styleDictionary.customParsers) {
|
|
72
|
+
let builder;
|
|
73
|
+
if (isFunction(this.config.styleDictionary.customParsers)) builder = this.config.styleDictionary.customParsers;
|
|
74
|
+
else builder = await resolve(this, this.config.styleDictionary.customParsers);
|
|
75
|
+
Object.entries(isFunction(builder) ? builder(this) : builder).forEach(([name, parser]) => {
|
|
76
|
+
this.styleDictionary.registerParser({
|
|
77
|
+
...parser,
|
|
78
|
+
name
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
if (this.config.styleDictionary.customTransforms) {
|
|
83
|
+
let builder;
|
|
84
|
+
if (isFunction(this.config.styleDictionary.customTransforms)) builder = this.config.styleDictionary.customTransforms;
|
|
85
|
+
else builder = await resolve(this, this.config.styleDictionary.customTransforms);
|
|
86
|
+
Object.entries(isFunction(builder) ? builder(this) : builder).forEach(([name, transform]) => {
|
|
87
|
+
this.styleDictionary.registerTransform({
|
|
88
|
+
...transform,
|
|
89
|
+
name
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
if (this.config.styleDictionary.customTransformGroups) {
|
|
94
|
+
let builder;
|
|
95
|
+
if (isFunction(this.config.styleDictionary.customTransformGroups)) builder = this.config.styleDictionary.customTransformGroups;
|
|
96
|
+
else builder = await resolve(this, this.config.styleDictionary.customTransformGroups);
|
|
97
|
+
Object.entries(isFunction(builder) ? builder(this) : builder).forEach(([name, transformGroup]) => {
|
|
98
|
+
this.styleDictionary.registerTransformGroup({
|
|
99
|
+
name,
|
|
100
|
+
transforms: transformGroup
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
async clean() {
|
|
106
|
+
await this.styleDictionary.cleanAllPlatforms({ cache: !this.config.skipCache });
|
|
107
|
+
},
|
|
108
|
+
prepare: {
|
|
109
|
+
order: "pre",
|
|
110
|
+
async handler() {
|
|
111
|
+
if (!this.config.styleDictionary.skipBuild) await this.styleDictionary.buildAllPlatforms({ cache: !this.config.skipCache });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
export { plugin as default, plugin };
|
|
119
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolve } from \"@powerlines/plugin-esbuild/helpers/resolve\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport StyleDictionary from \"style-dictionary\";\nimport { fileHeader } from \"./style-dictionary/file-header\";\nimport {\n CustomActionsBuilder,\n CustomFileHeadersBuilder,\n CustomFiltersBuilder,\n CustomParsersBuilder,\n CustomPreprocessorsBuilder,\n CustomTransformGroupsBuilder,\n CustomTransformsBuilder,\n StyleDictionaryPluginContext,\n StyleDictionaryPluginOptions,\n StyleDictionaryPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n styleDictionary?: StyleDictionaryPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to integrate style-dictionary for code generation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends StyleDictionaryPluginContext = StyleDictionaryPluginContext\n>(\n options: StyleDictionaryPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"style-dictionary\",\n config() {\n return {\n styleDictionary: defu(options, {\n log: {\n verbosity:\n this.config.logLevel === LogLevelLabel.TRACE\n ? \"verbose\"\n : this.config.logLevel === LogLevelLabel.DEBUG\n ? \"default\"\n : \"silent\"\n },\n fileHeader: \"powerlines/file-header\"\n })\n } as Partial<StyleDictionaryPluginUserConfig>;\n },\n async configResolved() {\n this.styleDictionary =\n this.config.styleDictionary.instance ??\n new StyleDictionary(this.config.styleDictionary);\n\n this.styleDictionary.registerFileHeader(fileHeader(this));\n\n if (this.config.styleDictionary.customActions) {\n let builder!: CustomActionsBuilder;\n if (isFunction(this.config.styleDictionary.customActions)) {\n builder = this.config.styleDictionary.customActions;\n } else {\n builder = await resolve<CustomActionsBuilder>(\n this,\n this.config.styleDictionary.customActions\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, action]) => {\n this.styleDictionary.registerAction({\n ...action,\n name\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customFileHeaders) {\n let builder!: CustomFileHeadersBuilder;\n if (isFunction(this.config.styleDictionary.customFileHeaders)) {\n builder = this.config.styleDictionary.customFileHeaders;\n } else {\n builder = await resolve<CustomFileHeadersBuilder>(\n this,\n this.config.styleDictionary.customFileHeaders\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, fileHeader]) => {\n this.styleDictionary.registerFileHeader({\n name,\n fileHeader\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customFilters) {\n let builder!: CustomFiltersBuilder;\n if (isFunction(this.config.styleDictionary.customFilters)) {\n builder = this.config.styleDictionary.customFilters;\n } else {\n builder = await resolve<CustomFiltersBuilder>(\n this,\n this.config.styleDictionary.customFilters\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, filter]) => {\n this.styleDictionary.registerFilter({\n ...filter,\n name\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customPreprocessors) {\n let builder!: CustomPreprocessorsBuilder;\n if (isFunction(this.config.styleDictionary.customPreprocessors)) {\n builder = this.config.styleDictionary.customPreprocessors;\n } else {\n builder = await resolve<CustomPreprocessorsBuilder>(\n this,\n this.config.styleDictionary.customPreprocessors\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, preprocessor]) => {\n this.styleDictionary.registerPreprocessor({\n ...preprocessor,\n name\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customParsers) {\n let builder!: CustomParsersBuilder;\n if (isFunction(this.config.styleDictionary.customParsers)) {\n builder = this.config.styleDictionary.customParsers;\n } else {\n builder = await resolve<CustomParsersBuilder>(\n this,\n this.config.styleDictionary.customParsers\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, parser]) => {\n this.styleDictionary.registerParser({\n ...parser,\n name\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customTransforms) {\n let builder!: CustomTransformsBuilder;\n if (isFunction(this.config.styleDictionary.customTransforms)) {\n builder = this.config.styleDictionary.customTransforms;\n } else {\n builder = await resolve<CustomTransformsBuilder>(\n this,\n this.config.styleDictionary.customTransforms\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, transform]) => {\n this.styleDictionary.registerTransform({\n ...transform,\n name\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customTransformGroups) {\n let builder!: CustomTransformGroupsBuilder;\n if (isFunction(this.config.styleDictionary.customTransformGroups)) {\n builder = this.config.styleDictionary.customTransformGroups;\n } else {\n builder = await resolve<CustomTransformGroupsBuilder>(\n this,\n this.config.styleDictionary.customTransformGroups\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, transformGroup]) => {\n this.styleDictionary.registerTransformGroup({\n name,\n transforms: transformGroup\n });\n }\n );\n }\n },\n async clean() {\n await this.styleDictionary.cleanAllPlatforms({\n cache: !this.config.skipCache\n });\n },\n prepare: {\n order: \"pre\",\n async handler() {\n if (!this.config.styleDictionary.skipBuild) {\n await this.styleDictionary.buildAllPlatforms({\n cache: !this.config.skipCache\n });\n }\n }\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/style-dictionary/file-header.ts
|
|
3
|
+
const fileHeader = (context) => ({
|
|
4
|
+
name: "powerlines/file-header",
|
|
5
|
+
fileHeader: (defaultMessages = []) => {
|
|
6
|
+
return [
|
|
7
|
+
`Generated by ${context.config.framework || "Powerlines"}`,
|
|
8
|
+
"NOTE: Do not edit this file manually - it will be overwritten automatically by the \"prepare\" command",
|
|
9
|
+
...defaultMessages
|
|
10
|
+
];
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.fileHeader = fileHeader;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/style-dictionary/file-header.ts
|
|
2
|
+
const fileHeader = (context) => ({
|
|
3
|
+
name: "powerlines/file-header",
|
|
4
|
+
fileHeader: (defaultMessages = []) => {
|
|
5
|
+
return [
|
|
6
|
+
`Generated by ${context.config.framework || "Powerlines"}`,
|
|
7
|
+
"NOTE: Do not edit this file manually - it will be overwritten automatically by the \"prepare\" command",
|
|
8
|
+
...defaultMessages
|
|
9
|
+
];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { fileHeader };
|
|
15
|
+
//# sourceMappingURL=file-header.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-header.mjs","names":[],"sources":["../../src/style-dictionary/file-header.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Context } from \"powerlines\";\nimport type { FileHeader } from \"style-dictionary/types\";\n\nexport const fileHeader = (\n context: Context\n): { name: string; fileHeader: FileHeader } => ({\n name: \"powerlines/file-header\",\n fileHeader: (defaultMessages = [] as string[]) => {\n return [\n `Generated by ${context.config.framework || \"Powerlines\"}`,\n 'NOTE: Do not edit this file manually - it will be overwritten automatically by the \"prepare\" command',\n ...defaultMessages\n ];\n }\n});\n"],"mappings":";AAqBA,MAAa,cACX,aAC8C;CAC9C,MAAM;CACN,aAAa,kBAAkB,EAAE,KAAiB;AAChD,SAAO;GACL,gBAAgB,QAAQ,OAAO,aAAa;GAC5C;GACA,GAAG;GACJ;;CAEJ"}
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig } from "./plugin.cjs";
|
|
2
|
+
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig } from "./plugin.mjs";
|
|
2
|
+
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { EnvironmentConfig, PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
3
|
+
import StyleDictionary, { Config } from "style-dictionary";
|
|
4
|
+
import { Action, FileHeader, Filter, Format, Parser, PlatformConfig, Preprocessor, Transform } from "style-dictionary/types";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
type StyleDictionaryExtensionBuilder<T> = (extensionContext: StyleDictionaryPluginContext) => Record<string, T>;
|
|
8
|
+
type CustomActionsBuilder = StyleDictionaryExtensionBuilder<Action>;
|
|
9
|
+
type CustomTransformsBuilder = StyleDictionaryExtensionBuilder<Transform>;
|
|
10
|
+
type CustomFormatsBuilder = StyleDictionaryExtensionBuilder<Format>;
|
|
11
|
+
type CustomTransformGroupsBuilder = StyleDictionaryExtensionBuilder<string[]>;
|
|
12
|
+
type CustomFileHeadersBuilder = StyleDictionaryExtensionBuilder<FileHeader>;
|
|
13
|
+
type CustomFiltersBuilder = StyleDictionaryExtensionBuilder<Filter>;
|
|
14
|
+
type CustomParsersBuilder = (extensionContext: StyleDictionaryPluginContext) => Parser[];
|
|
15
|
+
type CustomPreprocessorsBuilder = StyleDictionaryExtensionBuilder<Preprocessor>;
|
|
16
|
+
type StyleDictionaryPluginOptions = Omit<Config, "platforms"> & {
|
|
17
|
+
/**
|
|
18
|
+
* Whether to skip the Style Dictionary build process.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* If set to `true`, the Style Dictionary build step will be skipped (ran during the "prepare" command), allowing for manual control over when the build occurs.
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue false
|
|
24
|
+
*/
|
|
25
|
+
skipBuild?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Custom Style Dictionary actions to register.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
31
|
+
*/
|
|
32
|
+
customActions?: TypeDefinitionParameter | CustomActionsBuilder;
|
|
33
|
+
/**
|
|
34
|
+
* Custom Style Dictionary file headers to register.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
38
|
+
*/
|
|
39
|
+
customFileHeaders?: TypeDefinitionParameter | CustomFileHeadersBuilder;
|
|
40
|
+
/**
|
|
41
|
+
* Custom Style Dictionary filters to register.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
45
|
+
*/
|
|
46
|
+
customFilters?: TypeDefinitionParameter | CustomFiltersBuilder;
|
|
47
|
+
/**
|
|
48
|
+
* Custom Style Dictionary formats to register.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
52
|
+
*/
|
|
53
|
+
customFormats?: TypeDefinitionParameter | CustomFormatsBuilder;
|
|
54
|
+
/**
|
|
55
|
+
* Custom Style Dictionary preprocessors to register.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
59
|
+
*/
|
|
60
|
+
customPreprocessors?: TypeDefinitionParameter | CustomPreprocessorsBuilder;
|
|
61
|
+
/**
|
|
62
|
+
* Custom Style Dictionary parsers to register.
|
|
63
|
+
*
|
|
64
|
+
* @remarks
|
|
65
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
66
|
+
*/
|
|
67
|
+
customParsers?: TypeDefinitionParameter | CustomParsersBuilder;
|
|
68
|
+
/**
|
|
69
|
+
* Custom Style Dictionary transform groups to register.
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
73
|
+
*/
|
|
74
|
+
customTransformGroups?: TypeDefinitionParameter | CustomTransformGroupsBuilder;
|
|
75
|
+
/**
|
|
76
|
+
* Custom Style Dictionary transforms to register.
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
80
|
+
*/
|
|
81
|
+
customTransforms?: TypeDefinitionParameter | CustomTransformsBuilder;
|
|
82
|
+
/**
|
|
83
|
+
* An existing Style Dictionary instance to use.
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* If provided, this instance will be used instead of creating a new one.
|
|
87
|
+
*/
|
|
88
|
+
instance?: StyleDictionary;
|
|
89
|
+
};
|
|
90
|
+
type StyleDictionaryPluginEnvironmentConfig = EnvironmentConfig & PlatformConfig;
|
|
91
|
+
type StyleDictionaryPluginUserConfig = UserConfig & {
|
|
92
|
+
styleDictionary?: StyleDictionaryPluginOptions;
|
|
93
|
+
environments?: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
94
|
+
};
|
|
95
|
+
type StyleDictionaryPluginResolvedConfig = ResolvedConfig & {
|
|
96
|
+
styleDictionary: StyleDictionaryPluginOptions;
|
|
97
|
+
environments: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
98
|
+
};
|
|
99
|
+
type StyleDictionaryPluginContext<TResolvedConfig extends StyleDictionaryPluginResolvedConfig = StyleDictionaryPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
100
|
+
styleDictionary: StyleDictionary;
|
|
101
|
+
};
|
|
102
|
+
declare type __ΩCustomActionsBuilder = any[];
|
|
103
|
+
declare type __ΩCustomTransformsBuilder = any[];
|
|
104
|
+
declare type __ΩCustomFormatsBuilder = any[];
|
|
105
|
+
declare type __ΩCustomTransformGroupsBuilder = any[];
|
|
106
|
+
declare type __ΩCustomFileHeadersBuilder = any[];
|
|
107
|
+
declare type __ΩCustomFiltersBuilder = any[];
|
|
108
|
+
declare type __ΩCustomParsersBuilder = any[];
|
|
109
|
+
declare type __ΩCustomPreprocessorsBuilder = any[];
|
|
110
|
+
declare type __ΩStyleDictionaryPluginOptions = any[];
|
|
111
|
+
declare type __ΩStyleDictionaryPluginEnvironmentConfig = any[];
|
|
112
|
+
declare type __ΩStyleDictionaryPluginUserConfig = any[];
|
|
113
|
+
declare type __ΩStyleDictionaryPluginResolvedConfig = any[];
|
|
114
|
+
declare type __ΩStyleDictionaryPluginContext = any[];
|
|
115
|
+
//#endregion
|
|
116
|
+
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig };
|
|
117
|
+
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;KAqCK,+BAAA,OACH,gBAAA,EAAkB,4BAAA,KACf,MAAA,SAAe,CAAA;AAAA,KAER,oBAAA,GAAuB,+BAAA,CAAgC,MAAA;AAAA,KACvD,uBAAA,GACV,+BAAA,CAAgC,SAAA;AAAA,KACtB,oBAAA,GAAuB,+BAAA,CAAgC,MAAA;AAAA,KACvD,4BAAA,GAA+B,+BAAA;AAAA,KAG/B,wBAAA,GACV,+BAAA,CAAgC,UAAA;AAAA,KACtB,oBAAA,GAAuB,+BAAA,CAAgC,MAAA;AAAA,KACvD,oBAAA,IACV,gBAAA,EAAkB,4BAAA,KACf,MAAA;AAAA,KACO,0BAAA,GACV,+BAAA,CAAgC,YAAA;AAAA,KAEtB,4BAAA,GAA+B,IAAA,CAAK,MAAA;EApBX;;;;;;;AAIrC;EAyBE,SAAA;;;;AAxBF;;;EAgCE,aAAA,GAAgB,uBAAA,GAA0B,oBAAA;EA/BD;AAC3C;;;;;EAsCE,iBAAA,GAAoB,uBAAA,GAA0B,wBAAA;EArCR;;;;AAGxC;;EA0CE,aAAA,GAAgB,uBAAA,GAA0B,oBAAA;EAzC1C;;AACF;;;;EAgDE,aAAA,GAAgB,uBAAA,GAA0B,oBAAA;EA/ChC;;;;;;EAuDV,mBAAA,GAAsB,uBAAA,GAA0B,0BAAA;EArDvC;;AACX;;;;EA4DE,aAAA,GAAgB,uBAAA,GAA0B,oBAAA;EAzDhC;;;;;;EAiEV,qBAAA,GACI,uBAAA,GACA,4BAAA;EA1CgB;;;;;;EAkDpB,gBAAA,GAAmB,uBAAA,GAA0B,uBAAA;EA1BG;;;;;;EAkChD,QAAA,GAAW,eAAA;AAAA;AAAA,KAGD,sCAAA,GAAyC,iBAAA,GACnD,cAAA;AAAA,KAEU,+BAAA,GAAkC,UAAA;EAC5C,eAAA,GAAkB,4BAAA;EAClB,YAAA,GAAe,MAAA,SAAe,sCAAA;AAAA;AAAA,KAGpB,mCAAA,GAAsC,cAAA;EAChD,eAAA,EAAiB,4BAAA;EACjB,YAAA,EAAc,MAAA,SAAe,sCAAA;AAAA;AAAA,KAGnB,4BAAA,yBACc,mCAAA,GACtB,mCAAA,IACA,aAAA,CAAc,eAAA;EAChB,eAAA,EAAiB,eAAA;AAAA;AAAA"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import StyleDictionary, { Config } from "style-dictionary";
|
|
2
|
+
import { EnvironmentConfig, PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
4
|
+
import { Action, FileHeader, Filter, Format, Parser, PlatformConfig, Preprocessor, Transform } from "style-dictionary/types";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
type StyleDictionaryExtensionBuilder<T> = (extensionContext: StyleDictionaryPluginContext) => Record<string, T>;
|
|
8
|
+
type CustomActionsBuilder = StyleDictionaryExtensionBuilder<Action>;
|
|
9
|
+
type CustomTransformsBuilder = StyleDictionaryExtensionBuilder<Transform>;
|
|
10
|
+
type CustomFormatsBuilder = StyleDictionaryExtensionBuilder<Format>;
|
|
11
|
+
type CustomTransformGroupsBuilder = StyleDictionaryExtensionBuilder<string[]>;
|
|
12
|
+
type CustomFileHeadersBuilder = StyleDictionaryExtensionBuilder<FileHeader>;
|
|
13
|
+
type CustomFiltersBuilder = StyleDictionaryExtensionBuilder<Filter>;
|
|
14
|
+
type CustomParsersBuilder = (extensionContext: StyleDictionaryPluginContext) => Parser[];
|
|
15
|
+
type CustomPreprocessorsBuilder = StyleDictionaryExtensionBuilder<Preprocessor>;
|
|
16
|
+
type StyleDictionaryPluginOptions = Omit<Config, "platforms"> & {
|
|
17
|
+
/**
|
|
18
|
+
* Whether to skip the Style Dictionary build process.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* If set to `true`, the Style Dictionary build step will be skipped (ran during the "prepare" command), allowing for manual control over when the build occurs.
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue false
|
|
24
|
+
*/
|
|
25
|
+
skipBuild?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Custom Style Dictionary actions to register.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
31
|
+
*/
|
|
32
|
+
customActions?: TypeDefinitionParameter | CustomActionsBuilder;
|
|
33
|
+
/**
|
|
34
|
+
* Custom Style Dictionary file headers to register.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
38
|
+
*/
|
|
39
|
+
customFileHeaders?: TypeDefinitionParameter | CustomFileHeadersBuilder;
|
|
40
|
+
/**
|
|
41
|
+
* Custom Style Dictionary filters to register.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
45
|
+
*/
|
|
46
|
+
customFilters?: TypeDefinitionParameter | CustomFiltersBuilder;
|
|
47
|
+
/**
|
|
48
|
+
* Custom Style Dictionary formats to register.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
52
|
+
*/
|
|
53
|
+
customFormats?: TypeDefinitionParameter | CustomFormatsBuilder;
|
|
54
|
+
/**
|
|
55
|
+
* Custom Style Dictionary preprocessors to register.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
59
|
+
*/
|
|
60
|
+
customPreprocessors?: TypeDefinitionParameter | CustomPreprocessorsBuilder;
|
|
61
|
+
/**
|
|
62
|
+
* Custom Style Dictionary parsers to register.
|
|
63
|
+
*
|
|
64
|
+
* @remarks
|
|
65
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
66
|
+
*/
|
|
67
|
+
customParsers?: TypeDefinitionParameter | CustomParsersBuilder;
|
|
68
|
+
/**
|
|
69
|
+
* Custom Style Dictionary transform groups to register.
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
73
|
+
*/
|
|
74
|
+
customTransformGroups?: TypeDefinitionParameter | CustomTransformGroupsBuilder;
|
|
75
|
+
/**
|
|
76
|
+
* Custom Style Dictionary transforms to register.
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
80
|
+
*/
|
|
81
|
+
customTransforms?: TypeDefinitionParameter | CustomTransformsBuilder;
|
|
82
|
+
/**
|
|
83
|
+
* An existing Style Dictionary instance to use.
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* If provided, this instance will be used instead of creating a new one.
|
|
87
|
+
*/
|
|
88
|
+
instance?: StyleDictionary;
|
|
89
|
+
};
|
|
90
|
+
type StyleDictionaryPluginEnvironmentConfig = EnvironmentConfig & PlatformConfig;
|
|
91
|
+
type StyleDictionaryPluginUserConfig = UserConfig & {
|
|
92
|
+
styleDictionary?: StyleDictionaryPluginOptions;
|
|
93
|
+
environments?: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
94
|
+
};
|
|
95
|
+
type StyleDictionaryPluginResolvedConfig = ResolvedConfig & {
|
|
96
|
+
styleDictionary: StyleDictionaryPluginOptions;
|
|
97
|
+
environments: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
98
|
+
};
|
|
99
|
+
type StyleDictionaryPluginContext<TResolvedConfig extends StyleDictionaryPluginResolvedConfig = StyleDictionaryPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
100
|
+
styleDictionary: StyleDictionary;
|
|
101
|
+
};
|
|
102
|
+
declare type __ΩCustomActionsBuilder = any[];
|
|
103
|
+
declare type __ΩCustomTransformsBuilder = any[];
|
|
104
|
+
declare type __ΩCustomFormatsBuilder = any[];
|
|
105
|
+
declare type __ΩCustomTransformGroupsBuilder = any[];
|
|
106
|
+
declare type __ΩCustomFileHeadersBuilder = any[];
|
|
107
|
+
declare type __ΩCustomFiltersBuilder = any[];
|
|
108
|
+
declare type __ΩCustomParsersBuilder = any[];
|
|
109
|
+
declare type __ΩCustomPreprocessorsBuilder = any[];
|
|
110
|
+
declare type __ΩStyleDictionaryPluginOptions = any[];
|
|
111
|
+
declare type __ΩStyleDictionaryPluginEnvironmentConfig = any[];
|
|
112
|
+
declare type __ΩStyleDictionaryPluginUserConfig = any[];
|
|
113
|
+
declare type __ΩStyleDictionaryPluginResolvedConfig = any[];
|
|
114
|
+
declare type __ΩStyleDictionaryPluginContext = any[];
|
|
115
|
+
//#endregion
|
|
116
|
+
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig };
|
|
117
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;KAqCK,+BAAA,OACH,gBAAA,EAAkB,4BAAA,KACf,MAAA,SAAe,CAAA;AAAA,KAER,oBAAA,GAAuB,+BAAA,CAAgC,MAAA;AAAA,KACvD,uBAAA,GACV,+BAAA,CAAgC,SAAA;AAAA,KACtB,oBAAA,GAAuB,+BAAA,CAAgC,MAAA;AAAA,KACvD,4BAAA,GAA+B,+BAAA;AAAA,KAG/B,wBAAA,GACV,+BAAA,CAAgC,UAAA;AAAA,KACtB,oBAAA,GAAuB,+BAAA,CAAgC,MAAA;AAAA,KACvD,oBAAA,IACV,gBAAA,EAAkB,4BAAA,KACf,MAAA;AAAA,KACO,0BAAA,GACV,+BAAA,CAAgC,YAAA;AAAA,KAEtB,4BAAA,GAA+B,IAAA,CAAK,MAAA;EApBX;;;;;;;AAIrC;EAyBE,SAAA;;;;AAxBF;;;EAgCE,aAAA,GAAgB,uBAAA,GAA0B,oBAAA;EA/BD;AAC3C;;;;;EAsCE,iBAAA,GAAoB,uBAAA,GAA0B,wBAAA;EArCR;;;;AAGxC;;EA0CE,aAAA,GAAgB,uBAAA,GAA0B,oBAAA;EAzC1C;;AACF;;;;EAgDE,aAAA,GAAgB,uBAAA,GAA0B,oBAAA;EA/ChC;;;;;;EAuDV,mBAAA,GAAsB,uBAAA,GAA0B,0BAAA;EArDvC;;AACX;;;;EA4DE,aAAA,GAAgB,uBAAA,GAA0B,oBAAA;EAzDhC;;;;;;EAiEV,qBAAA,GACI,uBAAA,GACA,4BAAA;EA1CgB;;;;;;EAkDpB,gBAAA,GAAmB,uBAAA,GAA0B,uBAAA;EA1BG;;;;;;EAkChD,QAAA,GAAW,eAAA;AAAA;AAAA,KAGD,sCAAA,GAAyC,iBAAA,GACnD,cAAA;AAAA,KAEU,+BAAA,GAAkC,UAAA;EAC5C,eAAA,GAAkB,4BAAA;EAClB,YAAA,GAAe,MAAA,SAAe,sCAAA;AAAA;AAAA,KAGpB,mCAAA,GAAsC,cAAA;EAChD,eAAA,EAAiB,4BAAA;EACjB,YAAA,EAAc,MAAA,SAAe,sCAAA;AAAA;AAAA,KAGnB,4BAAA,yBACc,mCAAA,GACtB,mCAAA,IACA,aAAA,CAAc,eAAA;EAChB,eAAA,EAAiB,eAAA;AAAA;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-style-dictionary",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.266",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to generate project code with Style Dictionary.",
|
|
6
6
|
"keywords": [
|
|
@@ -95,20 +95,20 @@
|
|
|
95
95
|
"typings": "dist/index.d.mts",
|
|
96
96
|
"files": ["dist/**/*"],
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@powerlines/plugin-esbuild": "^0.13.
|
|
99
|
-
"@storm-software/config-tools": "^1.189.
|
|
98
|
+
"@powerlines/plugin-esbuild": "^0.13.368",
|
|
99
|
+
"@storm-software/config-tools": "^1.189.40",
|
|
100
100
|
"@stryke/path": "^0.27.2",
|
|
101
101
|
"@stryke/type-checks": "^0.5.41",
|
|
102
102
|
"@stryke/types": "^0.11.1",
|
|
103
103
|
"defu": "^6.1.4",
|
|
104
104
|
"jiti": "^2.6.1",
|
|
105
|
-
"powerlines": "^0.42.
|
|
105
|
+
"powerlines": "^0.42.6",
|
|
106
106
|
"style-dictionary": "^5.3.3"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
109
|
+
"@powerlines/plugin-plugin": "^0.12.316",
|
|
110
110
|
"@types/node": "^25.5.0"
|
|
111
111
|
},
|
|
112
112
|
"publishConfig": { "access": "public" },
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "af94c1952c9f2d293dac72a2d0ed3627be8d807d"
|
|
114
114
|
}
|