0.0.2 • Published 5 years ago

cell-cycle v0.0.2

Weekly downloads
3
License
MIT License (MIT)
Repository
github
Last release
5 years ago

cell-cycle

view on npm npm module downloads per month Dependency status Build Status Test Coverage(https://img.shields.io/badge/coverage -75%25_skipped:0%25-yellow.svg?style=flat)

The Cellarise Cycle framework.

Installation

npm install cell-cycle --save

Configuration

API

Modules

ParamTypeDefaultDescription
optsObjectoptional options
opts.modulePrefixObject'gulp-'load dependencies that start with this prefix in package.json.

Example

Usage:

var cell-cycle = require('cell-cycle');

-

utils/coverageStats ⇒ Object

Coverage statistic utilities

Returns: Object - coverage statistics utility functions

ParamTypeDescription
loggerbunyanA logger matching the bunyan API

-

utils/coverageStats.addStats(collection, pkg)

Helper function to append statistic properties from the provided collection to the provided package.json

Kind: static method of utils/coverageStats

ParamTypeDescription
collectionObjecta collection of statistic properties
pkgObjectpackage.json object

-

utils/coverageStats.deleteStats(collection)

Helper function to delete total, covered and skipped statistic properties from a collection

Kind: static method of utils/coverageStats

ParamTypeDescription
collectionObjecta collection of statistic properties

-

utils/coverageStats.badgeColour(collection, stat, watermarks)

Helper function to determine badge colour

Kind: static method of utils/coverageStats

ParamTypeDescription
collectionObjecta collection of statistic properties
statObjecta statistic from the collection to calculate the badge for
watermarksObjectthe high and low watermarks for each statistic in collection

-

utils/coverageStats.calculateCoverageStats(coverageReport, packageJSON)Object

Calculate coverage stats from an istanbul coverage.json report and append to provided package.json config.coverage.stats property. The coverage stats include an overall coverage percentage and badge colour.

Kind: static method of utils/coverageStats
Returns: Object - updated package.json object

ParamTypeDescription
coverageReportObjectthe istanbul generated coverage.json report object
packageJSONObjectthe package.json object

-

tasks/codeAnalysisTasks

A module to add gulp tasks which execute static code analysis.

ParamTypeDescription
gulpGulpThe gulp module
contextObjectAn object containing the following properties:
context.cwdStringThe current working directory
context.packageObjectThe package.json for the module
context.argvArrayThe arguments past to the gulp task
context.loggerbunyanA logger matching the bunyan API

-

tasks/codeAnalysisTasks~code_analysisthrough2

A gulp build task to execute static code analysis on the files at package.json:directories.lib. The report results are saved to package.json:directories.reports

Kind: inner property of tasks/codeAnalysisTasks
Returns: through2 - stream

-

tasks/coverageStatsTasks

A module to add a gulp task which calculates coverage stats from the Istanbul reporter json-summary.

ParamTypeDescription
gulpGulpThe gulp module
contextObjectAn object containing the following properties:
context.cwdStringThe current working directory
context.packagejsonThe package.json for the module
context.argvArrayThe arguments past to the gulp task
context.loggerbunyanA logger matching the bunyan API

-

tasks/coverageStatsTasks~coverage_statsthrough2

A gulp build task to calculate coverage stats from the Istanbul reporter json-summary. Coverage stats are appended to package.json config.coverage.stats property. The coverage stats include an overall coverage percentage and badge colour.

Kind: inner property of tasks/coverageStatsTasks
Returns: through2 - stream

-

tasks/defaultTasks

A module to add a gulp task which executes the default task.

ParamTypeDescription
gulpGulpThe gulp module

-

tasks/defaultTasks~default : Gulp

A gulp build task to run the default tasks. The following tasks are executed in sequence: "test" The sequence works by piping each task to the next.

Kind: inner property of tasks/defaultTasks

ParamTypeDescription
cbfunctioncallback

-

tasks/testTasks

A module to add gulp tasks which run test steps.

ParamTypeDescription
gulpGulpThe gulp module
contextObjectAn object containing the following properties:
context.cwdStringThe current working directory
context.packageObjectThe package.json for the module
context.argvArrayThe arguments past to the gulp task
context.loggerbunyanA logger matching the bunyan API

-

tasks/testTasks~instrumentthrough2

A gulp build task to instrument files. Istanbul will override the node require() function to redirect to the instrumented files.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

-

tasks/testTasks~test_coverthrough2

A gulp build task to run test steps and calculate test coverage. Test steps results will be output using mocha-bamboo-reporter-bgo reporter. This task executes the Instrument task as a prerequisite.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

-

tasks/testTasks~test_coverthrough2

A gulp build task to run test steps and calculate test coverage (but not output test coverage to prevent gulp-istanbul issues with webdriverIO). Test steps results will be output using mocha-bamboo-reporter-bgo reporter. This task executes the Instrument task as a prerequisite.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

-

tasks/testTasks~test_coverthrough2

A gulp build task to run test steps and calculate test coverage (but not output test coverage to prevent gulp-istanbul issues with webdriverIO). Test steps results will be output using mocha-bamboo-reporter-bgo reporter. This task executes the Instrument task as a prerequisite.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

-

tasks/testTasks~write_coveragethrough2

A gulp build task to write coverage.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

-

tasks/testTasks~testthrough2

A gulp build task to run test steps and calculate test coverage. Test steps results will be output using spec reporter.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

-

documented by jsdoc-to-markdown.

Changelog

License

MIT License (MIT). All rights not explicitly granted in the license are reserved.

Copyright (c) 2015 John Barry

Dependencies

cell-cycle@0.0.0 - "MIT License (MIT)", documented by npm-licenses.