Skip to content

takenet/blip-components

Repository files navigation

npm

(DEPRECATED) blip-components

This library is deprecated. No new features will be added. The repository is maintained solely for security patches and critical bug fixes in applications that still depend on it. New projects should not use this library.

A library of shared UI components built for AngularJS (1.x) applications used across the BLiP portal. It wraps and extends components from blip-toolkit and blip-ds in Angular-compatible wrappers.

Then, in the project that consumes this library:

npm link blip-components

Re-run npm run build after any change to this library.

Usage

Install via npm:

npm install blip-components

Import the full module in your AngularJS application:

import * as blipComponents from 'blip-components';
import 'blip-components/dist/blip-components.css';

const componentNames = components =>
    Object.keys(components).map(c => components[c]);

const app = angular
    .module('myApp', [
        ...componentNames(blipComponents)
    ]);

Or import individual components:

import { BlipInputComponent } from 'blip-components';
import 'blip-components/dist/blip-components.css';

const app = angular
    .module('myApp', [
        BlipInputComponent
    ]);

Remember to import the CSS file to style your components.

Building

Clone the repository and, from the root directory, run:

npm start

This starts a development server on port 3000 with file watching enabled.

To produce a production build:

npm run build

Committing

This project uses Commitizen and conventional commits. Run:

npm run commit

This guides you through the commit message format interactively.

To report a bug or security issue, please open a GitHub issue.

License

blip-components is under the ISC license.

About

Angularjs components used in blip.ai

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors