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

[Vue] Use the app name as prefix value for templates #814

Merged
merged 3 commits into from
Sep 15, 2021

Conversation

addy-pathania
Copy link
Contributor

@addy-pathania addy-pathania commented Sep 15, 2021

When developing locally, multiple templates with the same name will conflict causing errors when using strongly typed GraphQL queries.
This feature adds a prefix to some files so that when jss create is run, the prefix is replaced with the appname, which will give each template a unique name in Sitecore when using jss deploy.

Description / Motivation

Added a prefix to pertinent files and filenames in the Vue sample app

Testing Details

Used JSS create to scaffold a new Vue app and deployed it to Sitecore along with the sample app - no conflicting template names = no errors!

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update (non-breaking change; modified files are limited to the /docs directory)

@vercel
Copy link

vercel bot commented Sep 15, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sitecore-jss/edge-e2e-styleguide/Cq5GnDtN96QJTvfCiR2ppJeiHj6i
✅ Preview: Failed

[Deployment for 0cf76e9 failed]

Copy link
Contributor

@CobyPear CobyPear left a comment

Choose a reason for hiding this comment

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

Looks good, just one change in the changelog

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Coby Sher <63015754+CobyPear@users.noreply.github.com>
@CobyPear CobyPear merged commit e4f3982 into dev Sep 15, 2021
@CobyPear CobyPear deleted the feature/498042-vue-prefix branch September 15, 2021 21:31
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.

2 participants