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

feat: implement syntax stringifier #5

Merged
merged 6 commits into from Nov 25, 2021
Merged

feat: implement syntax stringifier #5

merged 6 commits into from Nov 25, 2021

Conversation

43081j
Copy link
Owner

@43081j 43081j commented Nov 19, 2021

I have implemented a basic stringifier which rebuilds the original expression text.

In order to retrieve the original text, we have to make use of raws on the root node it seems. This could be replaced if some other plugin decides to mutate our placeholder comments, so in those cases we will leave the comments as-is.

CURRENTLY BLOCKED: This depends on postcss/postcss#1675 being merged and released.

BLOCKED BY: postcss/postcss#1681

@43081j 43081j mentioned this pull request Nov 19, 2021
9 tasks
@43081j
Copy link
Owner Author

43081j commented Nov 24, 2021

postcss 8.4 is out, which now has stringifier types... but i missed the builder member out of the types 🤦‍♂️

i've opened postcss/postcss#1681 which now blocks this

@coveralls
Copy link

coveralls commented Nov 25, 2021

Pull Request Test Coverage Report for Build 1504286696

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+1.6%) to 97.072%

Files with Coverage Reduction New Missed Lines %
lib/parse.js 1 94.03%
Totals Coverage Status
Change from base Build 1484517775: 1.6%
Covered Lines: 364
Relevant Lines: 368

💛 - Coveralls

@43081j 43081j merged commit 7ff72c9 into master Nov 25, 2021
@43081j 43081j deleted the stringifier branch November 25, 2021 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants