0.0.1 • Published 7 years ago

jetconf v0.0.1

Weekly downloads
2
License
GPL-3.0
Repository
gitlab
Last release
7 years ago

Jetconf.js

JavaScript interface for Jetconf.

Installation & basic usage

$ npm install --save jetconf
import Jetconf from 'jetconf';

const jc = new Jetconf('https://backend-url');

API

Jetconf

Interface to the Jetconf backend.

Parameters

  • backendUrl Jetconf backend URL, including protocol

Examples

const jc = new Jetconf('http://localhost:5000/')

Development

$ git clone https://gitlab.labs.nic.cz/jetconf/jetconf.js && cd jetconf.js
$ npm install

Testing

$ npm test

Set your options in test-config.js. HTTP calls are mocked by default, if you want to use a real backend, set it's URL in the config file and enable it's use:

const config = {
  backendUrl: 'https://url:port/',
  useRealBackend: true,
  …

Generating a test coverage report:

$ npm run coverage

Reports are placed into ./coverage directory and a HTML version should open in your default browser when finished.

Building

$ npm run build

Build output is placed to ./dist directory.