From e0d73a473bf1d1c81e5b359390d5e99ec521dc4d Mon Sep 17 00:00:00 2001 From: vern-gora Date: Sat, 23 Nov 2024 16:54:47 +0200 Subject: [PATCH] Update build-figma-tokens.mjs --- figma-tokens/build-figma-tokens.mjs | 48 ----------------------------- 1 file changed, 48 deletions(-) diff --git a/figma-tokens/build-figma-tokens.mjs b/figma-tokens/build-figma-tokens.mjs index 0759ac7d5..6a53beb50 100644 --- a/figma-tokens/build-figma-tokens.mjs +++ b/figma-tokens/build-figma-tokens.mjs @@ -2,51 +2,3 @@ import StyleDictionary from 'style-dictionary'; const sd = new StyleDictionary('./figma-tokens/config/config.json'); await sd.buildAllPlatforms(); - -// - -// import StyleDictionary from 'style-dictionary'; - -// const config = { -// source: ['../transformed-tokens/**/*.json'], -// platforms: { -// scss: { -// transformGroup: 'scss', -// buildPath: '../../stories/assets/scss/figma-scss/', -// files: [ -// { -// destination: '_figma-variables.scss', -// format: 'scss/variables', -// }, -// ], -// }, -// }, -// }; - -// const sd = StyleDictionary.extend(config); -// sd.buildAllPlatforms(); - -// - -// import {StyleDictionary} from 'style-dictionary-utils' - -// const myStyleDictionary = new StyleDictionary() - -// // when using style dictionary 4 you whave to await the extend method -// const extendedSd = await myStyleDictionary.extend({ -// "source": ["../transformed-tokens/**/*.json"], -// "platforms": { -// "scss": { -// "transformGroup": "scss", -// "buildPath": "../../stories/assets/scss/figma-scss/", -// "files": [ -// { -// "destination": "_figma-variables.scss", -// "format": "scss/variables" -// } -// ] -// } -// } -// }); - -// extendedSd.buildAllPlatforms();