Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Bot the pain away!

Bot the pain away!

Maintaining a JavaScript software project, be it open source or not, can be a ton of work.
There is the fun work of developing new features , fixing a bug or refactoring a messy chunk of code but those are always followed by chores like releasing new versions or updating some dependencies. But worry not, there is help out there. I’ll show you the benefits of semantic versioning and some cool bots,
such as Greenkeeper and semantic-release, that will do these chores for you!

anderspree

May 26, 2018
Tweet

More Decks by anderspree

Other Decks in Technology

Transcript

  1. !

  2. ! SMALLER MODULES ! ▸ easier to document ▸ easier

    to test ▸ easier to contribute to
  3. Wait a minute! Did we.. ▸ create a git tag?

    ▸ git push --tags? ▸ pick the right version number ▸ commit the package.json? ▸ write the change logs?
  4. ! "

  5. !

  6. SEMANTIC VERSIONING MAJOR.MINOR.PATCH 1. Major: ! Incompatible API Changes 2.

    Minor: ✨ New Functionality 3. Patch: # Bug Fixes
  7. ✨ SEMANTIC RELEASE ✨ ▸ waits for the tests to

    succed on CI ▸ calculates version based on the commit message ▸ - creates the git tag ▸ publishes package to npm ▸ creates the GitHub release & changelog
  8. DEPENDENCY MANAGMENT $ npm update Updating everything to the latest

    version at once ... probably breaks everything
  9. ! GREENKEEPER ! ▸ Open Source ▸ free for Open

    Source ▸ Plans for private Repositories & Github Enterprise ▸ 14 Days free trial on Github Marketplace
  10. !