@template-tools/template-sync

13.0.3 • Public • Published

npm License bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

template-sync

Keep repository in sync with its template.

Generates pull requests to bring a repository back in sync with its template.

So by making changes to the template and applying template-sync the target project will be updated accoring to the template.

Works with github and bitbucket.

This is the engine for cli operation please see template-tools/template-sync-cli

Merges contents from template branch into destination branch handling some special cases for:

generated pull request

Some templates

API

Table of Contents

Delete

Extends Merger

Delete entry.

Merger

Mergable content

properties

Deliver some key properties.

Parameters

  • entry ContentEntry

Returns Object extracted properties

commits

Generate commits as result of merging two entries.

Parameters

  • context
  • destinationEntry
  • sourceEntry
  • options

INI

Extends Merger

Merge ini entries

normalizeTemplateSources

Remove duplicate sources. Sources staring with '-' will be removed

Parameters

Returns Array<string> normalized sources

jspath

Parameters

  • object
  • path
  • cb

actions2message

Parameters

Returns any actions as one string lines ordered by scope

actions2messages

Parameters

MergeLineSet

Extends Merger

sortedKeys

order in which json keys are written

exportsConditionOrder

Order in which exports are searched

Package

Extends Merger

Merger for package.json

properties

Deliver some key properties.

  • name
  • version
  • description
  • main

Parameters

  • entry ContentEntry

Returns Promise<Object>

Readme

Extends Merger

Injects badges into README.md.

ReplaceIfEmpty

Extends Merger

Overwrites none existing entries from template.

Replace

Extends Merger

Always overwrite entry from template

Skip

Extends Merger

Does not generate destination entry

install

With npm do:

npm install -g @template-tools/sync-cli

license

BSD-2-Clause

Package Sidebar

Install

npm i @template-tools/template-sync

Weekly Downloads

332

Version

13.0.3

License

BSD-2-Clause

Unpacked Size

81.4 kB

Total Files

26

Last publish

Collaborators

  • arlac77