A Lerna mono repo which contains:
- object-json-path - Using a small subset of JSONpath features, object-json-path gets or sets a value on a javascript object.
- cookie-obj - Converts the Http cookie format (document.cookie) to a javascript object: the cookie name becomes the object property name.
Development requirements:
- Node + Yarn
# init all the projects
yarn
# continuously run tests
yarn test:watch
# run tests
yarn test
# build javascript library from typescript library
yarn build
# continuously build javascript library from typescript library
yarn build:watch
# publish all packages that have changed to npmjs.com
yarn publish:all# verify test run
yarn test:integration
# verify build works
yarn build
# make sure everything is commented, checked in and pushed into git
# TODO: Document code review process
# publish all packages that have changed
# you will need to have setup the account with npmjs.com
yarn publish:all
# enter the one-time password generated using
# select correct version bumpyarn lerna:create {package-name}
# Example yarn lerna:create wp-contextcd ./packages/{package-name}
yarn lerna add {package-name-linking-to}
# example
cd ./package/wp-context
yarn lerna add object-json-path- Add documentation on how to run tests across all packages.