Skip to content

Conversation

@carloskelly13
Copy link
Contributor

@carloskelly13 carloskelly13 commented Apr 15, 2023

Migrates to a TypeScript-based node script that generates language files and automatically includes dependencies. Additionally uglifies the output for a reduced savings 55KB vs 141KB.

The script also shows the order of exactly what dependencies and languages are included which will help us debug down the road if we have an order-of-operations issue.

This PR is to merge into the v2 branch because I wanted extra eyes on

  • the script
  • the process and strategy in which we generate this file, required for the library to bundle

👇🏻 example of the script running

Screenshot 2023-04-15 at 1 33 28 PM

@carloskelly13 carloskelly13 changed the title Recreated Prism language file generation script New Prism Language file generation script for v2 Apr 15, 2023
Copy link
Contributor

@gksander gksander left a comment

Choose a reason for hiding this comment

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

Sick! Couple nits to take or leave, but looks great.

@carloskelly13 carloskelly13 merged commit e0c503c into v2 Apr 15, 2023
@carloskelly13 carloskelly13 deleted the v2-gen-lang-script branch April 15, 2023 22:36
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.

3 participants