# @dac-software/offer-state

> This is simple redux app with offer state for components using common state. Library uses redux and typescript. Developing bundler is webpack.

Latest version **1.0.8** (published 2020-08-28) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install @dac-software/offer-state
pnpm add @dac-software/offer-state
yarn add @dac-software/offer-state
bun add @dac-software/offer-state
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2020-08-28 |
| First published | 2020-03-23 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 1 |
| Unpacked size | 14.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dac-software |

## Links

- npm: https://www.npmjs.com/package/@dac-software/offer-state
- npm.io page: https://npm.io/package/@dac-software/offer-state

## Dependencies (1)

- [redux](https://npm.io/package/redux.md) ^4.0.4

## Recent versions

- 1.0.8 (latest) — 2020-08-28
- 1.0.8-QFR-414-remove-grammar-errors-and-missin.0 — 2020-08-27
- 1.0.7 — 2020-07-15
- 1.0.5 — 2020-07-10
- 1.0.4-QFR-118-wrong-firstpayment-value-for-lld-release.1 — 2020-07-10
- 1.0.4 — 2020-07-09
- 1.0.4-QFR-118-wrong-firstpayment-value-for-lld-release.0 — 2020-07-08
- 1.0.3 — 2020-06-26
- 1.0.2 — 2020-06-25
- 1.0.0 — 2020-06-25
- 1.0.0-mvp-release.0 — 2020-04-22
- 1.0.0-Q2-1860-simple-contact-forms-release.0 — 2020-04-20
- 1.0.0-Q2-1862-insuranes-on-the-offer-page-release.8 — 2020-04-17
- 1.0.0-Q2-1862-insuranes-on-the-offer-page-release.7 — 2020-04-16
- 1.0.0-Q2-1862-insuranes-on-the-offer-page-release.6 — 2020-04-16
- … 10 more at https://npm.io/package/@dac-software/offer-state/versions

## README

#Offer state

This is simple redux app with offer state for components using common state. Library uses redux and typescript.
Developing bundler is webpack.

Build production build made as simple tsc compilation with asset files copies provided

##Requirements - nodejs v10 + - npm v6.9.0 +

##Installation: Installing dependencies

For properly installing depedencies you need to prepare whole repository **from its ROOT directory**, calling lerna commands

For preparing needed devDepedencies on top level

```bash
npm install
```

Installing dependencies in each package

```bash
lerna bootstrap
```

###Build process

Build task builds two types of library entrypoints : 

- "ecma script module" - destined for further bundler processing, it is resolved through simply typescript compiling in package.json statement 

    ```bash
    tsc && copyfiles "./lib/**/*.!(tsx|ts|d.ts|html)" "dist/esm" -u 1
    ```

##Development

Be sure, that all "file" linked depedencies, has their dist directories, if not - 
call commands from repository **ROOT directory**

```bash
lerna bootstrap
lerna run build
````

Running dev mode through bundler in other project. Project should be linked by npm.

```bash
lerna run build:dev --scope @dac-software/offer-state
```
 
##Running tests

Allowed only from root directory

```bash
npm run test
```

####Codestyle

We are in consonance with standardjs.
Call commands from repository **ROOT directory**

Validation codestyle:

```bash
lerna run codestyle-check-typescript
```

Automatic fix:

```bash
lerna exec npm run codestyle-typescript-fix
```

##Compilation summary
| |```lerna run build:dev``` (imported as esm in higher bundler) | ```lerna run build``` (production build)
|---|---|---|
|key dist files|none|dist/esm/offer-state.js|dist/esm/offer-state.js, dist/offer-state.js, dist/offer-state.css
|files extraction|no|yes|no (copied)

---
_Source: https://npm.io/package/@dac-software/offer-state · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
