nhs-core-utils
v0.0.13-RELEASE
Published
Core functionality for NHS projects.
Readme
nhs-core-utils
Core common functionality for NHS projects.
npm i nhs-core-utils
Rollbar
Requires process.env.ROLLBAR_ACCESS_TOKEN and process.env.ROLLBAR_ENV environment variables.
Usage:
import { loggerWithDefaults } from 'nhs-core-utils'
...
const logger = loggerWithDefaults()
...
logger.info('Example function executed.')Gulp
Requires gulp, gulp-shell, and [email protected].
Usage in your gulpfile.ts:
export * from 'nhs-core-utils'Commands
gulp compilewill run typescript compilationtscand typescript Azure function creationtsFunc. (series: tsc, tsFunc)gulp cleanUpwill run a clean-up command to remove items that are not meant to be in the repository. Should be run before committing. (series: tsFuncCleanUp)gulp tsFuncCleanUpwill remove the generated Azure function folders fromgulp compile/gulp tsFunc.gulp coveragewill runnyc.gulp testwill rungulp coverage.gulp lintwill runts-standardwithout fixing.gulp lintFixwill runts-standard --fixfixing code.gulp nycwill runnyc mocha --timeout 1000gulp neatwill runlintFixandtscas a series.
