@dizmo/viewercore-base.js
ViewerCoreBase
interface declarations, containing only those functions required by @dizmo/dizmo.js
. Custom extensions for ViewerCore[Mock]
, ViewerCore[Desk]
and ViewerCore[Web]
should be declared (and implemented) in the corresponding repositories by extending this interface!
Usage
Installation
npm install git@git.dizmo.com:dizmo/ViewerCoreBase.git#semver:2 --save-dev
Import
import { ViewerCoreBase } from '@dizmo/viewercore-base.js';
Example(s)
interface ViewerCore extends ViewerCoreBase { ... }
Development
Clean
npm run clean
Build
npm run build
without linting and cleaning:
npm run -- build --no-lint --no-clean
with UMD bundling (incl. minimization):
npm run -- build --prepack
with UMD bundling (excl. minimization):
npm run -- build --prepack --no-minify
Lint
npm run lint
with auto-fixing:
npm run -- lint --fix
Test
npm run test
without linting, cleaning and (re-)building:
npm run -- test --no-lint --no-clean --no-build
Cover
npm run cover
without linting, cleaning and (re-)building:
npm run -- cover --no-lint --no-clean --no-build
Documentation
npm run docs
Publication
npm publish
initially (if public):
npm publish --access=public
Copyright
© dizmo AG, Switzerland