1.4.1 • Published 2 years ago

iqb-dev-components v1.4.1

Weekly downloads
30
License
MIT
Repository
github
Last release
2 years ago

npm License: MIT GitHub package.json version

IQB Dev Components

This is a library of components for developing WebApp Projects of the IQB.

Components

DistPacker

The DistPacker can be used as a command line tool and needs no installation, other than NodeJS or any other Javascript Execution Engine.

Usage

node distpacker.js <target-dir> <target-filename>

When used as a depency of a npm project, you can use the path to the node_modules folder.

node node_modules/iqb-dev-components/src/distpacker.js dist/%npm_package_name

Message Recorder

This is an EventListener on the window object on web pages. It records all messages, which can be retrieved wholesome or by type.

Installation

npm install --save-dev iqb-dev-components

Usage

Most importantyl it needs a reference to your Selenium webdriver as a parameter. When using protractor you can simply pass the briwser object. For plain Javascript it needs to be built manually.

// import
const MessageRecorder = require('iqb-dev-components').MessageRecorder;
// in Typescript you may also use:
// import { MessageRecorder } from 'iqb-dev-components';

// start recording
MessageRecorder.recordMessages(driver);

// retrieve all messageof type (type can be omitted for any type)
MessageRecorder.getLastMessage(driver, 'type');
1.4.1

2 years ago

1.4.0

2 years ago

1.3.12

3 years ago

1.3.11

3 years ago

1.3.10

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.1.0

3 years ago

1.0.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago