KA-Huis / space-management-frontends

Frontend files for the space management application
0 stars 1 forks source link

Setup custom dist build for importing it #36

Closed cyrildewit closed 2 years ago

cyrildewit commented 2 years ago

Description

This project is currently responsible for two things. 1) Acting as a React.js application. 2) Acting as a React.js component library. This is fine for now, so @Prupke @joeyvonck can work on the components without having to jump to a complex alternative.

The application uses the create-react-app package to build and run the React.js app. We also need to create a build of only the components, which we can use in other projects.

I saw that Rollup (alternative to Webpack) is extremely easy and powerful to setup.

Acceptance criteria

cyrildewit commented 2 years ago

https://dev.to/alexeagleson/how-to-create-and-publish-a-react-component-library-2oe

cyrildewit commented 2 years ago

I have managed to publish the package. See https://github.com/KA-Huis/space-management-frontends/packages/1461039

Now I'm trying to install it within the docker container of the core application. But that's out of scope of this ticket.