Skip to content

command line I/F #1351

@koba04

Description

@koba04

Currently, karma doesn't export karma command.
You recommend to install karma-cli locally to the project in case of npm test.
This is why It's for separation of concerns. #1078 #1322

But, some documents describe using ./node_modules/karma/bin/karma now.

https://github.com/karma-runner/karma/blob/master/docs/plus/02-travis.md
https://github.com/karma-runner/karma/blob/master/docs/plus/04-semaphore.md

In addition, karma-cli specifies the preferGlobal.
https://github.com/karma-runner/karma-cli/blob/master/package.json#L41

I feel that there is no consistency.

Solution

  1. Export karma command and treats karma-cli as just global command I/F. (+1)
  2. Remove bin/karma from this repository and remove the preferGlobal from karma-cli.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions