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

Generate html source script to support aria-at-app #646

Merged
merged 4 commits into from
Mar 17, 2022

Conversation

howard-e
Copy link
Contributor

@howard-e howard-e commented Mar 16, 2022

Preview Tests

https://github.com/w3c/aria-at-app's TestRenderer depends on test example html artifacts which contains scripts. This previously existed in the build folder, now removed by #621. This PR adds those required artifacts without the need to commit the build folder.

npm run build already creates these files in the (now, local) build folder. They're copied over to the source folder location of the example, ie. tests/<testplan>/reference/<path>/<testplan>.<script>.html.

These files are updated by:

  • Running npm run build before commit and push, OR
  • Generate and commit files workflow runs npm run build, and has had the language updated to reflect the change. (This will not run if there are no updated files and it will not cause unintended merge conflicts through clashing generated files as previously experienced; line endings for those files are ignored to help ensure this)
  • npm run build will also remove the html script artifacts which are no longer being generated (most likely due to script being removed from tests/<testplan>/data/js/<script>.js

cc @s3ththompson @richnoah

@howard-e howard-e requested a review from alflennik March 16, 2022 22:03
@netlify
Copy link

netlify bot commented Mar 16, 2022

✔️ Deploy Preview for aria-at ready!

🔨 Explore the source changes: e76b7e0

🔍 Inspect the deploy log: https://app.netlify.com/sites/aria-at/deploys/62325ec3eb1e650009092cee

😎 Browse the preview: https://deploy-preview-646--aria-at.netlify.app/

Copy link
Contributor

@alflennik alflennik left a comment

Choose a reason for hiding this comment

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

I'll definitely be curious if these can be removed in the future, but based on our discussion I think this is a super clean solution, and still allows us to delete hundreds of thousands of lines of generated files from the repo. And these files are way less volatile and will rarely, if ever, change. Thanks for getting us through that huge forward leap Howard!

@howard-e howard-e merged commit 7c4b5dc into master Mar 17, 2022
@howard-e howard-e deleted the generate-html-source-script branch March 17, 2022 18:34
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.

2 participants