1.1.6 • Published 5 years ago

story-scanner v1.1.6

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

story-scanner

Simple utility to scan provided paths as args for .js and report which have associated .stories.js files in the same path.

npm install story-scanner --global

Usage

  • Generate a story-coverage.html:

    story-coverage src/components src/containers

  • Respond with contents of story-coverage.html over HTTP:

    story-coverage src/components src/containers --listen

The --listen flag starts an HTTP server and a WebSocket server. WebSocket connection is used to trigger a reload on all clients. The WebSocket connection is started on port that is provided + 1 (e.g. if -p is 6060, then the WS port would be 6061).

Config

.story-scanner.json may be provided in the root dir to describe config options. Currently there is only one option called ignored. It accepts an array of filepaths that should be counted as passing without checking if they have associated .stories.js files.

{
  "ignored": [
    "src/components/Thing.js"
  ]
}

Arguments

  • --filename, -f (default: story-coverage.html) -- outputs HTML to a file

  • --listen, -l -- starts a HTTP server

  • --port, -p (default: 6060) -- sets the port for HTTP server to listen on

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago