Skip to content

Prepared AsciiDoc document and ESM build#82

Merged
benjaminleonard merged 26 commits into
masterfrom
prepare-asciidoc-document
Nov 14, 2024
Merged

Prepared AsciiDoc document and ESM build#82
benjaminleonard merged 26 commits into
masterfrom
prepare-asciidoc-document

Conversation

@benjaminleonard

Copy link
Copy Markdown
Collaborator

WIP

Comment thread scripts/convert-tokens.ts
import type { CSSProperties } from 'react'
import type { Config, TransformedToken } from 'style-dictionary'
import StyleDictionary from 'style-dictionary'
import dedent from 'ts-dedent'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed due to no ESM build

Comment thread scripts/convert-tokens.ts
},
})

type ColorGroup = { [colorValue: string]: TransformedToken[] }

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not using these right now, I think can reduce some complexity by removing. (Also they don't gel well with regular dedent)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it

Comment thread styles/src/tokens.json Outdated
"purple-accent": "enabled",
"main": "enabled"
"main": "enabled",
"green-accent": "disabled"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might need to resync with the figma tokens plugin. I suspect this change is a mistake.

Comment thread tsup.config.ts
entry: ['components/src/index.ts'],
outDir: 'components/dist',
external: ['react/jsx-runtime'],
splitting: false,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supported in ESM and on by default

@benjaminleonard benjaminleonard changed the title Use prepared AsciiDoc document Prepared AsciiDoc document and ESM build Nov 12, 2024
@benjaminleonard benjaminleonard marked this pull request as ready for review November 12, 2024 17:07
@david-crespo

Copy link
Copy Markdown
Collaborator

Works in web console: oxidecomputer/console#2552

@benjaminleonard benjaminleonard merged commit 7b10f02 into master Nov 14, 2024
@benjaminleonard benjaminleonard deleted the prepare-asciidoc-document branch November 14, 2024 09:04
@augustuswm

Copy link
Copy Markdown
Collaborator

🚀 PR was released in v1.6.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants