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

refactor(core): extract custom state feature #2775

Merged
merged 5 commits into from
Nov 17, 2022

Conversation

idoros
Copy link
Collaborator

@idoros idoros commented Nov 8, 2022

This PR extracts more of the core analyze/transform flow into feature code as a preparation for future work for mapped state with parameter and standalone state definitions. Specifically focusing on the custom pseudo state and some of the features around it, like css-pseudo-class & css-class.

Tasks

  • extract st-custom-state feature
  • extract css-pseudo-class feature
  • move stylable directive analyze to css-class feature (ideally this should be further separated into a future st-part feature).
  • move tests

- new custom pseudo state feature
- move `custom-states` & `state-validators` to custom-state helper file
@idoros idoros added core Processing and transforming logic tech debt Updates, upgrades, stale code and work-arounds labels Nov 8, 2022
@idoros idoros self-assigned this Nov 8, 2022
- changed `StylableDirectives` to `StPartDirectives` and moved to css class feature
- remove `features/types.ts`
- finally removed `stylable-value-parsers`
- new `css-pseudo-class` feature
- moved transform code to new feature

- piggyback `scopeSelectorAst` on `ScopeContext`  to keep refactor small
@idoros idoros mentioned this pull request Nov 9, 2022
33 tasks
- re-write tests to new inline expectation format
- expose diagnostics messages internally for tests
- remove unused `core-test-kit` matchers
@idoros idoros force-pushed the ido/extract-custom-psuedo-state-feature branch from b659763 to 91655e6 Compare November 15, 2022 13:45
@idoros idoros merged commit 850fb1d into master Nov 17, 2022
@idoros idoros deleted the ido/extract-custom-psuedo-state-feature branch November 17, 2022 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Processing and transforming logic tech debt Updates, upgrades, stale code and work-arounds
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants