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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

abcece5 · Jun 7, 2023
Dec 30, 2021
Jun 7, 2023
Oct 20, 2021
Aug 11, 2020
Apr 1, 2021
Aug 7, 2020
Aug 7, 2020
Aug 7, 2020
Aug 7, 2020
Oct 20, 2021
Sep 15, 2020
Aug 7, 2020
Aug 7, 2020
Jun 1, 2022
Mar 26, 2021
Mar 26, 2021
Mar 26, 2021
Jun 1, 2022

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