# grunt-merge-with-master

> > Merge JSON files with master file

Latest version **1.0.3** (published 2017-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-merge-with-master
pnpm add grunt-merge-with-master
yarn add grunt-merge-with-master
bun add grunt-merge-with-master
```

## 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.0.3 |
| Published | 2017-06-19 |
| First published | 2017-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yaser Amin |
| Maintainers | yaser.amin |

## Links

- npm: https://www.npmjs.com/package/grunt-merge-with-master
- Repository: https://github.com/Yaser-Amin/grunt-merge-with-master
- Homepage: https://github.com/Yaser-Amin/grunt-merge-with-master#readme
- Issues: https://github.com/Yaser-Amin/grunt-merge-with-master/issues
- npm.io page: https://npm.io/package/grunt-merge-with-master

## Dependencies (1)

- [deepmerge](https://npm.io/package/deepmerge.md) ^1.4.4

## Recent versions

- 1.0.3 (latest) — 2017-06-19

## README

# grunt-merge-with-master 1.0.3
> Merge JSON files with master file


## Getting Started

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-merge-with-master --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-merge-with-master');
```


## Merge task
_Run this task with the `grunt mergeMaster` command._

Task targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.

### Options

#### master
Type: `string`
Default: ``

Path to master json file


### Usage examples

#### Basic compression

This configuration will compress and mangle the input files using the default options.

```js
// Project configuration.
grunt.initConfig({
  masterMerge: {
      merge: {
        files: [
          {
            expand: true,
            cwd: './documentation/src/',
            src: ['**/*.json', '!api.json'],
            dest: './documentation/dest/',
            master: './documentation/src/api.json',
          },
        ],
      },
    },
});
```

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