@tef-novum/webview-bridge

v3.10.1
JavaScript library to access to native functionality. Requires a webview with a postMessage bridge.

ci

yarn prettier-check && yarn lint && yarn ts-check && yarn test --ci && yarn build

lint

eslint --report-unused-disable-directives .

test

jest --coverage

build

rimraf dist && rollup -c && uglifyjs --compress --mangle -o dist/webview-bridge-umd.min.js dist/webview-bridge-umd.js && uglifyjs --compress --mangle -o dist/webview-bridge-iife.min.js dist/webview-bridge-iife.js && yarn generate-flow-types

fix-code

yarn lint -- --fix && yarn prettier -- --write

ts-check

tsc --project tsconfig.json --noEmit

prepublishOnly

yarn ci

prettier-check

prettier --check .

generate-flow-types

ts-to-flow dist flow-defs && mv dist/index.js.flow dist/webview-bridge-cjs.js.flow
npm i @tef-novum/[email protected]

Metadata

Downloads