[Pkg-javascript-commits] [node-foreground-child] 47/69: add an automatic changelog script
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 11:43:06 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-foreground-child.
commit 3d881827cf3e6ca3a098c076b2b738040cb7d3cb
Author: isaacs <i at izs.me>
Date: Tue Jun 14 23:21:28 2016 -0700
add an automatic changelog script
---
CHANGELOG.md | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
changelog.sh | 10 +++++++++
package.json | 4 +++-
3 files changed, 84 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..f554084
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,71 @@
+# Changes
+
+* replace cross-spawn-async with cross-spawn
+* test: stay alive long enough to be signaled
+
+## v1.5.1
+
+* avoid race condition in test
+* Use fd numbers instead of 'inherit' for Node v0.10 compatibility
+
+## v1.5.0
+
+* add caveats re IPC and arbitrary FDs
+* Forward IPC messages to foregrounded child process
+
+## v1.4.0
+
+* Set `process.exitCode` based on the child’s exit code
+
+## v1.3.5
+
+* Better testing for when cross-spawn-async needed
+* appveyor: node v0.10 on windows is too flaky
+
+## v1.3.4
+
+* Only use cross-spawn-async for shebangs
+* update vanity badges and package.json for repo move
+* appveyor
+
+## v1.3.3
+
+* Skip signals in tests on Windows
+* update to tap at 4
+* use cross-spawn-async on windows
+
+## v1.3.2
+
+* Revert "switch to win-spawn"
+* Revert "Transparently translate high-order exit code to appropriate signal"
+* update travis versions
+* Transparently translate high-order exit code to appropriate signal
+* ignore coverage folder
+
+## v1.3.1
+
+* switch to win-spawn
+
+## v1.3.0
+
+* note skipped test in test output
+* left an unused var c in
+* slice arguments, added documentation
+* added a unit test, because I strive to be a good open-source-citizen
+* make travis also work on 0.12 and iojs again
+* added badge
+* patch for travis exit weirdness
+* fix typo in .gitignore
+* beforeExit hook
+
+## v1.2.0
+
+* Use signal-exit, fix kill(process.pid) race
+
+## v1.1.0
+
+* Enforce that parent always gets a 'exit' event
+
+## v1.0.0
+
+* first
diff --git a/changelog.sh b/changelog.sh
new file mode 100644
index 0000000..be61b4f
--- /dev/null
+++ b/changelog.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+(
+ echo '# Changes'
+ echo ''
+ git log --first-parent --pretty=format:'%s' \
+ | grep -v '^update changelog' \
+ | grep -v 'beta' \
+ | perl -p -e 's/^((v?[0-9]+\.?)+)?$/\n## \1\n/g' \
+ | perl -p -e 's/^([^#\s].*)$/* \1/g'
+)> CHANGELOG.md
diff --git a/package.json b/package.json
index 15bc4b7..7576271 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,9 @@
"tap": "^5.1.1"
},
"scripts": {
- "test": "tap --coverage test/*.js"
+ "test": "tap --coverage test/*.js",
+ "changelog": "bash changelog.sh",
+ "postversion": "npm run changelog && git add CHANGELOG.md && git commit -m 'update changelog - '${npm_package_version}"
},
"repository": {
"type": "git",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-foreground-child.git
More information about the Pkg-javascript-commits
mailing list