# mike

> Lean task runner

Latest version **0.0.3** (published 2015-12-16) · MIT license · 0 weekly downloads

## Install

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

Provides the command `mike`.

## 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.0.3 |
| Published | 2015-12-16 |
| First published | 2015-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Alberto Núñez |
| Maintainers | anunez |
| Keywords | task, runner |

## Links

- npm: https://www.npmjs.com/package/mike
- Repository: https://github.com/anunez/mike
- Homepage: https://github.com/anunez/mike#readme
- Issues: https://github.com/anunez/mike/issues
- npm.io page: https://npm.io/package/mike

## Dependencies (3)

- [colors](https://npm.io/package/colors.md) ^1.1.2
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [dateformat](https://npm.io/package/dateformat.md) ^1.0.12

## Recent versions

- 0.0.3 (latest) — 2015-12-16

## README

# mike

Lean task runner.

## Install
```sh
$ npm install mike --save-dev
```

## Config
Create a file `mikefile.js` in the root of your project.

Example of a mikefile:
```javascript
module.exports = {
  'clean': {
    'cmd': ['cat .gitignore | xargs rm -rf']
  },
  'composer:setup': {
    'out': ['tools/composer'],
    'pre': ['tools'],
    'cmd': ['curl -sS https://getcomposer.org/installer | php -- --filename=composer']
  },
  'composer:install': {
    'out': ['vendor'],
    'pre': ['composer:setup'],
    'cmd': ['php composer install --optimize-autoloader']
  },
  'npm:install': {
    'out': ['node_modules'],
    'cmd': ['npm install']
  },
  'lint:php': {
    'pre': ['composer:install'],
    'cmd': ['vendor/bin/phpcs --standard=PSR2 src/php']
  },
  'lint:js': {
    'pre': ['npm:install'],
    'cmd': ['node_modules/.bin/eslint --env browser src/js']
  },
  'lint': {
    'pre': ['lint:php', 'lint:js']
  },
  'test:php': {
    'spawn': true,
    'pre': ['composer:install'],
    'cmd': ['vendor/bin/phpunit --configuration phpunit.xml']
  },
  'test:js': {
    'spawn': true,
    'pre': ['npm:install'],
    'cmd': ['node_modules/.bin/mocha -c test/js/ --recursive']
  },
  'test': {
    'pre': ['test:php', 'test:js']
  },
  'js': {
    'pre': ['npm:install'],
    'cmd': [
      'mkdir -p static',
      'node_modules/.bin/browserify js/main.js | node_modules/.bin/uglifyjs --compress --mangle > static/script.js'
    ]
  },
  'css': {
    'pre': ['npm:install'],
    'cmd': [
      'node_modules/.bin/lessc less/main.less --clean-css="--s0 --advanced" --autoprefix="last 2 versions"'
    ]
  },
  'build': {
    'pre': ['css', 'js']
  },
  'watch': {
    'spawn': true,
    'pre': ['npm:install'],
    'cmd': ['node_modules/.bin/wr --exec "mike css" less']
  }
};

```

## Usage
```
Usage: mike [options] <task>

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    -f, --force    Force rebuilding already created outputs
    -m --mute      Mute stderr output from tasks
    -a, --all      Display all stdout output from tasks
```

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