noti-fire-js

0.0.1 • Public • Published

Noti-fire

A simple notification library for managing technical debt.

The cheesey sales pitch

Are you tired of this:

var library = require('library');

library.configure({
    property: true, // Have to pass this property for "function" to work see https://github.com/org/repo/issues/123
})

var result = library.function();

Does this ever happen to you:

var library = require('library');

// Won't need to use this once this lands https://github.com/org/repo/issues/321
library.function();

Ever been told 'we will look into fixing it later' and then never got round to it?

Then you need Noti-fire!

Functionality

Notifire provides a simple interface that processes comments and fires notifications once the conditions are met (see what I did there?). Noti-fire can then be run during a build and will fail if there are any resolveable issues within your code. A Noti-fire notification is configured using comments:

// noti-fire NOTIFIER_NAME [PARAMS]

Noti-fire then scans all code files for these notification, checks to see weather any of the conditions have been met to resolve this issue and fails if this is the case. There are currently 3 build in notifires:

Date

Review this code once a specific date has passed:

// Needs reviewing
// noti-fire DATE 11/11/3011
const hackyFunction = function() {
    // Some terrible code here
} 

Once the date has passed notifire will then start failing, letting you know that this code needs to be addressed.

Github

Review this code when a specific Github issue is resolved:

// Once [FEATURE] lands we won't need this anymore
// noti-fire GITHUB ISSUE [ORG] [REPO] [NUMBER]
const hackyFunction = function() {
    // Some terrible code here
} 

Once this issue is closed notifire will then start failing, letting you know that this code needs to be addressed.

Jira

Review this code when a specific Jira issue is at a given state:

// Once the middleware team implement [FEATURE] we won't need this
// noti-fire JIRA [NUMBER] [STATUS]
const hackyFunction = function() {
    // Some terrible code here
} 

Once the Jira story is at the status specified noti-fire will start failing, letting you know that this code needs to be addressed.

Readme

Keywords

Package Sidebar

Install

npm i noti-fire-js

Weekly Downloads

2

Version

0.0.1

License

ISC

Unpacked Size

23.7 kB

Total Files

19

Last publish

Collaborators

  • dexturr