@powerlines/plugin-style-dictionary 0.1.64 → 0.1.66
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 +1 -0
- package/dist/index.cjs +1 -14
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -14
- package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
- package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
- package/dist/powerlines/src/lib/entry.cjs +1 -0
- package/dist/powerlines/src/lib/entry.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
- package/dist/powerlines/src/types/babel.d.mts +2 -0
- package/dist/powerlines/src/types/build.d.cts +139 -0
- package/dist/powerlines/src/types/build.d.mts +141 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +345 -0
- package/dist/powerlines/src/types/config.d.mts +345 -0
- package/dist/powerlines/src/types/context.d.cts +347 -0
- package/dist/powerlines/src/types/context.d.mts +349 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/plugin.d.cts +232 -0
- package/dist/powerlines/src/types/plugin.d.mts +232 -0
- package/dist/powerlines/src/types/resolved.d.cts +81 -0
- package/dist/powerlines/src/types/resolved.d.mts +82 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +108 -1
- package/dist/types/plugin.d.mts +108 -1
- package/dist/types/plugin.mjs +1 -1
- package/package.json +8 -8
- package/dist/index-BgAdqTbb.d.mts +0 -1
- package/dist/index-CEgs-Dz2.d.cts +0 -1
- package/dist/plugin-Bvn-he2n.mjs +0 -1
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-HmPN_nsA.d.mts +0 -1740
- package/dist/plugin-VtPwprde.d.cts +0 -1739
- package/dist/types-B7VYa_Pp.mjs +0 -1
- package/dist/types-DHkg7xmX.cjs +0 -0
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,109 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnvironmentConfig, UserConfig } from "../powerlines/src/types/config.cjs";
|
|
2
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.cjs";
|
|
3
|
+
import { PluginContext } from "../powerlines/src/types/context.cjs";
|
|
4
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
5
|
+
import StyleDictionary, { Config } from "style-dictionary";
|
|
6
|
+
import { Action, FileHeader, Filter, Format, Parser, PlatformConfig, Preprocessor, Transform } from "style-dictionary/types";
|
|
7
|
+
|
|
8
|
+
//#region src/types/plugin.d.ts
|
|
9
|
+
type StyleDictionaryExtensionBuilder<T> = (extensionContext: StyleDictionaryPluginContext) => Record<string, T>;
|
|
10
|
+
type CustomActionsBuilder = StyleDictionaryExtensionBuilder<Action>;
|
|
11
|
+
type CustomTransformsBuilder = StyleDictionaryExtensionBuilder<Transform>;
|
|
12
|
+
type CustomFormatsBuilder = StyleDictionaryExtensionBuilder<Format>;
|
|
13
|
+
type CustomTransformGroupsBuilder = StyleDictionaryExtensionBuilder<string[]>;
|
|
14
|
+
type CustomFileHeadersBuilder = StyleDictionaryExtensionBuilder<FileHeader>;
|
|
15
|
+
type CustomFiltersBuilder = StyleDictionaryExtensionBuilder<Filter>;
|
|
16
|
+
type CustomParsersBuilder = (extensionContext: StyleDictionaryPluginContext) => Parser[];
|
|
17
|
+
type CustomPreprocessorsBuilder = StyleDictionaryExtensionBuilder<Preprocessor>;
|
|
18
|
+
type StyleDictionaryPluginOptions = Omit<Config, "platforms"> & {
|
|
19
|
+
/**
|
|
20
|
+
* Custom Style Dictionary actions to register.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
24
|
+
*/
|
|
25
|
+
customActions?: TypeDefinitionParameter | CustomActionsBuilder;
|
|
26
|
+
/**
|
|
27
|
+
* Custom Style Dictionary file headers 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
|
+
customFileHeaders?: TypeDefinitionParameter | CustomFileHeadersBuilder;
|
|
33
|
+
/**
|
|
34
|
+
* Custom Style Dictionary filters 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
|
+
customFilters?: TypeDefinitionParameter | CustomFiltersBuilder;
|
|
40
|
+
/**
|
|
41
|
+
* Custom Style Dictionary formats 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
|
+
customFormats?: TypeDefinitionParameter | CustomFormatsBuilder;
|
|
47
|
+
/**
|
|
48
|
+
* Custom Style Dictionary preprocessors 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
|
+
customPreprocessors?: TypeDefinitionParameter | CustomPreprocessorsBuilder;
|
|
54
|
+
/**
|
|
55
|
+
* Custom Style Dictionary parsers 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
|
+
customParsers?: TypeDefinitionParameter | CustomParsersBuilder;
|
|
61
|
+
/**
|
|
62
|
+
* Custom Style Dictionary transform groups 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
|
+
customTransformGroups?: TypeDefinitionParameter | CustomTransformGroupsBuilder;
|
|
68
|
+
/**
|
|
69
|
+
* Custom Style Dictionary transforms 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
|
+
customTransforms?: TypeDefinitionParameter | CustomTransformsBuilder;
|
|
75
|
+
/**
|
|
76
|
+
* An existing Style Dictionary instance to use.
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* If provided, this instance will be used instead of creating a new one.
|
|
80
|
+
*/
|
|
81
|
+
instance?: StyleDictionary;
|
|
82
|
+
};
|
|
83
|
+
type StyleDictionaryPluginEnvironmentConfig = EnvironmentConfig & PlatformConfig;
|
|
84
|
+
type StyleDictionaryPluginUserConfig = UserConfig & {
|
|
85
|
+
styleDictionary?: StyleDictionaryPluginOptions;
|
|
86
|
+
environments?: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
87
|
+
};
|
|
88
|
+
type StyleDictionaryPluginResolvedConfig = ResolvedConfig & {
|
|
89
|
+
styleDictionary: StyleDictionaryPluginOptions;
|
|
90
|
+
environments: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
91
|
+
};
|
|
92
|
+
type StyleDictionaryPluginContext<TResolvedConfig extends StyleDictionaryPluginResolvedConfig = StyleDictionaryPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
93
|
+
styleDictionary: StyleDictionary;
|
|
94
|
+
};
|
|
95
|
+
declare type __ΩCustomActionsBuilder = any[];
|
|
96
|
+
declare type __ΩCustomTransformsBuilder = any[];
|
|
97
|
+
declare type __ΩCustomFormatsBuilder = any[];
|
|
98
|
+
declare type __ΩCustomTransformGroupsBuilder = any[];
|
|
99
|
+
declare type __ΩCustomFileHeadersBuilder = any[];
|
|
100
|
+
declare type __ΩCustomFiltersBuilder = any[];
|
|
101
|
+
declare type __ΩCustomParsersBuilder = any[];
|
|
102
|
+
declare type __ΩCustomPreprocessorsBuilder = any[];
|
|
103
|
+
declare type __ΩStyleDictionaryPluginOptions = any[];
|
|
104
|
+
declare type __ΩStyleDictionaryPluginEnvironmentConfig = any[];
|
|
105
|
+
declare type __ΩStyleDictionaryPluginUserConfig = any[];
|
|
106
|
+
declare type __ΩStyleDictionaryPluginResolvedConfig = any[];
|
|
107
|
+
declare type __ΩStyleDictionaryPluginContext = any[];
|
|
108
|
+
//#endregion
|
|
2
109
|
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 };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,109 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnvironmentConfig, UserConfig } from "../powerlines/src/types/config.mjs";
|
|
2
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
3
|
+
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
4
|
+
import StyleDictionary, { Config } from "style-dictionary";
|
|
5
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
6
|
+
import { Action, FileHeader, Filter, Format, Parser, PlatformConfig, Preprocessor, Transform } from "style-dictionary/types";
|
|
7
|
+
|
|
8
|
+
//#region src/types/plugin.d.ts
|
|
9
|
+
type StyleDictionaryExtensionBuilder<T> = (extensionContext: StyleDictionaryPluginContext) => Record<string, T>;
|
|
10
|
+
type CustomActionsBuilder = StyleDictionaryExtensionBuilder<Action>;
|
|
11
|
+
type CustomTransformsBuilder = StyleDictionaryExtensionBuilder<Transform>;
|
|
12
|
+
type CustomFormatsBuilder = StyleDictionaryExtensionBuilder<Format>;
|
|
13
|
+
type CustomTransformGroupsBuilder = StyleDictionaryExtensionBuilder<string[]>;
|
|
14
|
+
type CustomFileHeadersBuilder = StyleDictionaryExtensionBuilder<FileHeader>;
|
|
15
|
+
type CustomFiltersBuilder = StyleDictionaryExtensionBuilder<Filter>;
|
|
16
|
+
type CustomParsersBuilder = (extensionContext: StyleDictionaryPluginContext) => Parser[];
|
|
17
|
+
type CustomPreprocessorsBuilder = StyleDictionaryExtensionBuilder<Preprocessor>;
|
|
18
|
+
type StyleDictionaryPluginOptions = Omit<Config, "platforms"> & {
|
|
19
|
+
/**
|
|
20
|
+
* Custom Style Dictionary actions to register.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
24
|
+
*/
|
|
25
|
+
customActions?: TypeDefinitionParameter | CustomActionsBuilder;
|
|
26
|
+
/**
|
|
27
|
+
* Custom Style Dictionary file headers 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
|
+
customFileHeaders?: TypeDefinitionParameter | CustomFileHeadersBuilder;
|
|
33
|
+
/**
|
|
34
|
+
* Custom Style Dictionary filters 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
|
+
customFilters?: TypeDefinitionParameter | CustomFiltersBuilder;
|
|
40
|
+
/**
|
|
41
|
+
* Custom Style Dictionary formats 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
|
+
customFormats?: TypeDefinitionParameter | CustomFormatsBuilder;
|
|
47
|
+
/**
|
|
48
|
+
* Custom Style Dictionary preprocessors 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
|
+
customPreprocessors?: TypeDefinitionParameter | CustomPreprocessorsBuilder;
|
|
54
|
+
/**
|
|
55
|
+
* Custom Style Dictionary parsers 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
|
+
customParsers?: TypeDefinitionParameter | CustomParsersBuilder;
|
|
61
|
+
/**
|
|
62
|
+
* Custom Style Dictionary transform groups 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
|
+
customTransformGroups?: TypeDefinitionParameter | CustomTransformGroupsBuilder;
|
|
68
|
+
/**
|
|
69
|
+
* Custom Style Dictionary transforms 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
|
+
customTransforms?: TypeDefinitionParameter | CustomTransformsBuilder;
|
|
75
|
+
/**
|
|
76
|
+
* An existing Style Dictionary instance to use.
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* If provided, this instance will be used instead of creating a new one.
|
|
80
|
+
*/
|
|
81
|
+
instance?: StyleDictionary;
|
|
82
|
+
};
|
|
83
|
+
type StyleDictionaryPluginEnvironmentConfig = EnvironmentConfig & PlatformConfig;
|
|
84
|
+
type StyleDictionaryPluginUserConfig = UserConfig & {
|
|
85
|
+
styleDictionary?: StyleDictionaryPluginOptions;
|
|
86
|
+
environments?: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
87
|
+
};
|
|
88
|
+
type StyleDictionaryPluginResolvedConfig = ResolvedConfig & {
|
|
89
|
+
styleDictionary: StyleDictionaryPluginOptions;
|
|
90
|
+
environments: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
91
|
+
};
|
|
92
|
+
type StyleDictionaryPluginContext<TResolvedConfig extends StyleDictionaryPluginResolvedConfig = StyleDictionaryPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
93
|
+
styleDictionary: StyleDictionary;
|
|
94
|
+
};
|
|
95
|
+
declare type __ΩCustomActionsBuilder = any[];
|
|
96
|
+
declare type __ΩCustomTransformsBuilder = any[];
|
|
97
|
+
declare type __ΩCustomFormatsBuilder = any[];
|
|
98
|
+
declare type __ΩCustomTransformGroupsBuilder = any[];
|
|
99
|
+
declare type __ΩCustomFileHeadersBuilder = any[];
|
|
100
|
+
declare type __ΩCustomFiltersBuilder = any[];
|
|
101
|
+
declare type __ΩCustomParsersBuilder = any[];
|
|
102
|
+
declare type __ΩCustomPreprocessorsBuilder = any[];
|
|
103
|
+
declare type __ΩStyleDictionaryPluginOptions = any[];
|
|
104
|
+
declare type __ΩStyleDictionaryPluginEnvironmentConfig = any[];
|
|
105
|
+
declare type __ΩStyleDictionaryPluginUserConfig = any[];
|
|
106
|
+
declare type __ΩStyleDictionaryPluginResolvedConfig = any[];
|
|
107
|
+
declare type __ΩStyleDictionaryPluginContext = any[];
|
|
108
|
+
//#endregion
|
|
2
109
|
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 };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-style-dictionary",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.66",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code with Style Dictionary.",
|
|
6
6
|
"repository": {
|
|
@@ -122,19 +122,19 @@
|
|
|
122
122
|
"powerlines-plugin"
|
|
123
123
|
],
|
|
124
124
|
"dependencies": {
|
|
125
|
-
"@stryke/path": "^0.22.
|
|
126
|
-
"@stryke/type-checks": "^0.
|
|
127
|
-
"@stryke/types": "^0.10.
|
|
125
|
+
"@stryke/path": "^0.22.11",
|
|
126
|
+
"@stryke/type-checks": "^0.5.9",
|
|
127
|
+
"@stryke/types": "^0.10.23",
|
|
128
128
|
"defu": "^6.1.4",
|
|
129
129
|
"jiti": "^2.6.1",
|
|
130
|
-
"powerlines": "^0.30.
|
|
130
|
+
"powerlines": "^0.30.11",
|
|
131
131
|
"style-dictionary": "^5.1.1"
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
|
-
"@powerlines/nx": "^0.10.
|
|
135
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
134
|
+
"@powerlines/nx": "^0.10.60",
|
|
135
|
+
"@powerlines/plugin-plugin": "^0.12.12",
|
|
136
136
|
"@types/node": "^24.10.1"
|
|
137
137
|
},
|
|
138
138
|
"publishConfig": { "access": "public" },
|
|
139
|
-
"gitHead": "
|
|
139
|
+
"gitHead": "1613e8b201d74470d5c3275e2049374c231287af"
|
|
140
140
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/plugin-Bvn-he2n.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
package/dist/plugin-DHXHjv16.cjs
DELETED
|
File without changes
|