Code Monkey home page Code Monkey logo

sitecore-itemizer's Introduction

What is it?

A couple of powershell scripts and a gulpfile.

What does it do?

It parses .item files, grabs fields (blob in this case, but can be extended), and generates tangible content items from those fields.

Example: /sitecore/assets/css_asset.item -> /sitecore/assets/css_asset.css

It also does the inverse, when a change is made to the content item, it updates the associated .item file (right now it creates another version of the field in the item).

Example: /sitecore/assets/css_asset.css-> /sitecore/assets/css_asset.item

It only will update the associated files if there has been a change detected and the field content does not match (so you won't get stuck in an infinite update loop)

What do I need it for?

The first use case I thought for this was SXA, or the local development of themes for SXA, to help aid the development workflow around assets that will exist in Sitecore itself (css/js etc). I also figure it could be used outside of that, anywhere where you have assets stored in the file system that you will eventually want in Sitecore (media library for example).

How do I use it

Should be as easy as:

  1. Clone, download, whatever, just get these files into your project

  2. Update the paths.themeSrc and paths.itemSrc variables in the gulpfile.js

  3. npm install to get the needed dependencies (yes this is assuming you have node installed on your local machine)

  4. gulp default to start the gulp watchers (yellow is a change to an asset, blue is a change to an item)

sitecore-itemizer's People

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.