Module.
npm install @dizmo/functions-viewer --save
import '@dizmo/functions-viewer';
...
npm run clean
npm run build
npm run -- build --no-lint --no-clean
npm run -- build --prepack
npm run -- build --prepack --no-minify
npm run lint
npm run -- lint --fix
npm run test
npm run -- test --no-lint --no-clean --no-build
npm run cover
npm run -- cover --no-lint --no-clean --no-build
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
npm run docs
npm publish
npm publish --access=public
© 2021 Hasan Karahan