Skip to content

feat(generator): support resource type definition in subdirectories - #315

Merged
jianzs merged 1 commit into
pluto-lang:mainfrom
jianzs:feat-support-subpackage
Aug 5, 2024
Merged

feat(generator): support resource type definition in subdirectories#315
jianzs merged 1 commit into
pluto-lang:mainfrom
jianzs:feat-support-subpackage

Conversation

@jianzs

Copy link
Copy Markdown
Contributor

Previously, resource types could only be defined in the root directory. This commit enables defining the resource type within subdirectories.

SDK developers can now specify the fully qualified name (FQN) of a resource type in the format <package_name>.<directory_name>.<class_name>. In the infrastructure SDK, define the resource type as <directory_name>.<class_name>.

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix#123", "re #123".):

  • N
  • Y

2. What is the scope of this PR (e.g. component or file name):

  • Generator

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Other

SDK developers can define the resource type in the subdirectories.

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

  • N
  • Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

  • Unit test
  • Integration test
  • Benchmark (add benchmark stats below)
  • Manual test (add detailed scripts or steps below)
  • Other

Previously, resource types could only be defined in the root directory. This commit enables defining the resource type within subdirectories.
SDK developers can now specify the fully qualified name (FQN) of a resource type in the format `<package_name>.<directory_name>.<class_name>`. In the infrastructure SDK, define the resource type as `<directory_name>.<class_name>`.
@jianzsjianzs added generator Generator 💡feature This issue or pull request is related to a new feature. labels Aug 5, 2024
@changeset-bot

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b03a759

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
NameType
@plutolang/static-generatorPatch
@plutolang/cliPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jianzs
jianzs merged commit c45700e into pluto-lang:mainAug 5, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💡featureThis issue or pull request is related to a new feature.generatorGenerator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@jianzs