@powerlines/plugin-style-dictionary 0.1.102 → 0.1.104
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./_virtual/rolldown_runtime.cjs`),t=require(`./powerlines/src/lib/utilities/resolve.cjs`);let n=require(`@storm-software/config-tools/types`),r=require(`@stryke/type-checks/is-function`),i=require(`defu`);i=e.__toESM(i);let a=require(`style-dictionary`);a=e.__toESM(a);const o=(e={})=>({name:`style-dictionary`,config(){return{styleDictionary:(0,i.default)(e,{log:{verbosity:this.config.logLevel===n.LogLevelLabel.DEBUG||this.config.logLevel===n.LogLevelLabel.TRACE?`verbose`:this.config.logLevel===null?`silent`:void 0}})}},async configResolved(){if(this.styleDictionary=this.config.styleDictionary.instance??new a.default,this.config.styleDictionary.customActions){let e;e=(0,r.isFunction)(this.config.styleDictionary.customActions)?this.config.styleDictionary.customActions:await t.resolve(this,this.config.styleDictionary.customActions),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerAction({...t,name:e})})}if(this.config.styleDictionary.customFileHeaders){let e;e=(0,r.isFunction)(this.config.styleDictionary.customFileHeaders)?this.config.styleDictionary.customFileHeaders:await t.resolve(this,this.config.styleDictionary.customFileHeaders),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerFileHeader({name:e,fileHeader:t})})}if(this.config.styleDictionary.customFilters){let e;e=(0,r.isFunction)(this.config.styleDictionary.customFilters)?this.config.styleDictionary.customFilters:await t.resolve(this,this.config.styleDictionary.customFilters),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerFilter({...t,name:e})})}if(this.config.styleDictionary.customPreprocessors){let e;e=(0,r.isFunction)(this.config.styleDictionary.customPreprocessors)?this.config.styleDictionary.customPreprocessors:await t.resolve(this,this.config.styleDictionary.customPreprocessors),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerPreprocessor({...t,name:e})})}if(this.config.styleDictionary.customParsers){let e;e=(0,r.isFunction)(this.config.styleDictionary.customParsers)?this.config.styleDictionary.customParsers:await t.resolve(this,this.config.styleDictionary.customParsers),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerParser({...t,name:e})})}if(this.config.styleDictionary.customTransforms){let e;e=(0,r.isFunction)(this.config.styleDictionary.customTransforms)?this.config.styleDictionary.customTransforms:await t.resolve(this,this.config.styleDictionary.customTransforms),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerTransform({...t,name:e})})}if(this.config.styleDictionary.customTransformGroups){let e;e=(0,r.isFunction)(this.config.styleDictionary.customTransformGroups)?this.config.styleDictionary.customTransformGroups:await t.resolve(this,this.config.styleDictionary.customTransformGroups),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerTransformGroup({name:e,transforms:t})})}},async prepare(){await this.styleDictionary.buildAllPlatforms({cache:!this.config.skipCache})}});var s=o;exports.default=s,exports.plugin=o;
|
|
1
|
+
Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./_virtual/rolldown_runtime.cjs`),t=require(`./powerlines/src/lib/utilities/resolve.cjs`);let n=require(`@storm-software/config-tools/types`),r=require(`@stryke/type-checks/is-function`),i=require(`defu`);i=e.__toESM(i);let a=require(`style-dictionary`);a=e.__toESM(a);const o=(e={})=>({name:`style-dictionary`,config(){return{styleDictionary:(0,i.default)(e,{log:{verbosity:this.config.logLevel===n.LogLevelLabel.DEBUG||this.config.logLevel===n.LogLevelLabel.TRACE?`verbose`:this.config.logLevel===null?`silent`:void 0}})}},async configResolved(){if(this.styleDictionary=this.config.styleDictionary.instance??new a.default(this.config.styleDictionary),this.config.styleDictionary.customActions){let e;e=(0,r.isFunction)(this.config.styleDictionary.customActions)?this.config.styleDictionary.customActions:await t.resolve(this,this.config.styleDictionary.customActions),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerAction({...t,name:e})})}if(this.config.styleDictionary.customFileHeaders){let e;e=(0,r.isFunction)(this.config.styleDictionary.customFileHeaders)?this.config.styleDictionary.customFileHeaders:await t.resolve(this,this.config.styleDictionary.customFileHeaders),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerFileHeader({name:e,fileHeader:t})})}if(this.config.styleDictionary.customFilters){let e;e=(0,r.isFunction)(this.config.styleDictionary.customFilters)?this.config.styleDictionary.customFilters:await t.resolve(this,this.config.styleDictionary.customFilters),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerFilter({...t,name:e})})}if(this.config.styleDictionary.customPreprocessors){let e;e=(0,r.isFunction)(this.config.styleDictionary.customPreprocessors)?this.config.styleDictionary.customPreprocessors:await t.resolve(this,this.config.styleDictionary.customPreprocessors),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerPreprocessor({...t,name:e})})}if(this.config.styleDictionary.customParsers){let e;e=(0,r.isFunction)(this.config.styleDictionary.customParsers)?this.config.styleDictionary.customParsers:await t.resolve(this,this.config.styleDictionary.customParsers),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerParser({...t,name:e})})}if(this.config.styleDictionary.customTransforms){let e;e=(0,r.isFunction)(this.config.styleDictionary.customTransforms)?this.config.styleDictionary.customTransforms:await t.resolve(this,this.config.styleDictionary.customTransforms),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerTransform({...t,name:e})})}if(this.config.styleDictionary.customTransformGroups){let e;e=(0,r.isFunction)(this.config.styleDictionary.customTransformGroups)?this.config.styleDictionary.customTransformGroups:await t.resolve(this,this.config.styleDictionary.customTransformGroups),Object.entries((0,r.isFunction)(e)?e(this):e).forEach(([e,t])=>{this.styleDictionary.registerTransformGroup({name:e,transforms:t})})}},async prepare(){await this.styleDictionary.buildAllPlatforms({cache:!this.config.skipCache})}});var s=o;exports.default=s,exports.plugin=o;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{resolve as e}from"./powerlines/src/lib/utilities/resolve.mjs";import{LogLevelLabel as t}from"@storm-software/config-tools/types";import{isFunction as n}from"@stryke/type-checks/is-function";import r from"defu";import i from"style-dictionary";const a=(a={})=>({name:`style-dictionary`,config(){return{styleDictionary:r(a,{log:{verbosity:this.config.logLevel===t.DEBUG||this.config.logLevel===t.TRACE?`verbose`:this.config.logLevel===null?`silent`:void 0}})}},async configResolved(){if(this.styleDictionary=this.config.styleDictionary.instance??new i,this.config.styleDictionary.customActions){let t;t=n(this.config.styleDictionary.customActions)?this.config.styleDictionary.customActions:await e(this,this.config.styleDictionary.customActions),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerAction({...t,name:e})})}if(this.config.styleDictionary.customFileHeaders){let t;t=n(this.config.styleDictionary.customFileHeaders)?this.config.styleDictionary.customFileHeaders:await e(this,this.config.styleDictionary.customFileHeaders),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerFileHeader({name:e,fileHeader:t})})}if(this.config.styleDictionary.customFilters){let t;t=n(this.config.styleDictionary.customFilters)?this.config.styleDictionary.customFilters:await e(this,this.config.styleDictionary.customFilters),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerFilter({...t,name:e})})}if(this.config.styleDictionary.customPreprocessors){let t;t=n(this.config.styleDictionary.customPreprocessors)?this.config.styleDictionary.customPreprocessors:await e(this,this.config.styleDictionary.customPreprocessors),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerPreprocessor({...t,name:e})})}if(this.config.styleDictionary.customParsers){let t;t=n(this.config.styleDictionary.customParsers)?this.config.styleDictionary.customParsers:await e(this,this.config.styleDictionary.customParsers),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerParser({...t,name:e})})}if(this.config.styleDictionary.customTransforms){let t;t=n(this.config.styleDictionary.customTransforms)?this.config.styleDictionary.customTransforms:await e(this,this.config.styleDictionary.customTransforms),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerTransform({...t,name:e})})}if(this.config.styleDictionary.customTransformGroups){let t;t=n(this.config.styleDictionary.customTransformGroups)?this.config.styleDictionary.customTransformGroups:await e(this,this.config.styleDictionary.customTransformGroups),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerTransformGroup({name:e,transforms:t})})}},async prepare(){await this.styleDictionary.buildAllPlatforms({cache:!this.config.skipCache})}});var o=a;export{o as default,a as plugin};
|
|
1
|
+
import{resolve as e}from"./powerlines/src/lib/utilities/resolve.mjs";import{LogLevelLabel as t}from"@storm-software/config-tools/types";import{isFunction as n}from"@stryke/type-checks/is-function";import r from"defu";import i from"style-dictionary";const a=(a={})=>({name:`style-dictionary`,config(){return{styleDictionary:r(a,{log:{verbosity:this.config.logLevel===t.DEBUG||this.config.logLevel===t.TRACE?`verbose`:this.config.logLevel===null?`silent`:void 0}})}},async configResolved(){if(this.styleDictionary=this.config.styleDictionary.instance??new i(this.config.styleDictionary),this.config.styleDictionary.customActions){let t;t=n(this.config.styleDictionary.customActions)?this.config.styleDictionary.customActions:await e(this,this.config.styleDictionary.customActions),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerAction({...t,name:e})})}if(this.config.styleDictionary.customFileHeaders){let t;t=n(this.config.styleDictionary.customFileHeaders)?this.config.styleDictionary.customFileHeaders:await e(this,this.config.styleDictionary.customFileHeaders),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerFileHeader({name:e,fileHeader:t})})}if(this.config.styleDictionary.customFilters){let t;t=n(this.config.styleDictionary.customFilters)?this.config.styleDictionary.customFilters:await e(this,this.config.styleDictionary.customFilters),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerFilter({...t,name:e})})}if(this.config.styleDictionary.customPreprocessors){let t;t=n(this.config.styleDictionary.customPreprocessors)?this.config.styleDictionary.customPreprocessors:await e(this,this.config.styleDictionary.customPreprocessors),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerPreprocessor({...t,name:e})})}if(this.config.styleDictionary.customParsers){let t;t=n(this.config.styleDictionary.customParsers)?this.config.styleDictionary.customParsers:await e(this,this.config.styleDictionary.customParsers),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerParser({...t,name:e})})}if(this.config.styleDictionary.customTransforms){let t;t=n(this.config.styleDictionary.customTransforms)?this.config.styleDictionary.customTransforms:await e(this,this.config.styleDictionary.customTransforms),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerTransform({...t,name:e})})}if(this.config.styleDictionary.customTransformGroups){let t;t=n(this.config.styleDictionary.customTransformGroups)?this.config.styleDictionary.customTransformGroups:await e(this,this.config.styleDictionary.customTransformGroups),Object.entries(n(t)?t(this):t).forEach(([e,t])=>{this.styleDictionary.registerTransformGroup({name:e,transforms:t})})}},async prepare(){await this.styleDictionary.buildAllPlatforms({cache:!this.config.skipCache})}});var o=a;export{o as default,a as plugin};
|
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.104",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code with Style Dictionary.",
|
|
6
6
|
"repository": {
|
|
@@ -127,14 +127,14 @@
|
|
|
127
127
|
"@stryke/types": "^0.10.28",
|
|
128
128
|
"defu": "^6.1.4",
|
|
129
129
|
"jiti": "^2.6.1",
|
|
130
|
-
"powerlines": "^0.36.
|
|
130
|
+
"powerlines": "^0.36.3",
|
|
131
131
|
"style-dictionary": "^5.1.1"
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
|
-
"@powerlines/nx": "^0.11.
|
|
135
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
134
|
+
"@powerlines/nx": "^0.11.29",
|
|
135
|
+
"@powerlines/plugin-plugin": "^0.12.50",
|
|
136
136
|
"@types/node": "^24.10.4"
|
|
137
137
|
},
|
|
138
138
|
"publishConfig": { "access": "public" },
|
|
139
|
-
"gitHead": "
|
|
139
|
+
"gitHead": "0d695fa64043ba14e7c7ae8759e9e0cf5b2a6b38"
|
|
140
140
|
}
|