Skip to main content
Version: Next

Studio UI Core Development

How to install

  1. Navigate to the plugin directory.
  2. Change to the assets directory cd ./assets
  3. Install dependencies npm install

How to build

Create a new build by running:

npm run build

How to run the dev-server (HMR/Live reloading)

Use the following command to run the dev-server:

npm run dev-server

Now your dev-server should be running (the dev server started on the same URL, but it’s using Webpack HMR).
You can access it under your normal project domain:

{your-domain}/pimcore-studio

Storybook

Pimcore studio is using Storybook for documentation of React components.

Commands

npm run storybook // run storybook with live reloading
npm run build-storybook // for building storybook for a static hosting

Docker environment

To use Storybook in your local environment ensure that you open up port 6006

node:
ports:
- "6006:6006"
...

Nginx configuration

You should take care of the following configuration:

server {
location ^~ /storybook/ {
proxy_pass http://node:6006/;
}

location ^~ /__webpack_hmr {
proxy_pass http://node:6006/__webpack_hmr;
}
}

Now ensure that Storybook is running via npm run storybook. Finally, you can access it under {your-domain/storybook}