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(developer): add kps-file-reader and kps-file-writer #12545

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

mcdurdin
Copy link
Member

@mcdurdin mcdurdin commented Oct 16, 2024

Relates to kmc-copy project.

Moves the .kps file reader out of kmc-package and adds corresponding kps file writer unit in developer-utils. Also moves related test and error message definition.

@keymanapp-test-bot skip

Relates to kmc-copy project.

Moves the .kps file reader out of kmc-package and adds corresponding
kps file writer unit in developer-utils. Also moves related test and
error message definition.
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Oct 16, 2024

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@keymanapp-test-bot keymanapp-test-bot bot added this to the A18S13 milestone Oct 16, 2024
let a: KpsPackage;

try {
a = new KeymanXMLReader('kps')
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe overkill, but thoughts on using KeymanXMLType.kps instead of 'kps'?

On kps-file-writer.ts too

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not needed because Typescript type-checks the string so invalid strings aren't accepted

Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

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

lgtm

@mcdurdin mcdurdin merged commit 7650b4b into master Oct 25, 2024
7 checks passed
@mcdurdin mcdurdin deleted the feat/developer/kps-file-reader-writer branch October 25, 2024 07:31
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.131-alpha

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

Successfully merging this pull request may close these issues.

3 participants