GithubHelp home page GithubHelp logo

Comments (2)

kamsar avatar kamsar commented on June 19, 2024

You are not missing anything; the currently released version of Unicorn does not provide any way to hook the event handlers to a non-default preset.

However, if you take a peep at Unicorn 2 (presently alpha-quality) it's resolved there:

In Unicorn 2 you install a data provider instead of event handlers (this gets around EventDisablers). The core data provider has a constructor that takes a params array of UnicornDataProvider:
https://github.com/kamsar/Unicorn/blob/extensibility/src/Unicorn/UnicornSqlServerDataProvider.cs

The UnicornDataProvider is a unit of serialization - e.g. one preset. So you can hitch 1...n presets into a single UnicornSqlServerDataProvider instance. And by 'presets' I mean IPredicate implementations, where SerializationPresetPredicate is merely one of the possible implementations that can be dreamed up :)
https://github.com/kamsar/Unicorn/blob/extensibility/src/Unicorn/UnicornDataProvider.cs

from unicorn.

studert avatar studert commented on June 19, 2024

Thank you very much for your answer. I am in the process of writing a module for Sitecore and I am trying out how Unicorn can support me in the process. What I would like to do is having multiple presets serializing to different folders. This way I could specify a preset only defining the items relevant to the module and writing them to a seperate folder. From there, the build server could pick them up and automatically pack them into a Sitecore NuGet Package.

So far, it's just an idea. But I'm really looking forward to see what's coming with Unicorn 2 :)

from unicorn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.