Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic programmatic APIs #2247

Open
tomrav opened this issue Jan 4, 2022 · 0 comments
Open

Semantic programmatic APIs #2247

tomrav opened this issue Jan 4, 2022 · 0 comments
Labels
API Programmatic API core Processing and transforming logic research research for future tasks

Comments

@tomrav
Copy link
Collaborator

tomrav commented Jan 4, 2022

To avoid exposing entire parts of Stylable's internal API for users consuming Stylable through a programmatic API, we can expose dedicated public semantic APIs for working with Stylable.

Some examples for these:

  • available variables in a stylesheet
  • available formatters
  • available selectors / parts
  • add selector
  • add declaration
  • modify variable
  • ...

These APIs will be under one of two options:

  • Introspective (read) - used to expose stylesheet parts according to some API / query, useful for LSP completions
  • Editing (write) - modify stylesheet content, useful for refactoring tools
@tomrav tomrav added API Programmatic API core Processing and transforming logic research research for future tasks labels Jan 4, 2022
@tomrav tomrav added this to Stylable Jan 4, 2022
@tomrav tomrav moved this to ❓ Triage Required in Stylable Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Programmatic API core Processing and transforming logic research research for future tasks
Projects
Status: Triage Required
Development

No branches or pull requests

1 participant