Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

gallofeliz/js-libs

Repository files navigation

js-libs

warning version < 1 <=> At any moment the contracts change

Operations

  • ./test packageName
  • ./build packageName
  • ./deploy packageName1 packageName2 ...

Guidelines

  • Buildable components, runnable (new Process + run()) + 1 hight level function to build and run (runProcess(), etc)
    • runnable once => run()
    • Start/Stoppable => start() stop()
  • Accept AbortSignal in run/start method (and in hight level function)
  • No more default export, always named
  • Objects configs instead of arguments (ex runProcess({...}) instead of runProcess('x', [], true, false))
  • Logs stats like (taskStats { success: 1, ended: 1 })

Todo

New guilelines :

  • Componants only logs with debug level, reserving others levels for application
  • Componants emit events to watch activity
  • Migrate to ESM ?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published