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

Update CLI to Allow Compilation to any File Type #146

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

KetanReddy
Copy link
Member

@KetanReddy KetanReddy commented Jul 12, 2024

Currently, the CLI assumes that any result from the compilation hook is an object that can be serialized to JSON and should be written to a file that ends in .js. There are potentially other usecases for compiling Player related content that may not result in a JSON serializable result. This PR expands the results to generalize what the compilation is to be some string that should be written as the output file, and an optional second string that should be written as the source map.

Change Type (required)

Indicate the type of change your pull request is:

  • patch
  • minor
  • major

Release Notes

Allow DSL compilation phase to compile to non .json targets

📦 Published PR as canary version: 0.7.0--canary.146.3413

Try this version out locally by upgrading relevant packages to 0.7.0--canary.146.3413

Version

Published prerelease version: 0.7.0-next.7

Changelog

Release Notes

Update CLI to Allow Compilation to any File Type (#146)

Allow DSL compilation phase to compile to non .json targets

Fix Issue Validating Templates (#125)

XLR - Fully resolve references, intersection types, conditional types, and generic types when returning a type
JSON Language Server - Add generic tokens when constructing template types in transform
Validation - Fix issue validating nested arrays in templates.

#132 - Adds a dev tools web plugin generator (#133)

Adds a generator to facilitate adding new dev tools web plugins:

pnpm gen:dev-tools-web-plugin

Fix Bug when Validating null literals (#123)

Validator - Properly validate NullType nodes against null literals

Fix Parsing Indexed Access Types with Parentheses (#112)

XLR - Fixed compilation of IndexedAccesNodes that use parentheses around the first element.

Fix Regression on Validation of Keys with Escaped Characters (#110)

XLR - Fixes validation of objects where a property is escaped using single/double quotes and the property is required or the object doesn't allow additional properties.


🚀 Enhancement

🐛 Bug Fix

📝 Documentation

Authors: 7

@KetanReddy KetanReddy added the minor Increment the minor version when merged label Jul 12, 2024
@KetanReddy KetanReddy requested review from rafbcampos and a team July 12, 2024 04:21
@KetanReddy KetanReddy self-assigned this Jul 12, 2024
Copy link

codecov bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.05%. Comparing base (bb0fb5d) to head (2d89274).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #146   +/-   ##
=======================================
  Coverage   73.05%   73.05%           
=======================================
  Files          87       87           
  Lines       12946    12946           
  Branches     1216     1217    +1     
=======================================
  Hits         9458     9458           
  Misses       3469     3469           
  Partials       19       19           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KetanReddy
Copy link
Member Author

/canary

1 similar comment
@KetanReddy
Copy link
Member Author

/canary

@KetanReddy
Copy link
Member Author

/canary

@KetanReddy KetanReddy changed the title [WIP] Update CLI to Allow Compilation to any File Type Update CLI to Allow Compilation to any File Type Jul 17, 2024
@KetanReddy KetanReddy marked this pull request as ready for review July 17, 2024 05:18
@KetanReddy KetanReddy merged commit 187c4cd into main Jul 19, 2024
8 checks passed
@KetanReddy KetanReddy deleted the feat/compile-non-json-targets branch July 19, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants