@balena/jellyfish-plugin-front
TypeScript icon, indicating that this package has built-in type declarations

6.9.1 • Public • Published

Jellyfish Front Plugin

Provides a sync integration for Front.

Usage

Below is an example how to use this library:

import { frontPlugin } from '@balena/jellyfish-plugin-front';
import { PluginManager } from '@balena/jellyfish-worker';

// Load contracts from this plugin
const pluginManager = new PluginManager([frontPlugin()]);
const contracts = pluginManager.getCards();
console.dir(contracts);

Documentation

Visit the website for complete documentation: https://product-os.github.io/jellyfish-plugin-front

Testing

Unit tests can be easily run with the command npm test.

You can run integration tests locally against Postgres and Redis instances running in docker-compose:

git submodule update --init
git secret reveal -f
npm run compose
export INTEGRATION_FRONT_TOKEN=$(cat .balena/secrets/integration_front_token)
export INTEGRATION_INTERCOM_TOKEN=$(cat .balena/secrets/integration_intercom_token)
REDIS_HOST=localhost POSTGRES_HOST=localhost npm run test:integration

You can also access these Postgres and Redis instances:

PGPASSWORD=docker psql -hlocalhost -Udocker
redis-cli -h localhost

Readme

Keywords

none

Package Sidebar

Install

npm i @balena/jellyfish-plugin-front

Weekly Downloads

8

Version

6.9.1

License

AGPL-3.0

Unpacked Size

170 kB

Total Files

39

Last publish

Collaborators

  • dfunckt
  • page
  • balena.io