@design-sync/json-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

@design-sync/json-plugin

npm version npm downloads

Transforms design tokens to flat json structure without all the tokens metadata and types, also dereference all token aliases

Usage

Install package:

# npm
npm install @design-sync/json-plugin

# yarn
yarn add @design-sync/json-plugin

# pnpm
pnpm install @design-sync/json-plugin

# bun
bun install @design-sync/json-plugin

in the config file add the plugin to the plugins array

import { jsonPlugin } from '@design-sync/json-plugin'

export default {
  plugins: [jsonPlugin({
    // relative path in the `out` root config, default ''
    outDir: 'json',
  })],
}

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with 💛

Published under MIT License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.3
    11
    • latest

Version History

Package Sidebar

Install

npm i @design-sync/json-plugin

Weekly Downloads

19

Version

0.3.3

License

MIT

Unpacked Size

7.42 kB

Total Files

8

Last publish

Collaborators

  • salamaashoush