Creating New Modules
Create a new module using lerna
cd ./bottlenose
yarn lerna create @bottlenose/my-new-moduleSetup the directory structure
cd packages/my-new-module
mkdir -p src/operators src/internals
touch src/index.js src/index.test.js src/operators/index.js src/operators/index.test.jssrc/
--creators/ # functions which produce an RxJS Observable (rather than an operator)
----index.js # exports all public creators
--internals/ # optional: internal functions and business logic
--operators/ # RxJS operators
----index.js # exports all public operators
--scripts/ # any scripts intended to be run from the command line
--index.js # exports all public functionsBuild cool stuff!
Last updated