Version 2.4.1 of the xp-codegen-plugin is out
I had a chance to work on a new feature and some bugfixes for this plugin over the summer vacation… ![]()
About the plugin
The xp-codegen-plugin is a Gradle-plugin that reads all the xml-files in your project, and creates TypeScript-types for the shapes of your content in XP.
It can be run as a task in your Gradle-build.
New features
- XML-files inside included jars are now also parsed to create TypeScript-types. This includes mixins you are using from XP-libraries
. (#51) - Add /site/mixins/index.d.ts that re-exports all generated shapes for Mixins (#57)
Bug fixes
- Prevent duplicate string literals in unions (#54)
- Prevent site/styles.xml to overwrite the result from site/site.xml . (#55)
- Fix failing task when there is no
includeindependenciesin build.gradle (#61) - Fix failing task when there is no
appNamein in gradle.properties. (#62)
What’s next? Edit: What came out in 2.5.0?
- A new Gradle-task
generateI18nPhrasesthat parses all the xml-files and create a file i18n/phrases.tmp.properties that contains all the[i18n]keys/default values, that doesn’t have translations yet. (#49)
Happy coding everyone!
– Tom Arild