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

Add a command line tool for publishing .afb files to .json #94

Merged
merged 4 commits into from
Aug 7, 2023

Conversation

mehaase
Copy link
Contributor

@mehaase mehaase commented Jul 31, 2023

  • The script is implemented as a new build target for Vue, which is better than creating a standalone .js or .ts script because it integrates natively with the existing code base.
  • The main browser dependency to work around is the canvas context in Fonts.ts. The solution is to define new interfaces for Font and FontStsore and add stub implementations that are used when we're not running in a browser.
  • Remove .json files from the corpus (and .gitignore corpus/*.json).
  • Set GitHub action to generate .json files at build time
  • Add developer docs showing how to use this command line tool.

- The script is implemented as a new build target for Vue, which is better than creating a standalone .js or
  .ts script because it integrates natively with the existing code base.
- The main browser dependency to work around is the canvas context in Fonts.ts. The solution is to define new
  interfaces for Font and FontStsore and add stub implementations that are used when we're not running in a
  browser.
- Remove .json files from the corpus (and .gitignore corpus/*.json).
- Set GitHub action to generate .json files at build time
- Add developer docs showing how to use this command line tool.
@mehaase mehaase requested a review from mikecarenzo July 31, 2023 14:53
@mehaase mehaase marked this pull request as draft July 31, 2023 19:03
@mehaase mehaase force-pushed the AF-118-publish-jsons-cli branch 3 times, most recently from 2e717f9 to cb2bca0 Compare July 31, 2023 20:09
@mehaase mehaase marked this pull request as ready for review July 31, 2023 20:22
Copy link
Contributor

@mikecarenzo mikecarenzo left a comment

Choose a reason for hiding this comment

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

Code looks great 👍

Remove unused d3 import
@sonarcloud
Copy link

sonarcloud bot commented Aug 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mikecarenzo mikecarenzo merged commit 3ea23b0 into main Aug 7, 2023
4 of 6 checks passed
@mikecarenzo mikecarenzo deleted the AF-118-publish-jsons-cli branch August 7, 2023 19:30
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