node package manager

feature-document-extractor

feature-document-extractor

Create word documents (sprint board cards, requirement documents) from Gherkin-ish feature files

Usage

$ npm install -g feature-document-extractor
feature-document-extractor \
    --included-sections 'Feature,Acceptance Criteria' \
    --output-file filename.docx \
    --type sprint-board
    --features ../your-features

Creating Additional Document Types

TypeScript

Create a JavaScript file that exports a function that implements the IDocumentGenerationFunction interface:

module.exports = function sprintBoard(
  featurePages: IFeature[],
  outputFile: string,
  featuresPerPage: number,
  baseStyles: IOfficeGenStyle = {
  font_face: 'Calibri'
}) {
  // See ./functions/sprint-board.ts for a working example
}

JavaScript

Create a JavaScript file that exports a function with the shape:

module.exports = function yourType(featurePages, outputFile, featuresPerPage, baseStyles) {
  // See ./functions/sprint-board.ts for a working example 
}

Specify your function as the type using the --type ../path/to/your/type.ts flag