json-template-merge

1.1.1 • Public • Published

json-template-merge

A git merge driver to be used in a deployment process to handle Shopify's JSON templates. It uses xdiff to create a diff from two source JSON templates and applies it as a patch to a live template.

NPM Version

Install

Install:

npm install json-template-merge

Update git config:

git config merge.json_template.driver "$(npm bin)/json-template-merge %A %O %B"
git config merge.json_template.name "Merge driver for JSON templates"

Create .gitattributes:

*.json merge=json_template

Readme

Keywords

none

Package Sidebar

Install

npm i json-template-merge

Weekly Downloads

116

Version

1.1.1

License

ISC

Unpacked Size

8.11 kB

Total Files

11

Last publish

Collaborators

  • nshak