0.0.3 • Published 1 year ago

cactus-utils v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

cactus-utils

hero

Cactus Utilities monorepo


Table of contents

Packages

PackageDescription
@cactus-technologies/node-applicationHelper to manage PM2 App definitions and process states
@cactus-technologies/errorsErrors module for Cactus Servers and Applications
@cactus-technologies/loggerCustomized Pino Logger for Cactus projects
@cactus-technologies/slack-notifierSlack Notifications Manager
@cactus-technologies/api-requestRequest helper
@cactus-technologies/serverBasic Server for Cactus Webservices
@cactus-technologies/utilsUtility functions for node base apps
@cactus-technologies/uuidA set of Unique ID generators for JS apps

Getting started

First, ensure you have Node v10+ and yarn v1.0+ installed on your machine.

  • Lerna manages inter-package dependencies in this monorepo.
  • Builds are orchestrated via lerna run and NPM scripts.
  • Our documentation is generated from JSDoc comments, README.md, example.js files via CI.

Installation

git clone git@github.com:CactusTechnologies/cactus-utils.git cactus-utils
  cd cactus-utils
  npm install

Incorporating upstream changes

If you were previously in a working state and have just pulled new code from develop:

  • If there were package dependency changes, run yarn at the root.
    • This command is very quick if there are no new things to install.
  • Run yarn compile to get the latest built versions of the library packages in this repo.
    • This command is quicker than yarn verify since it doesn't run tests

Developing packages

Thanks for taking the time to care about the codebase! :tada: :confetti_ball: :+1:

  1. Create a new feature branch. We use a format like [initials]/[feature]: jp/refactor-api.
  2. Write some code. :hammer:
  3. Ensure your code is tested??? and linted.
    • Add unit tests as necessary when fixing bugs or adding features; run them with yarn test in the relevant packages/ directory. (Wishfull thinking for the moment.)
    • Linting is best handled by your editor for real-time feedback.
    • If you use VS Code the project will recommend you to install the appropriate extentions.
    • Most lint errors can often be automatically fixed. Run lint fixes with yarn fix.
  4. Submit a Pull Request.
  5. Team members will review your code and merge it after approvals.
    • You may be asked to make modifications to code style or to fix bugs you may have not noticed.
    • Do not amend commits and push --force as they break the PR history. Please add more commits.
  6. Hooray, you helped! :tophat:

Maintainers

License

MIT © Cactus Technologies LLC

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago