Skip to content

fix: template issues - #44

Merged
ipetinate merged 2 commits into
mainfrom
fix/templates
May 6, 2024
Merged

ipetinate merged 2 commits into
mainfrom
fix/templates

Conversation

@ipetinate

@ipetinate ipetinate commented May 6, 2024 •

Copy link
Copy Markdown
Owner

Clingon CLI logo

Clingon Empire | Official Pull Request

Fill in the fields appropriately so that empire reviewers can validate your work.


Important

Do not publish using local npm, with each PR the Release CI pipeline is executed, ensuring version control, publication and creation of the release and changelog.

Warning

Don't forget to put the correct label before creating the PR, so that auto does not create canaries for code that it doesn't need (docs, internal, etc.) and versioning correctly for the code that needs to be published. To learn about labels, check the following documentation: Auto Release.


Description

  • Fix template keyword to react component props, which resulting on wrong replacement on generate
  • Change regex to remove file extension and remove random "x" char add on end of resource path replacement
  • Move replacement function to an exported function inside

Requirements

I did:

  • Unit tests
  • Code formatting
  • Documentation with JSDocs
  • (Optional) Documentation with Markdown
  • Documentation on github.com/ipetinate/clingon-dot-dev
  • Local Tests
  • I tested the canary release
  • I marked the Issue referring to the code (if you didn't create the branch from the issue)

Preview

  • Local Test
Screencast.from.2024-05-06.08-45-35.webm
  • Canary Release test via npx
Screencast.from.2024-05-06.09-00-00.webm

Canary Release

πŸ“¦ Published PR as canary version: 0.8.2--canary.44.430dc0b.0

✨ Test out this PR locally via:

npm install clingon@0.8.2--canary.44.430dc0b.0
# or 
yarn add clingon@0.8.2--canary.44.430dc0b.0

@ipetinate ipetinate added bug Something isn't working patch labels May 6, 2024
@ipetinate ipetinate self-assigned this May 6, 2024
@ipetinate
ipetinate merged commit 85ef430 into main May 6, 2024
@ipetinate
ipetinate deleted the fix/templates branch May 6, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant