Skip to content

Packages for Akropolis frontend with basic components, primitives, and styles

License

Notifications You must be signed in to change notification settings

kaonone/akropolis-web

Repository files navigation

Akropolis web Commitizen friendly

Contributing

This repo contains the code shared between Akropolis web services.

Installation

  • run yarn to install deps.
  • run yarn build to build packages .

Components

Components are placed in the components package. To add a component you'll need:

  • place it and its styles inside components/src
  • export from components/src/index.ts

After adding the component you'll need run yarn build to re-build the package and make new components available for end-users.

If you want to test new components inside your project locally you'll need:

  • run yarn link-all inside akropolis-web to add symlinks to them
  • add symlinks to the packages in your project through yarn link {package-name here}, for example yarn link @akropolis-web/components @akropolis-web/styles.
  • use "preserveSymlinks": true in tsconfig.js in your project
  • use resolve.symlinks: false in your webpack config
  • build your project

After testing locally:

  • remove symlinks from your project using yarn unlink
  • run yarn install --force