0.1.0 • Published 6 years ago

@dx-samples/text-and-image-component v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

text-and-image-component

Build Status

Sample project for a component library that contains a WCH layout.

Note this project illustrates a minimal bundle, it is not a convenient baseline for developing modules. Use the Template for Component Modules as a baseline, instead.

Changes

CHANGELOG

Usage

This library is meant to be used in an Angular based application.

Installation

From the command line run

npm install --save @dx-samples/text-and-image-component

Add the module to the imports of your application or feature module:

import { TextAndImageModule } from '@dx-samples/text-and-image-component';

@NgModule({
  imports: [
    TextAndImageModule
  ])
export class AppModule {
}

Deploy the application and WCH artifacts

The library bundles the WCH content types, layouts and layout mappings. Deploy these artifacts to WCH, e.g. by using the following command of the CLI:

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.

References