tool to update version number and changelog, for npm module development
npm install cranka tool to update version number and changelog, for npm module development
crank version {part}
increments version in package.json
{part} is major, minor, or patch. defaults to patch
crank changelog {file}
updates changelog. {file} defaults to Changelog.md
* not really needed for simple use cases
* defaults to crank.json in the current working directory
* can be specified with a commandline argument
* target: directory to track
* defaults to current working directory
* changelog:
* file: path on disk
* relative path is relative to the target
* template: template type, or path on disk
* defaults to file extension
* simple string taken as one of the built-in template types to use
* builtin types are md (markdown) and txt (plain text)
* otherwise, template to use
* changes:
* dateformat: string
* format to use for change dates
* filters: list of objects describing how to modify changes
* subject: string message, author, date, or changeid
* regexp: string
* replace: string
* if results in --CRANK:SKIP-- then change is skipped
* versions:
* dateformat: string
* format to use for revision dates
* filters: list of objects describing how to modify versions
* subject: string version, date, or changeid
* regexp: string
* replace: string
* if results in --CRANK:SKIP-- then version is skipped
* good old mustache
* {{version}} string
* {{date}} string, date that crank was run
* {{changeid}} string
* {{changes}} list of objects
* {{changeid}} string
* {{date}} string
* {{author}} string
* {{message}} string
MIT License
Copyright (c) 2012, Yahoo! Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.