This repo contains the code shared between Akropolis web services.
- run
yarn
to install deps. - run
yarn build
to build packages .
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 exampleyarn link @akropolis-web/components @akropolis-web/styles
. - use
"preserveSymlinks": true
intsconfig.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