# @dx-samples/text-and-image-component

> Sample library for a very simple text and image component.

Latest version **0.1.0** (published 2018-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dx-samples/text-and-image-component
pnpm add @dx-samples/text-and-image-component
yarn add @dx-samples/text-and-image-component
bun add @dx-samples/text-and-image-component
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-04-17 |
| First published | 2018-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 7.0 |
| Dependencies | 3 |
| Unpacked size | 105 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Carsten Leue |
| Maintainers | carstenleue, sterbling |

## Links

- npm: https://www.npmjs.com/package/@dx-samples/text-and-image-component
- Repository: https://github.ibm.com/DX-Samples/text-and-image-component
- Issues: https://github.ibm.com/DX-Samples/text-and-image-component/issues
- npm.io page: https://npm.io/package/@dx-samples/text-and-image-component

## Dependencies (3)

- [tslib](https://npm.io/package/tslib.md) ^1.7.1
- [ibm-wch-sdk-api](https://npm.io/package/ibm-wch-sdk-api.md) >= 5.0.269
- [ibm-wch-sdk-utils](https://npm.io/package/ibm-wch-sdk-utils.md) >= 5.0.269

## Recent versions

- 0.1.0 (latest) — 2018-04-17
- 0.2.0 (next) — 2018-04-23

## README

# text-and-image-component

![Build Status](https://travis.ibm.com/DX-Samples/text-and-image-component.svg?token=VB5Ysj6rx2eVqhEpqYh2&branch=master "Build Status")

Container project to bundle [WCH](https://www.ibm.com/products/watson-content-hub) data records and UI components as an [npm](http://npmjs.com/) module. Such a module can then be used as a dependency by single page application projects to populate a tenant with data.

## Changes

[CHANGELOG](./CHANGELOG.md)

## Usage

This library is meant to be used in an [Angular](https://angular.io/) based application.

### Deploy the application and WCH artifacts

The library bundles the [WCH](https://www.ibm.com/products/watson-content-hub) content types, layouts and layout mappings. Deploy these artifacts to WCH, e.g. by using the following command of the [CLI](https://www.npmjs.com/package/ibm-wch-sdk-cli):

```bash
ibm-wch-sdk-cli application push --data ./data/ --override --aggregated
```

The `--aggregated` flag makes sure to not only deploy the application data but also the bundled dependencies.

**Note:** In order to successfully execute the command make sure to meet me prerequisites mentioned in the documentation of the [CLI](https://www.npmjs.com/package/ibm-wch-sdk-cli).

---
_Source: https://npm.io/package/@dx-samples/text-and-image-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
