# karmak

> Karma + webpack - lot of code = Karmak

Latest version **0.2.5** (published 2015-04-17) · 0 weekly downloads

## Install

```sh
npm install karmak
pnpm add karmak
yarn add karmak
bun add karmak
```

Provides the command `karmak`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2015-04-17 |
| First published | 2014-10-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 17 |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Sasha Koss |
| Maintainers | kossnocorp |

## Links

- npm: https://www.npmjs.com/package/karmak
- Repository: https://github.com/kossnocorp/karmak
- Issues: https://github.com/kossnocorp/karmak/issues
- npm.io page: https://npm.io/package/karmak

## Dependencies (17)

- [chalk](https://npm.io/package/chalk.md) ^0.5.1
- [touch](https://npm.io/package/touch.md) 0.0.3
- [rewire](https://npm.io/package/rewire.md) ^2.1.0
- [rimraf](https://npm.io/package/rimraf.md) ^2.2.8
- [express](https://npm.io/package/express.md) ^4.9.5
- [webpack](https://npm.io/package/webpack.md) ^1.4.3
- [bluebird](https://npm.io/package/bluebird.md) ^1.2.4
- [commander](https://npm.io/package/commander.md) ^2.3.0
- [minimatch](https://npm.io/package/minimatch.md) ^1.0.0
- [prettyjson](https://npm.io/package/prettyjson.md) ^1.0.0
- [lodash-node](https://npm.io/package/lodash-node.md) ^2.4.1
- [portscanner](https://npm.io/package/portscanner.md) ^1.0.0
- [glob-watcher](https://npm.io/package/glob-watcher.md) 0.0.6
- [object-assign](https://npm.io/package/object-assign.md) ^1.0.0
- [rewire-webpack](https://npm.io/package/rewire-webpack.md) ^0.2.0
- [recursive-readdir](https://npm.io/package/recursive-readdir.md) ^1.2.0
- [webpack-dev-middleware](https://npm.io/package/webpack-dev-middleware.md) ^1.0.11

## Recent versions

- 0.2.5 (latest) — 2015-04-17
- 0.2.4 — 2015-03-20
- 0.2.2 — 2014-12-16
- 0.2.1 — 2014-12-08
- 0.2.0 — 2014-10-31
- 0.1.3 — 2014-10-08
- 0.1.2 — 2014-10-08
- 0.1.1 — 2014-10-06
- 0.1.0 — 2014-10-05

## README

# Karma + webpack - lot of code = Karmak
[![Build Status](https://travis-ci.org/kossnocorp/karmak.svg)](https://travis-ci.org/kossnocorp/karmak)

**Warning:** currently Karmak is not tested well on different enviorments.
It works for my project, but may not play well for your's. Please open issue
if you have problems.

## Installation

``` sh
npm install --save-dev karmak
```

## Usage

### CLI

`./node_modules/.bin/karmak --help`:
```
  Usage: karmak [options]

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    --single-run             signle run? (false)
    --webpack-config <path>  webpack config path (./webpack.config.js)
    --karma-config <path>    Karma config path (./karma.conf.js)
    --pattern <pattern>      test files patterns (['**/*/_test_helper.js', '**/*_test.js', '!node_modules/**/*'])
    --env                    NODE_ENV ('test' if undefined)
```

### Preparation

Remove test patterns from Karma's `files` array and replace it with
`--pattern` arguments.

### Single run

``` sh
karmak --webpack-config ./config/webpack.js --karma-config ./config/karma.js --pattern 'spec/spec_helper.js' --pattern 'spec/**/*_spec.js*' --single-run
```

### Autotest

``` sh
karmak --webpack-config ./config/webpack.js --karma-config ./config/karma.js --pattern 'spec/spec_helper.js' --pattern 'spec/**/*_spec.js*'
```

## Contribute

### Run tests

``` sh
npm test
```

_* There is few "slow" tests, do not worry about that, it's ok. They are
such slow because of FS interactions._

---
_Source: https://npm.io/package/karmak · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
