@eheikes/project-updater v0.6.1
Project Updater
This tool automates maintenance by updating the project with a specific set of tasks (see "Included" below). It consists of a script to update the project in the working directory.
Requirements
Installation
Run npm i -g @eheikes/project-updater to install this package.
Usage
Run update-project in your project folder to update it according to these conventions.
Note that human intervention is still required! You'll need to review the changes and commit them or roll them back.
Modifying the Templates
There are built-in templates used by the updater if no other templates are specified. The tool can instead use a specified folder (in order of precedence):
- a
--templatesargument on the command line - a
TEMPLATESenvironment variable - a
templatesfolder in your home directory
Disabling Tasks
You can also disable certain tasks by including a tasks.json file in the templates folder, using the task filenames (minus the file extension). For example, the following skips the package-lock and travisci tasks:
{
"package-lock": false,
"travisci": false
}Tasks are disabled only if they are specified with a false value.
Included
.editorconfigfor automatic style configuration in IDEs.gitignorefor commonly ignored files.travis.ymlfor CI/CD- For npm packages:
- Adds minimal properties to the
package.json - Adds
LICENSEfile - Adds
standarddependency, configuration, andlintscript - Upgrades the packages to the latest version (within defined range)
- Updates the
package-lock.jsonfile - Updates the
yarn.lockfile - Updates the
contributorsproperty inpackage.jsonfrom the git history
- Adds minimal properties to the