# el-web

> Just Another React Js Components Library.

Latest version **0.1.7** (published 2018-10-29) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install el-web
pnpm add el-web
yarn add el-web
bun add el-web
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2018-10-29 |
| First published | 2018-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 196.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Medical Web Experts |
| Maintainers | mwe |

## Links

- npm: https://www.npmjs.com/package/el-web
- npm.io page: https://npm.io/package/el-web

## Dependencies (3)

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) ^0.1.3
- [@fortawesome/fontawesome-svg-core](https://npm.io/package/@fortawesome/fontawesome-svg-core.md) ^1.2.4
- [@fortawesome/free-solid-svg-icons](https://npm.io/package/@fortawesome/free-solid-svg-icons.md) ^5.3.1

## Recent versions

- 0.1.7 (latest) — 2018-10-29
- 0.1.6 — 2018-10-29
- 0.1.5 — 2018-10-26
- 0.1.4 — 2018-10-25
- 0.1.3 — 2018-10-24
- 0.1.2 — 2018-10-24
- 0.1.1 — 2018-10-24
- 0.1.0 — 2018-10-24

## README

<p align="center">
  <img src="https://www.medicalwebexperts.com/blog/content/uploads/2018/10/el-web.png">
</p>

# EL WEB

Just Another React Js Components Library.

# Getting Started

To use this library in your project, just install it using npm and the repository url.

```bash
$ npm install el-web
```

Then, import the components that you want to use:

```js
import { Title } from 'el-web';
```

# How to Contribute

## Clone this repository

```bash
$ git clone git@github.com:MedicalWebExperts/el-web.git
```

## Running the application with docker

### 1. Install Docker

- [Install Docker](https://docs.docker.com/engine/installation/) in your machine for your corresponding OS.
- Verify your installation. Run:

```bash
$ docker --version
Docker version 17.03.0-ce, build 60ccb22
```

### 2. Build the application

```bash
$ cd el-web/
$ docker-compose build
```

### 3. Running the application

```bash
$ docker-compose up
```

#### Running tests

When the application loads, it automatically runs the tests inside the container with the --watchAll flag. But, if for some reason you want to run them manually, you can use this command:

```bash
$ docker-compose run elweb npm test
```

To update the snapshots:

```bash
$ docker-compose run elweb npm test -- -u
```

To watch the test suite:

```bash
$ docker-compose run elweb npm run test:watch
```

#### Building the app to publish

```bash
$ docker-compose run elweb npm run build
```

## Running the application locally

### 1. Install the dependencies

```bash
$ npm install
```

### 2. Running Storybook

```bash
$ npm run storybook
```

This command will show a storybook instance at: [http://localhost:6006](http://localhost:6006).

### 3. Running Tests

```bash
$ npm test
```

To update the snapshots:

```bash
$ npm test -- -u
```

To watch the test suite:

```bash
$ npm run test:watch
```

### 4. Building the app to publish

```bash
$ npm run prepublish
```

or:

```bash
$ npm run build
```

## Structure of the Components Directory

### src/

All the components are placed under the src/ folder. If you want to create a new component use the following structure:

```
src/
├── index.js
├── MyComponent
│   └── __snapshots__
│       ├── index.js
│       ├── styles.js
│       └── MyComponent.test.js
```

## Storybook

This project has configured a [storybook](https://storybook.js.org/). If you run the application as discribed in [step 3](#3.-running-the-application), you will have an intereactive storybook and ready to use at: [http://localhost:6006](http://localhost:6006).

If you want to add an story to the storybook, you can add it in the stories/ folder at the root of this repository.

```js
import React from 'react';
import { storiesOf } from '@storybook/react';

import { MyComponent } from '../src';

storiesOf('MyComponent', module).add('default', () => <MyComponent />);
```

Checkout the storybook [documentation](https://storybook.js.org/basics/guide-react/) for more examples.

---
_Source: https://npm.io/package/el-web · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
