# @dac-software/analytics-extensions

> This library share utilities to collect stats and integrate external analytics tools

Latest version **1.0.0** (published 2020-06-24) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install @dac-software/analytics-extensions
pnpm add @dac-software/analytics-extensions
yarn add @dac-software/analytics-extensions
bun add @dac-software/analytics-extensions
```

## 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.0 |
| Published | 2020-06-24 |
| First published | 2020-04-25 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 1 |
| Unpacked size | 21.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dac-software |

## Links

- npm: https://www.npmjs.com/package/@dac-software/analytics-extensions
- npm.io page: https://npm.io/package/@dac-software/analytics-extensions

## Dependencies (1)

- [light-event-bus](https://npm.io/package/light-event-bus.md) ^1.0.1

## Recent versions

- 1.0.0 (latest) — 2020-06-24
- 1.0.0-mvp-release.1 — 2020-05-26
- 1.0.0-Q2-2753-data-layer-for-conversions---con-release.4 — 2020-05-20
- 1.0.0-Q2-2753-data-layer-for-conversions---con-release.3 — 2020-05-14
- 1.0.0-Q2-2753-data-layer-for-conversions---con-release.2 — 2020-05-14
- 1.0.0-Q2-2753-data-layer-for-conversions---con-release.1 — 2020-05-14
- 1.0.0-Q2-2753-data-layer-for-conversions---con-release.0 — 2020-05-12
- 1.0.0-mvp-release.0 — 2020-04-30
- 1.0.0-Q2-1860-simple-contact-forms-release.2 — 2020-04-30
- 1.0.0-Q2-1860-simple-contact-forms-release.1 — 2020-04-27
- 1.0.0-Q2-1860-simple-contact-forms-release.0 — 2020-04-27
- 1.0.0-dev — 2020-04-25

## README

# Analytics extensions

This library share utilities to collect stats and integrate external analytics tools

## Installation:

Installing dependencies
```bash
npm install
```

Build production library files
```bash
npm run build
```

\* Build task build one type of library entrypoints (no web case) :
* "ecma script module" - destined for further bundler processing, it is resolved through simply typescript compiling in package.json statement
    ```bash
    tsc -p tsconfig-prod.json && copyfiles "./lib/**/*.!(tsx|ts|d.ts|html)" "dist/esm" -u 1
    ```

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

##Development

Running dev server in standalone mode
```bash
npm run start
```

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

```bash
npm run build:dev
```
\* build dev emmits files into dist/esm/offers-gallery without CSS / files compilation, it is determined by webpack condition on compilation mode

Running tests
```bash
npm run test
```

####Codestyle

We are in consonance with **standardjs**.

Validation codestyle:

```bash
npm run codestyle-check-typescript
```

Automatic fix:

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


##Compilation summary
| |```npm run build:dev``` (imported as esm in higher bundler) | ```npm 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)

## NPM publishing:

1) Optional update typings in Loader.d.ts file
2) Increase version in package.json
3) Npm login with proper username and password
    ```bash
    npm login
    ```
4) Npm publish (command will trigger prepare npm method which should build files to dist directory)
    ```bash
    npm publish --access=public
    ```

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