Skip to content

Developer utilities for working with xp components

License

Notifications You must be signed in to change notification settings

ItemConsulting/xp-part-finder

Repository files navigation

Part Finder

When you are working on an XP-part you want to know where on your site it's being used, so that you can test it or update the configuration.

This application gives insight into which content uses which of your components.

Part finder icon

Setup

Install npm-dependencies

npm install

To prepare the Storybook-environment you need to create a .env file. The easiest way is to copy over the existing .env_example file.

cp .env_example .env

Important

Make sure STORYBOOK_SERVER_URL in .env matches a valid service path in your local XP setup.

Running storybook

To make development easier and quicker, pages, layouts, parts and Freemarker-macros have Storybook-stories that let us get immediate feedback when developing.

To be able to run Storybook locally you need to install xp-storybook in your local sandbox. When it is installed, you can run storybook locally with the following command:

npm run storybook

Building

To build the project, run the following command

enonic project build

You will find the jar-file at ./build/libs/item.jar

Deploying locally

To deploy to a local sandbox, run the following command

enonic project deploy

Deploy to Jitpack

Go to the Jitpack page for xp-part-finder to deploy from Github.

About

Developer utilities for working with xp components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages