Ordered the classes in tw-settings.json

This commit is contained in:
Nik
2023-02-03 12:14:06 +11:00
parent 11bdc8316d
commit 3e9d832345
2 changed files with 68 additions and 67 deletions

View File

@@ -124,7 +124,8 @@ function generateKeyWordsFromProps() {
} }
} }
} }
writeFileSync('scripts/tw-settings.json', JSON.stringify({ "tailwindCSS.classAttributes": [...propSet] }, null, '\t')); const finalProps = Array.from(propSet).sort()
writeFileSync('scripts/tw-settings.json', JSON.stringify({ "tailwindCSS.classAttributes": [...finalProps] }, null, '\t'));
} }
extractScriptsFromComponents('src/lib/components'); extractScriptsFromComponents('src/lib/components');

View File

@@ -1,78 +1,78 @@
{ {
"tailwindCSS.classAttributes": [ "tailwindCSS.classAttributes": [
"class", "accent",
"spacing",
"padding",
"hover",
"rounded",
"regionControl",
"regionPanel",
"regionCaret",
"background",
"border",
"shadow",
"space",
"gridColumns",
"gap",
"regionRowMain",
"regionRowHeadline",
"slotLead",
"slotDefault",
"slotTrail",
"active", "active",
"width", "amountText",
"height", "background",
"regionLead", "badge",
"regionDefault", "border",
"regionTrail", "borderColor",
"regionIcon", "borderWidth",
"regionLabel",
"regionPage",
"slotHeader",
"slotSidebarLeft",
"slotSidebarRight",
"slotPageHeader",
"slotPageContent",
"slotPageFooter",
"slotFooter",
"fill",
"cursor",
"regionCaption",
"regionCone",
"regionLegend",
"button", "button",
"buttonBack",
"buttonClasses",
"buttonComplete",
"buttonNext",
"buttonTextNext",
"buttonTextPrevious",
"chips",
"class",
"color",
"cursor",
"display",
"element",
"fill",
"flex",
"gap",
"gridColumns",
"height",
"hover",
"invalid",
"justify",
"meter",
"padding",
"regionBody",
"regionCaption",
"regionCaret",
"regionCone",
"regionContent",
"regionControl",
"regionDefault",
"regionFoot",
"regionHead",
"regionHeader",
"regionIcon",
"regionInterface", "regionInterface",
"regionInterfaceText", "regionInterfaceText",
"regionLabel",
"regionLead",
"regionLegend",
"regionList",
"regionNavigation",
"regionPage",
"regionPanel",
"regionRowHeadline",
"regionRowMain",
"regionTrail",
"rounded",
"select",
"shadow",
"slotDefault",
"slotFooter",
"slotHeader",
"slotLead",
"slotMessage", "slotMessage",
"slotMeta", "slotMeta",
"chips", "slotPageContent",
"invalid", "slotPageFooter",
"select", "slotPageHeader",
"justify", "slotSidebarLeft",
"slotSidebarRight",
"slotTrail",
"space",
"spacing",
"text", "text",
"amountText",
"buttonClasses",
"buttonTextPrevious",
"buttonTextNext",
"meter",
"track", "track",
"display", "width"
"borderWidth",
"borderColor",
"color",
"accent",
"regionHeader",
"regionContent",
"regionNavigation",
"badge",
"buttonBack",
"buttonNext",
"buttonComplete",
"flex",
"regionList",
"element",
"regionHead",
"regionBody",
"regionFoot"
] ]
} }