node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

npm-template-sync

npm Greenkeeper semantic-release styled with prettier Build Status bithound codecov.io Coverage Status Known Vulnerabilities GitHub Issues Stories in Ready Dependency Status devDependency Status docs XO code style downloads Commitizen friendly

npm-template-sync

Keep npm package in sync with its template

npm-template-sync --template aTemplateGithubUser/aRepo  myGithubUser/myRepo

merges contents from template repo into destination repo handling some special cases for:

  • Licenses - rewriting license years
  • line set files like .npmignore and .gitignore - by merging both sets together
  • package.json - merge devDependencies, engines and scripts
  • rollup.conf.js - copy / rewrite

generated pull request

Some templates

API

Table of Contents

sortedKeys

order in which json keys are written

Package

Extends File

Merger for package.json

properties

Deliver some key properties

Parameters

  • context

Returns Object

install

With npm do:

npm install -g npm-template-sync
 
# npm-template-sync --help 

license

BSD-2-Clause