Skip to content

Create Node.js build script to replace Style Dictionary #597

@GarthDB

Description

@GarthDB

Part of Epic #596

Problem

Current Style Dictionary setup with style-dictionary-sets adds complexity:

  • Custom transforms for sets structure
  • External dependency maintenance
  • Complex configuration
  • Hard to extend or modify

Solution

Create simple Node.js script that:

  • Reads src/**/*.json files directly
  • Handles sets structure with straightforward logic
  • Generates same output formats as current system
  • No external dependencies beyond Node.js built-ins

Implementation

  • Replace tasks/buildSpectrumTokens.js
  • Remove style-dictionary-sets dependency
  • Maintain exact same output in dist/ directory
  • Add comprehensive tests to ensure no regressions

Acceptance Criteria

  • All existing dist/ outputs byte-for-byte identical
  • Build time < 30 seconds
  • No style-dictionary-sets dependency
  • Code is readable and maintainable

Keywords: build-system, style-dictionary, node.js, simplification

Metadata

Metadata

Assignees

No one assigned

    Labels

    beta-branchWork happening in beta branchbuild-systemBuild and compilation system changesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions