Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Zustand v4 is a global state management solution.

Development setup

Repository settings

Pre-release FOLIO modules are published to our folioci package repository, apart from publicly available npm . To install pre-release dependencies, you will need to configure your package manner to install @folio-scoped packages from the folioci repository by executing this in a command prompt:

...

  1. Configure yarn to point to the dev repository: $ yarn config set @folio:registry https://repository.folio.org/repository/npm-folioci/

Dev Workspace

...

  1. Create a simple yarn workspace.

...

  1. Clone a platform as well as

...

Code Block
{
  "private": true,
  "workspaces": [
    "*"
  ],
  "dependencies": {
    "yarn": "^1.22.17"
  }
}

Set Okapi URL

Typescript

Linting

...

  1. your ui-module code into the workspace.

  2. Create a local copy of stripes.config.js - rename it to stripes.config.local.js, for example

  3. Add your ui module to the platform’s package.json and stripes.config.local.js

  4. Set the okapi URL in stripes.config.local.js.

  5. In the platform directory, run your project with yarn stripes serve stripes.config.local.js

Navigation/Routing

Settings

...