# mrun

> A simple tool for setting script properties on packages.json for watching/building less and browserify code.

Latest version **1.1.0** (published 2015-05-09) · MIT license · 0 weekly downloads

## Install

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

Provides the command `mrun`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-05-09 |
| First published | 2013-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mikael Brevik |
| Maintainers | mikaelb |
| Keywords | browserify, less, build, watch, npm |

## Links

- npm: https://www.npmjs.com/package/mrun
- npm.io page: https://npm.io/package/mrun

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2015-05-09
- 1.0.0 — 2015-04-05
- 0.1.0 — 2013-12-25
- 0.0.6 — 2013-12-06
- 0.0.5 — 2013-12-06

## README

mrun - A npm module for setting npm run properties to build/watch less and browserify code
===

A simple npm/terminal tool to set your package.json file to have scripts to
build or watch less and browserify code. CSS will also be autoprefixed.

Following tools will be set as dependencies:

 * autoprefixer
 * wr
 * watchify
 * browserify
 * less


__Entry file for less and js should be `app.{js,css}`__

## Installing

```
npm install -g mrun
```

## Usage

To see usage run: ```mrun -h```:

```
Usage: mrun [ "style directory" "browser code directory" "target directory" ]
(run in package root dir).

-----

Update package.json file with run scripts text to build or watch
less and javascripts files. Entry file for less and js should be app.{js,css}

-----

Argument overview:
Style directory: Where the less files are.
Browser code directory: Where the browserify compatible code resides.
Target directory: Where the compiled files are placed.

Without arguments the defaults are: [ 'style', 'browser', 'static' ]
```

To add default scripts (with style folder ```style```, js code from
```browser``` and storing the compiled files to ```target```) run
the binary without arguments:

```
mrun
```

## API

```
npm install mrun
```

```javascript
var mrun = require('mrun')
  , handleRespone = function(err, newPackage) {
    if(err) throw Error(err);
    console.log("New packageJson");
    console.dir(newPackage);
};

mrun(handleRespone);

// Or with options:
mrun({
      style: 'anotherStyleDirectory'
    , browser: 'anotherBrowserDirectory'
    , target: 'anotherTargetDirectory'
  }, handleRespone);
```

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