@powerlines/plugin-style-dictionary 0.3.191 → 0.3.193

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/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_chunk_POXTJ6GF = require('./node_modules/.pnpm/@storm-software_config-tools@1.189.9_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs');
3
+ const require_chunk_POXTJ6GF = require('./node_modules/.pnpm/@storm-software_config-tools@1.189.10_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs');
4
4
  const require_file_header = require('./style-dictionary/file-header.cjs');
5
+ let __powerlines_plugin_esbuild_helpers_resolve = require("@powerlines/plugin-esbuild/helpers/resolve");
5
6
  let __stryke_type_checks_is_function = require("@stryke/type-checks/is-function");
6
7
  let defu = require("defu");
7
8
  defu = require_rolldown_runtime.__toESM(defu);
8
- let powerlines_lib_utilities_resolve = require("powerlines/lib/utilities/resolve");
9
9
  let style_dictionary = require("style-dictionary");
10
10
  style_dictionary = require_rolldown_runtime.__toESM(style_dictionary);
11
11
 
@@ -31,7 +31,7 @@ const plugin = (options = {}) => {
31
31
  if (this.config.styleDictionary.customActions) {
32
32
  let builder;
33
33
  if ((0, __stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customActions)) builder = this.config.styleDictionary.customActions;
34
- else builder = await (0, powerlines_lib_utilities_resolve.resolve)(this, this.config.styleDictionary.customActions);
34
+ else builder = await (0, __powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customActions);
35
35
  Object.entries((0, __stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, action]) => {
36
36
  this.styleDictionary.registerAction({
37
37
  ...action,
@@ -42,7 +42,7 @@ const plugin = (options = {}) => {
42
42
  if (this.config.styleDictionary.customFileHeaders) {
43
43
  let builder;
44
44
  if ((0, __stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customFileHeaders)) builder = this.config.styleDictionary.customFileHeaders;
45
- else builder = await (0, powerlines_lib_utilities_resolve.resolve)(this, this.config.styleDictionary.customFileHeaders);
45
+ else builder = await (0, __powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customFileHeaders);
46
46
  Object.entries((0, __stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, fileHeader$1]) => {
47
47
  this.styleDictionary.registerFileHeader({
48
48
  name,
@@ -53,7 +53,7 @@ const plugin = (options = {}) => {
53
53
  if (this.config.styleDictionary.customFilters) {
54
54
  let builder;
55
55
  if ((0, __stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customFilters)) builder = this.config.styleDictionary.customFilters;
56
- else builder = await (0, powerlines_lib_utilities_resolve.resolve)(this, this.config.styleDictionary.customFilters);
56
+ else builder = await (0, __powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customFilters);
57
57
  Object.entries((0, __stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, filter]) => {
58
58
  this.styleDictionary.registerFilter({
59
59
  ...filter,
@@ -64,7 +64,7 @@ const plugin = (options = {}) => {
64
64
  if (this.config.styleDictionary.customPreprocessors) {
65
65
  let builder;
66
66
  if ((0, __stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customPreprocessors)) builder = this.config.styleDictionary.customPreprocessors;
67
- else builder = await (0, powerlines_lib_utilities_resolve.resolve)(this, this.config.styleDictionary.customPreprocessors);
67
+ else builder = await (0, __powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customPreprocessors);
68
68
  Object.entries((0, __stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, preprocessor]) => {
69
69
  this.styleDictionary.registerPreprocessor({
70
70
  ...preprocessor,
@@ -75,7 +75,7 @@ const plugin = (options = {}) => {
75
75
  if (this.config.styleDictionary.customParsers) {
76
76
  let builder;
77
77
  if ((0, __stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customParsers)) builder = this.config.styleDictionary.customParsers;
78
- else builder = await (0, powerlines_lib_utilities_resolve.resolve)(this, this.config.styleDictionary.customParsers);
78
+ else builder = await (0, __powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customParsers);
79
79
  Object.entries((0, __stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, parser]) => {
80
80
  this.styleDictionary.registerParser({
81
81
  ...parser,
@@ -86,7 +86,7 @@ const plugin = (options = {}) => {
86
86
  if (this.config.styleDictionary.customTransforms) {
87
87
  let builder;
88
88
  if ((0, __stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customTransforms)) builder = this.config.styleDictionary.customTransforms;
89
- else builder = await (0, powerlines_lib_utilities_resolve.resolve)(this, this.config.styleDictionary.customTransforms);
89
+ else builder = await (0, __powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customTransforms);
90
90
  Object.entries((0, __stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, transform]) => {
91
91
  this.styleDictionary.registerTransform({
92
92
  ...transform,
@@ -97,7 +97,7 @@ const plugin = (options = {}) => {
97
97
  if (this.config.styleDictionary.customTransformGroups) {
98
98
  let builder;
99
99
  if ((0, __stryke_type_checks_is_function.isFunction)(this.config.styleDictionary.customTransformGroups)) builder = this.config.styleDictionary.customTransformGroups;
100
- else builder = await (0, powerlines_lib_utilities_resolve.resolve)(this, this.config.styleDictionary.customTransformGroups);
100
+ else builder = await (0, __powerlines_plugin_esbuild_helpers_resolve.resolve)(this, this.config.styleDictionary.customTransformGroups);
101
101
  Object.entries((0, __stryke_type_checks_is_function.isFunction)(builder) ? builder(this) : builder).forEach(([name, transformGroup]) => {
102
102
  this.styleDictionary.registerTransformGroup({
103
103
  name,
package/dist/index.d.cts CHANGED
@@ -1,9 +1,13 @@
1
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
2
  import "./types/index.cjs";
3
- import { Plugin } from "powerlines/types/plugin";
3
+ import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/index.d.ts
6
-
6
+ declare module "powerlines" {
7
+ interface UserConfig {
8
+ styleDictionary?: StyleDictionaryPluginOptions;
9
+ }
10
+ }
7
11
  /**
8
12
  * A Powerlines plugin to integrate style-dictionary for code generation.
9
13
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA8CA;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,4BAGT,GAHwC,4BAGxC,CAAA,CAAA,OAAA,CAAA,EADC,4BACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAsCwB,eAAA,CAAA,EAIF,4BAJE;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,4BAGT,GAHwC,4BAGxC,CAAA,CAAA,OAAA,CAAA,EADC,4BACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
package/dist/index.d.mts CHANGED
@@ -1,9 +1,13 @@
1
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
2
  import "./types/index.mjs";
3
- import { Plugin } from "powerlines/types/plugin";
3
+ import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/index.d.ts
6
-
6
+ declare module "powerlines" {
7
+ interface UserConfig {
8
+ styleDictionary?: StyleDictionaryPluginOptions;
9
+ }
10
+ }
7
11
  /**
8
12
  * A Powerlines plugin to integrate style-dictionary for code generation.
9
13
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA8CA;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,4BAGT,GAHwC,4BAGxC,CAAA,CAAA,OAAA,CAAA,EADC,4BACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAsCwB,eAAA,CAAA,EAIF,4BAJE;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,4BAGT,GAHwC,4BAGxC,CAAA,CAAA,OAAA,CAAA,EADC,4BACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { LogLevelLabel } from "./node_modules/.pnpm/@storm-software_config-tools@1.189.9_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs";
1
+ import { LogLevelLabel } from "./node_modules/.pnpm/@storm-software_config-tools@1.189.10_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs";
2
2
  import { fileHeader } from "./style-dictionary/file-header.mjs";
3
+ import { resolve } from "@powerlines/plugin-esbuild/helpers/resolve";
3
4
  import { isFunction } from "@stryke/type-checks/is-function";
4
5
  import defu from "defu";
5
- import { resolve } from "powerlines/lib/utilities/resolve";
6
6
  import StyleDictionary from "style-dictionary";
7
7
 
8
8
  //#region src/index.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["builder!: CustomActionsBuilder","builder!: CustomFileHeadersBuilder","fileHeader","builder!: CustomFiltersBuilder","builder!: CustomPreprocessorsBuilder","builder!: CustomParsersBuilder","builder!: CustomTransformsBuilder","builder!: CustomTransformGroupsBuilder"],"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 { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport defu from \"defu\";\nimport { resolve } from \"powerlines/lib/utilities/resolve\";\nimport { Plugin } from \"powerlines/types/plugin\";\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\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":";;;;;;;;;;;;;;AA8CA,MAAa,UAGX,UAAwC,EAAE,KACrB;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO,EACL,iBAAiB,KAAK,SAAS;IAC7B,KAAK,EACH,WACE,KAAK,OAAO,aAAa,cAAc,QACnC,YACA,KAAK,OAAO,aAAa,cAAc,QACrC,YACA,UACT;IACD,YAAY;IACb,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,QAAK,kBACH,KAAK,OAAO,gBAAgB,YAC5B,IAAI,gBAAgB,KAAK,OAAO,gBAAgB;AAElD,QAAK,gBAAgB,mBAAmB,WAAW,KAAK,CAAC;AAEzD,OAAI,KAAK,OAAO,gBAAgB,eAAe;IAC7C,IAAIA;AACJ,QAAI,WAAW,KAAK,OAAO,gBAAgB,cAAc,CACvD,WAAU,KAAK,OAAO,gBAAgB;QAEtC,WAAU,MAAM,QACd,MACA,KAAK,OAAO,gBAAgB,c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gBAAgB,kBAAkB,EAC3C,OAAO,CAAC,KAAK,OAAO,WACrB,CAAC;;GAGP;EACF;;AAGH,kBAAe"}
1
+ {"version":3,"file":"index.mjs","names":["builder!: CustomActionsBuilder","builder!: CustomFileHeadersBuilder","fileHeader","builder!: CustomFiltersBuilder","builder!: CustomPreprocessorsBuilder","builder!: CustomParsersBuilder","builder!: CustomTransformsBuilder","builder!: CustomTransformGroupsBuilder"],"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 export interface UserConfig {\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":";;;;;;;;;;;;;;AAoDA,MAAa,UAGX,UAAwC,EAAE,KACrB;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO,EACL,iBAAiB,KAAK,SAAS;IAC7B,KAAK,EACH,WACE,KAAK,OAAO,aAAa,cAAc,QACnC,YACA,KAAK,OAAO,aAAa,cAAc,QACrC,YACA,UACT;IACD,YAAY;IACb,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,QAAK,kBACH,KAAK,OAAO,gBAAgB,YAC5B,IAAI,gBAAgB,KAAK,OAAO,gBAAgB;AAElD,QAAK,gBAAgB,mBAAmB,WAAW,KAAK,CAAC;AAEzD,OAAI,KAAK,OAAO,gBAAgB,eAAe;IAC7C,IAAIA;AACJ,QAAI,WAAW,KAAK,OAAO,gBAAgB,cAAc,CACvD,WAAU,KAAK,OAAO,gBAAgB;QAEtC,WAAU,MAAM,QACd,MACA,KAAK,OAAO,gBAAgB,cAC7B;AAGH,WAAO,QAAQ,WAAW,QAAQ,GAAG,QAAQ,KAAK,GAAG,QAAQ,CAAC,SAC3D,CAAC,MAAM,YAAY;AAClB,UAAK,gBAAgB,eAAe;MAClC,GAAG;MACH;MACD,CAAC;MAEL;;AAGH,OAAI,KAAK,OAAO,gBAAgB,mBAAmB;IACjD,IAAIC;AACJ,QAAI,WAAW,KAAK,OAAO,gBAAgB,kBAAkB,CAC3D,WAAU,KAAK,OAAO,gBAAgB;QAEtC,WAAU,MAAM,QACd,MACA,KAAK,OAAO,gBAAgB,kBAC7B;AAGH,WAAO,QAAQ,WAAW,QAAQ,GAAG,QAAQ,KAAK,GAAG,QAAQ,CAAC,SAC3D,CAAC,MAAMC,kBAAgB;AACtB,UAAK,gBAAgB,mBAAmB;MACtC;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AK,OAAO,gBAAgB,iBAC7B;AAGH,WAAO,QAAQ,WAAW,QAAQ,GAAG,QAAQ,KAAK,GAAG,QAAQ,CAAC,SAC3D,CAAC,MAAM,eAAe;AACrB,UAAK,gBAAgB,kBAAkB;MACrC,GAAG;MACH;MACD,CAAC;MAEL;;AAGH,OAAI,KAAK,OAAO,gBAAgB,uBAAuB;IACrD,IAAIC;AACJ,QAAI,WAAW,KAAK,OAAO,gBAAgB,sBAAsB,CAC/D,WAAU,KAAK,OAAO,gBAAgB;QAEtC,WAAU,MAAM,QACd,MACA,KAAK,OAAO,gBAAgB,sBAC7B;AAGH,WAAO,QAAQ,WAAW,QAAQ,GAAG,QAAQ,KAAK,GAAG,QAAQ,CAAC,SAC3D,CAAC,MAAM,oBAAoB;AAC1B,UAAK,gBAAgB,uBAAuB;MAC1C;MACA,YAAY;MACb,CAAC;MAEL;;;EAGL,MAAM,QAAQ;AACZ,SAAM,KAAK,gBAAgB,kBAAkB,EAC3C,OAAO,CAAC,KAAK,OAAO,WACrB,CAAC;;EAEJ,SAAS;GACP,OAAO;GACP,MAAM,UAAU;AACd,QAAI,CAAC,KAAK,OAAO,gBAAgB,UAC/B,OAAM,KAAK,gBAAgB,kBAAkB,EAC3C,OAAO,CAAC,KAAK,OAAO,WACrB,CAAC;;GAGP;EACF;;AAGH,kBAAe"}
@@ -1,5 +1,5 @@
1
1
 
2
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.9_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
2
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.10_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
3
3
  var LogLevelLabel = {
4
4
  SILENT: "silent",
5
5
  FATAL: "fatal",
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.9_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
1
+ //#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.10_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
2
2
  var LogLevelLabel = {
3
3
  SILENT: "silent",
4
4
  FATAL: "fatal",
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-POXTJ6GF.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@storm-software+config-tools@1.189.10_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js"],"sourcesContent":["// src/types.ts\nvar LogLevel = {\n SILENT: 0,\n FATAL: 10,\n ERROR: 20,\n WARN: 30,\n SUCCESS: 35,\n INFO: 40,\n DEBUG: 60,\n TRACE: 70,\n ALL: 100\n};\nvar LogLevelLabel = {\n SILENT: \"silent\",\n FATAL: \"fatal\",\n ERROR: \"error\",\n WARN: \"warn\",\n SUCCESS: \"success\",\n INFO: \"info\",\n DEBUG: \"debug\",\n TRACE: \"trace\",\n ALL: \"all\"\n};\n\nexport {\n LogLevel,\n LogLevelLabel\n};\n"],"x_google_ignoreList":[0],"mappings":";AAYA,IAAI,gBAAgB;CAClB,QAAQ;CACR,OAAO;CACP,OAAO;CACP,MAAM;CACN,SAAS;CACT,MAAM;CACN,OAAO;CACP,OAAO;CACP,KAAK;CACN"}
@@ -1,7 +1,5 @@
1
+ import { EnvironmentConfig, PluginContext, ResolvedConfig, UserConfig } from "powerlines";
1
2
  import { TypeDefinitionParameter } from "@stryke/types/configuration";
2
- import { EnvironmentConfig, UserConfig } from "powerlines/types/config";
3
- import { PluginContext } from "powerlines/types/context";
4
- import { ResolvedConfig } from "powerlines/types/resolved";
5
3
  import StyleDictionary, { Config } from "style-dictionary";
6
4
  import { Action, FileHeader, Filter, Format, Parser, PlatformConfig, Preprocessor, Transform } from "style-dictionary/types";
7
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAo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leDictionary, { Config } from "style-dictionary";
2
+ import { EnvironmentConfig, PluginContext, ResolvedConfig, UserConfig } from "powerlines";
2
3
  import { TypeDefinitionParameter } from "@stryke/types/configuration";
3
- import { EnvironmentConfig, UserConfig } from "powerlines/types/config";
4
- import { PluginContext } from "powerlines/types/context";
5
- import { ResolvedConfig } from "powerlines/types/resolved";
6
4
  import { Action, FileHeader, Filter, Format, Parser, PlatformConfig, Preprocessor, Transform } from "style-dictionary/types";
7
5
 
8
6
  //#region src/types/plugin.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAoCK,wDACe,iCACf,eAAe;KAER,oBAAA,GAAuB,gCAAgC;AAJ9D,KAKO,uBAAA,GACV,+BANkC,CAMF,SANE,CAAA;AAChB,KAMR,oBAAA,GAAuB,+BANf,CAM+C,MAN/C,CAAA;AACA,KAMR,4BAAA,GAA+B,+BANvB,CAAA,MAAA,EAAA,CAAA;AAAf,KASO,wBAAA,GACV,+BAVG,CAU6B,UAV7B,CAAA;AAAM,KAWC,oBAAA,GAAuB,+BAXxB,CAWwD,MAXxD,CAAA;AAEC,KAUA,oBAAA,GAVoB,CAAA,gBAAG,EAWf,4BAX8C,EAAA,GAY7D,MAZ6D,EAAA;AACtD,KAYA,0BAAA,GACV,+BAZA,CAYgC,YAZD,CAAA;AACrB,KAaA,4BAAA,GAA+B,IAbR,CAaa,MAbb,EAAA,WAAA,CAAA,GAAA;EACvB;AAGZ;AAEA;AACA;AAGA;AAGA;;;EAiBkB,SAAA,CAAA,EAAA,OAAA;EAA0B;;;;;;EAwBA,aAAA,CAAA,EAxB1B,uBAwB0B,GAxBA,oBAwBA;EAQpB;;;;;;EA0BH,iBAAA,CAAA,EAlDC,uBAkDD,GAlD2B,wBAkD3B;EAA0B;;;AAW/C;AAGA;;EACoB,aAAA,CAAA,EAzDF,uBAyDE,GAzDwB,oBAyDxB;EACY;;;AAGhC;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wB,oBAyDxB;EACY;;;AAGhC;;;EAE+B,aAAA,CAAA,EAvDb,uBAuDa,GAvDa,oBAuDb;EAAf;;AAGhB;;;;EAGI,mBAAA,CAAA,EArDoB,uBAqDpB,GArD8C,0BAqD9C;EACe;;;;;;kBA9CD,0BAA0B;;;;;;;0BAStC,0BACA;;;;;;;qBAQe,0BAA0B;;;;;;;aAQlC;;KAGD,sCAAA,GAAyC,oBACnD;KAEU,+BAAA,GAAkC;oBAC1B;iBACH,eAAe;;KAGpB,mCAAA,GAAsC;mBAC/B;gBACH,eAAe;;KAGnB,qDACc,sCACtB,uCACA,cAAc;mBACC"}
package/package.json CHANGED
@@ -1,18 +1,29 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-style-dictionary",
3
- "version": "0.3.191",
4
- "type": "module",
3
+ "version": "0.3.193",
4
+ "private": false,
5
5
  "description": "A Powerlines plugin to generate project code with Style Dictionary.",
6
+ "keywords": [
7
+ "style-dictionary",
8
+ "powerlines",
9
+ "storm-software",
10
+ "powerlines-plugin"
11
+ ],
12
+ "homepage": "https://stormsoftware.com",
13
+ "bugs": {
14
+ "url": "https://stormsoftware.com/support",
15
+ "email": "support@stormsoftware.com"
16
+ },
6
17
  "repository": {
7
18
  "type": "github",
8
19
  "url": "https://github.com/storm-software/powerlines.git",
9
20
  "directory": "packages/plugin-style-dictionary"
10
21
  },
11
- "homepage": "https://stormsoftware.com",
12
- "bugs": {
13
- "url": "https://stormsoftware.com/support",
14
- "email": "support@stormsoftware.com"
22
+ "funding": {
23
+ "type": "github",
24
+ "url": "https://github.com/sponsors/storm-software"
15
25
  },
26
+ "license": "Apache-2.0",
16
27
  "author": {
17
28
  "name": "Storm Software",
18
29
  "email": "contact@stormsoftware.com",
@@ -32,14 +43,7 @@
32
43
  "url": "https://stormsoftware.com"
33
44
  }
34
45
  ],
35
- "funding": {
36
- "type": "github",
37
- "url": "https://github.com/sponsors/storm-software"
38
- },
39
- "license": "Apache-2.0",
40
- "private": false,
41
- "main": "./dist/index.cjs",
42
- "module": "./dist/index.mjs",
46
+ "type": "module",
43
47
  "exports": {
44
48
  ".": {
45
49
  "require": {
@@ -55,7 +59,7 @@
55
59
  "default": "./dist/index.mjs"
56
60
  }
57
61
  },
58
- "./package.json": "./package.json",
62
+ "./*": "./*",
59
63
  "./types": {
60
64
  "require": {
61
65
  "types": "./dist/types/index.d.cts",
@@ -85,28 +89,25 @@
85
89
  }
86
90
  }
87
91
  },
92
+ "main": "./dist/index.cjs",
93
+ "module": "./dist/index.mjs",
94
+ "types": "./dist/index.d.cts",
88
95
  "typings": "dist/index.d.mts",
89
96
  "files": ["dist/**/*"],
90
- "keywords": [
91
- "style-dictionary",
92
- "powerlines",
93
- "storm-software",
94
- "powerlines-plugin"
95
- ],
96
97
  "dependencies": {
98
+ "@powerlines/plugin-esbuild": "^0.13.301",
97
99
  "@stryke/path": "^0.26.6",
98
100
  "@stryke/type-checks": "^0.5.25",
99
101
  "@stryke/types": "^0.10.39",
100
102
  "defu": "^6.1.4",
101
103
  "jiti": "^2.6.1",
102
- "powerlines": "^0.38.57",
104
+ "powerlines": "^0.39.1",
103
105
  "style-dictionary": "^5.3.2"
104
106
  },
105
107
  "devDependencies": {
106
- "@powerlines/plugin-plugin": "^0.12.241",
107
- "@types/node": "^25.3.1"
108
+ "@powerlines/plugin-plugin": "^0.12.243",
109
+ "@types/node": "^25.3.3"
108
110
  },
109
111
  "publishConfig": { "access": "public" },
110
- "types": "./dist/index.d.cts",
111
- "gitHead": "eb3dbd19bd153aa5a988bce09a1cf05d985cb04b"
112
+ "gitHead": "30a096fed42d3462dbc028b16145250c373f3d99"
112
113
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunk-POXTJ6GF.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@storm-software+config-tools@1.189.9_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js"],"sourcesContent":["// src/types.ts\nvar LogLevel = {\n SILENT: 0,\n FATAL: 10,\n ERROR: 20,\n WARN: 30,\n SUCCESS: 35,\n INFO: 40,\n DEBUG: 60,\n TRACE: 70,\n ALL: 100\n};\nvar LogLevelLabel = {\n SILENT: \"silent\",\n FATAL: \"fatal\",\n ERROR: \"error\",\n WARN: \"warn\",\n SUCCESS: \"success\",\n INFO: \"info\",\n DEBUG: \"debug\",\n TRACE: \"trace\",\n ALL: \"all\"\n};\n\nexport {\n LogLevel,\n LogLevelLabel\n};\n"],"x_google_ignoreList":[0],"mappings":";AAYA,IAAI,gBAAgB;CAClB,QAAQ;CACR,OAAO;CACP,OAAO;CACP,MAAM;CACN,SAAS;CACT,MAAM;CACN,OAAO;CACP,OAAO;CACP,KAAK;CACN"}