In this repo you'll find shared libraries for the SOLID B2B Showcase. You can use the libraries in your own project by installing them from npmjs.
- @datev-research/mandat-shared-components:
Vue Components
- @datev-research/mandat-shared-composables:
Vue Composables
- @datev-research/mandat-shared-solid-interop:
SOLID interop helper functions
- @datev-research/mandat-shared-solid-requests:
SOLID request helper functions
- @datev-research/mandat-shared-solid-oidc:
SOLID OIDC helper functions
- @datev-research/mandat-shared-theme:
Theme for Showcase Apps
- @datev-research/mandat-shared-utils:
Common Utility Functions
Run e.g. npm i @datev-research/mandat-shared-components
to install a package. Keep in mind that the used VueJS must match the version of the library!
If you make changes to the library you need to publish these changes to the npm-registry. Use the command npm run publish
.
Each library defines its own indepenent version. So before publishing any package, you need to bump up the version in the corresponding librarys package.json
. Versioning should always follow the SemVer pattern.
Sample:
# bump version using command npm version
npm version patch -w @datev-research/mandat-shared-composables
# ensure a clean git working tree
git commit -a -m "chore: bump version of composables"
# lerna detects updated package automatically
npm run publish
Go to Solid-B2B-showcase-libs
- Ordner unter
/libs
anlegen package.json
anlegen (odernpm init
aufrufen) 2. Name gem. Format@datev-research/NAME_DER_LIB
tsconfig.json
anlegen 3. an andere Libs orientieren.index.ts
anlegen (zur Steuerung, was exportiert wird)- Build Skripte einfügen, sodass ein "dist" Folder erstellt und gepublished werden kann.