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

feat: change package template to use razor class library #12869

Closed
wants to merge 2 commits into from
Closed

feat: change package template to use razor class library #12869

wants to merge 2 commits into from

Conversation

Mantus667
Copy link
Contributor

Prerequisites

  • I have added steps to test this contribution in the description below

Description

  • Use a RCL as base for the umbraco package template.
  • Set v10.0.0 as default version for the package template

Usage of RCLs as base of Umbraco Packages is discussed in multiple occasions in the last month.
Most of the official Umbraco packages moved to be RCLs.
The most important part is the automatic handling of assets which was handled before with the custom build task.

In the last package team meeting we discussed to provide a PR to change the template.

Use a RCL as base for the umbraco package template.
Set v10.0.0 as default version for the package template
@github-actions
Copy link

Hi there @Mantus667, thank you for this contribution! 👍

While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:

  • It's clear what problem this is solving, there's a connected issue or a description of what the changes do and how to test them
  • The automated tests all pass (see "Checks" tab on this PR)
  • The level of security for this contribution is the same or improved
  • The level of performance for this contribution is the same or improved
  • Avoids creating breaking changes; note that behavioral changes might also be perceived as breaking
  • If this is a new feature, Umbraco HQ provided guidance on the implementation beforehand
  • 💡 The contribution looks original and the contributor is presumably allowed to share it

Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution.

If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

Moved folder from App_Plugins to wwwroot as files have to be located there
@abjerner
Copy link
Contributor

abjerner commented Aug 20, 2022

Probably a good idea, but a few things to consider:

@Mantus667
Copy link
Contributor Author

@abjerner

Yes indeed, there are things to consider. As you mentioned the package.manifest loading and svg loading.
We discussed this in our last package team meeting and are currently looking if we find (all) spots where changes would be required. There should be some more. Most part where the IFileProvider isn't used. @KevinJump knows some locations.

So it's an intentional draft PR.

@nul800sebastiaan nul800sebastiaan changed the base branch from v10/contrib to v11/contrib October 25, 2022 13:05
@nul800sebastiaan nul800sebastiaan changed the base branch from v11/contrib to contrib January 26, 2023 14:52
@nul800sebastiaan
Copy link
Member

Hey there @Mantus667 - are you still planning to work on this? I think we have an alternative now in https://github.com/LottePitcher/opinionated-package-starter (which is working towards RCLs as well).

Maybe it's a good time to rethink this one, not sure what the packages team is up to for this one at the moment.

@nul800sebastiaan
Copy link
Member

Just remembered Ronald might be working on something similar: #13776

@ronaldbarendse
Copy link
Contributor

Just remembered Ronald might be working on something similar: #13776

That PR adds a new umbracopackage-rcl template (instead of changing the existing one), so users can still use the latest umbracopackage template if they want to target v10 (that uses the build targets).

If you want to use RCLs with v10, the Opinionated Umbraco Package Starter Template shows how you can use IManifestFilter to accomplish this in PR LottePitcher/opinionated-package-starter#8, but I recommend sticking to the officially supported methods in the CMS 😄

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.

4 participants