Skip to content

dizmoFun: library of functions (viewer [in]dependent)

License

Notifications You must be signed in to change notification settings

dizmo/functions-viewer

Repository files navigation

NPM version Build Status Coverage Status

@dizmo/functions-viewer

Module.

Usage

Installation

npm install @dizmo/functions-viewer --save

Import

import '@dizmo/functions-viewer';

Example(s)

...

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

Debugging

Connect @dizmo/functions-viewer to another project:

[@dizmo/functions-viewer] $ npm link # symlink global:@dizmo/functions-viewer
[a-project] $ npm link @dizmo/functions-viewer # symlink node-modules:@dizmo/functions-viewer
[a-project] $ head webpack.config.js # ensure @dizmo/functions-viewer in entry.main
entry: {
    main: [..., '@dizmo/functions-viewer', './source/index.js']
}

Disconnect @dizmo/functions-viewer from the project:

[a-project] $ npm unlink @dizmo/functions-viewer # delete local symlink
[@dizmo/functions-viewer] $ npm uninstall -g # delete global symlink

Documentation

npm run docs

Publication

npm publish

initially (if public):

npm publish --access=public

Copyright

© 2021 Hasan Karahan

Releases

No releases published

Packages

No packages published