Skip to content

Commit

Permalink
task: renames folders
Browse files Browse the repository at this point in the history
  • Loading branch information
skibinska committed Jun 27, 2024
1 parent 5ff4f8e commit 1ae69a3
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ registerTransforms(StyleDictionary);
const tokenGroups = ["core", "semantic", "collection-core"];

const common = {
buildPath: "generatedTokens/",
buildPath: "tokens-generated/",
prefix: "wds",
transformGroup: "tokens-studio",
};

const sd = new StyleDictionary({
source: ["tokens/*.json"],
source: ["tokens-figma/*.json"],
platforms: {
css: {
...common,
Expand All @@ -25,7 +25,7 @@ const sd = new StyleDictionary({
destination: `css/${groupName}.css`,
format: "css/variables",
filter: (token) =>
token.filePath === `tokens/${groupName}.json` &&
token.filePath === `tokens-figma/${groupName}.json` &&
filterExcludeTokens(token),
};
}),
Expand Down Expand Up @@ -58,4 +58,5 @@ sd.registerTransform({
transform: (token) => transformToRem(token.value),
});

sd.buildAllPlatforms();
sd.cleanAllPlatforms();
sd.buildAllPlatforms();
2 changes: 1 addition & 1 deletion split-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const rawData = fs.readFileSync(jsonFile);
const jsonData = JSON.parse(rawData);

// Define the base output directory
const baseDir = path.join(__dirname, "tokens");
const baseDir = path.join(__dirname, "tokens-figma");

// Define keys to include
const includeKeys = [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1ae69a3

Please sign in to comment.