1.0.11 • Published 1 year ago

ketchup-gherkin v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

šŸ… ketchup-gherkin

Generate beautiful pages for Gherkin language .feature files in JavaScript JS HTML CSS.

Supports English and Portuguese.

image

šŸ… Menu

  • Required

  • Start

  • Install

  • Config

  • Run

  • Usage

šŸ… Required

Node v18+

npm v8+

Download Node and npm

šŸ… Start

npm init -y

This command creates the package.json file.

šŸ… Install

npm i ketchup-gherkin

This command install the package.

package npm page

šŸ… Config

In package.json add

  "scripts": {
    "config": "node node_modules/ketchup-gherkin/createConfig.js",
    "ketchup": "node_modules/.bin/nodemon node_modules/.bin/ketchup-gherkin"
  }

npm run config

This command configure ketchup.

šŸ… Run

npm run ketchup

This command starts the server.

With each change, the server is restarted and generates new HTML.

You need to reload the page in the browser.

Running in localhost:3000

šŸ… Usage

Creates this folder structure Feature/feature-name/feature.feature

šŸ“‚ your-project šŸ…
       .
       ā”œā”€ā”€ šŸ“‚ Features
       |          .
       |          ā”œā”€ā”€ šŸ“‚ feature-name 
       |          |           └── šŸ„’ feature.feature
       |          |
       |          ā”œā”€ā”€ šŸ“‚ feature-name 
       |          |           ā”œā”€ā”€ šŸ„’ feature.feature
       |          |           └── šŸ„’ feature.feature
       |          . 
       ā”œā”€ā”€ šŸ… ketchup.json
       .

--

šŸ“‚ your-project šŸ… --> Your project folder.

šŸ“‚ Features --> Folder with all Features.

šŸ“‚ feature-name --> Feature folder.

šŸ„’ feature.feature --> Feature in Gherkin language.

šŸ… ketchup.json --> ketchup settings.

--

Enjoy šŸ…

package github page

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago