1.7.2 • Published 1 year ago

@nuskin/solace-connector v1.7.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

solace-connector

Purpose

This project is used by the message-bridge as a library and allows the message bridge to send and consume messages from Solace.

Environment vars

This project uses the following environment variables:

NameDescriptionRequiredDefault ValueAccepted Values
NODE_ENVEnvironmentYesDEVDEV, TEST, PROD

Pre-requisites

  • Install Node.js version 16 or greater

Getting started

Initialize and start application

This project is used as a library in the message-bridge so once you build a new npm version of this project you must go into the message-bridge and upgrade the version there and then deploy/run that project.

## Project Structure
The folder structure of this app is explained below:

| Name | Description |
| ------------------------ | --------------------------------------------------------------------------------------------- |
| **\_\_mocks\_\_**        | Contains jest mocks                                                                           |
| **\_\_tests\_\_**        | Contains jest tests                                                                           |
| **config**                | Application configuration including environment-specific configs                                 |
| **src**                  | Contains source code                                                                          |
| **helpers**              | Contains code to do a test publish                                                                          |
| **src**/index.js         | Entry point to the application                                                                    |
| .gitignore               | List of files and directories for Git to ignore                                                |
| jest.config.js            | Configuration options for Jest                                                                 |
| .eslintrc                | Configuration options for ES Lint
| .prettierrc              | Configuration options for prettier                                                             |
| package.json             | Contains npm dependencies as well as build scripts                                            |
| .prettierignore          | List of files and directories for prettier to ignore                                           |
| cx.config                 | File needed for common pipeline to pass                                                       |
| yarn.lock                | Yarn state snapshot                                                                           |
| .gitlab-ci.yml           | CI pipeline configuration                                                                      |
| **node_modules**         | Contains package dependencies                                                                |

## Testing

### Running tests using yarn Scripts

yarn test

# ESLint
ESLint is a code linter that helps catch minor code quality and style issues.

## ESLint rules
All rules are configured through `.eslintrc`.

## Running ESLint
To run ESLint you can call the ESLint task.
```
yarn lint  // runs only ES lint
```
1.7.2

1 year ago

1.7.1

1 year ago

1.7.0

2 years ago

1.6.0-ngei-182.3

2 years ago

1.6.0

2 years ago

1.6.0-ngei-182.1

2 years ago

1.6.0-ngei-182.2

2 years ago

1.6.0-ngei-449.8

2 years ago

1.6.0-ngei-449.7

2 years ago

1.6.0-ngei-449.9

2 years ago

1.6.0-ngei-449.4

2 years ago

1.6.0-ngei-449.3

2 years ago

1.6.0-ngei-449.6

2 years ago

1.6.0-ngei-449.5

2 years ago

1.6.0-ngei-449.2

2 years ago

1.6.0-ngei-449.1

2 years ago

1.5.12

2 years ago

1.5.11

2 years ago

1.5.10

2 years ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago