From 74f57f1952bac0967a12b9af640026e458054207 Mon Sep 17 00:00:00 2001 From: Christoph Hermann Date: Sat, 8 Aug 2015 15:01:24 +0200 Subject: [PATCH 1/5] adds git push --follow-tags --- README.md | 11 +++++++++++ scripts.json | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/README.md b/README.md index 72a42a2..182fb29 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ * [gh-pages](https://github.com/npm-scripts/scripts#gh-pages) * [develop](https://github.com/npm-scripts/scripts#develop) * [diffy-package](https://github.com/npm-scripts/scripts#diffy-package) +* [push tags](https://github.com/npm-scripts/scripts#push-tags) @@ -108,5 +109,15 @@ Make the package.json more diff-friendly. Remember to install the dependencies b Install the dependencies `npm i format-json sponge --save-dev` +## push tags + +Git push relevant annotated tags when pushing branches out. + +```json +"scripts": { + "push": "git push --follow-tags" +} +``` + diff --git a/scripts.json b/scripts.json index c786902..ac772c7 100644 --- a/scripts.json +++ b/scripts.json @@ -97,5 +97,15 @@ "format-json", "sponge" ] + }, { + "title": "push tags", + "description": "Git push relevant annotated tags when pushing branches out.", + "key": "push", + "script": "git push --follow-tags", + "keywords": [ + "git", + "push" + ], + "dependencies": [] } ] From d2ce6f3cfa0e4006521c84c356366cf39e73b692 Mon Sep 17 00:00:00 2001 From: Christoph Hermann Date: Sun, 9 Aug 2015 16:30:13 +0200 Subject: [PATCH 2/5] make dependencies optional --- .doxie.render.js | 2 +- scripts.json | 18 ++++++------------ 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.doxie.render.js b/.doxie.render.js index 2ce154d..8eee622 100644 --- a/.doxie.render.js +++ b/.doxie.render.js @@ -20,7 +20,7 @@ var render = function(data) { '\n', ]; - if (data.dependencies.length > 0) { + if (data.dependencies && data.dependencies.length > 0) { doc = doc.concat([ 'Install the dependencies `npm i ' + data.dependencies.join(' ') + ' --save-dev`', diff --git a/scripts.json b/scripts.json index ac772c7..737760a 100644 --- a/scripts.json +++ b/scripts.json @@ -9,8 +9,7 @@ "release", "push", "publish" - ], - "dependencies": [] + ] }, { "title": "minor-release", "description": "Publish a minor release of a package", @@ -21,8 +20,7 @@ "release", "push", "publish" - ], - "dependencies": [] + ] }, { "title": "major-release", "description": "Publish a major release of a package", @@ -33,8 +31,7 @@ "release", "push", "publish" - ], - "dependencies": [] + ] }, { "title": "clean-up", "description": "Clean your git repo state. All dirty files will be moved to the stash. It’s useful when transpiling code before publishing to NPM.", @@ -46,8 +43,7 @@ "push", "publish", "clean" - ], - "dependencies": [] + ] }, { "title": "Bower postinstall", "description": "Bower install before npm", @@ -69,8 +65,7 @@ "keywords": [ "npm", "gh-pages" - ], - "dependencies": [] + ] }, { "title": "develop", "description": "Watch JS files and run `npm test` on every change. Remember to install the dependencies before using this.", @@ -105,7 +100,6 @@ "keywords": [ "git", "push" - ], - "dependencies": [] + ] } ] From 1e0da94d2216a12cd852f8e5e619434abf6e43b3 Mon Sep 17 00:00:00 2001 From: Christoph Hermann Date: Fri, 4 Sep 2015 07:39:01 +0200 Subject: [PATCH 3/5] fix typo --- contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributing.md b/contributing.md index 8158552..9aaae67 100644 --- a/contributing.md +++ b/contributing.md @@ -19,7 +19,7 @@ "npm", " Date: Fri, 4 Sep 2015 15:25:47 +1000 Subject: [PATCH 4/5] add changelog script --- README.md | 14 ++++++++++++++ scripts.json | 11 +++++++++++ 2 files changed, 25 insertions(+) diff --git a/README.md b/README.md index 182fb29..a8c6fc5 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ * [develop](https://github.com/npm-scripts/scripts#develop) * [diffy-package](https://github.com/npm-scripts/scripts#diffy-package) * [push tags](https://github.com/npm-scripts/scripts#push-tags) +* [changelog](https://github.com/npm-scripts/scripts#changelog) @@ -119,5 +120,18 @@ Git push relevant annotated tags when pushing branches out. } ``` +## changelog + +Generate a changelog from git metadata. + +```json +"scripts": { + "conventional-changelog": "conventional-changelog -p angular -i CHANGELOG.md -w" +} +``` + + +Install the dependencies `npm i conventional-changelog --save-dev` + diff --git a/scripts.json b/scripts.json index 737760a..43e32e7 100644 --- a/scripts.json +++ b/scripts.json @@ -101,5 +101,16 @@ "git", "push" ] + }, { + "title": "changelog", + "description": "Generate a changelog from git metadata.", + "key": "conventional-changelog", + "script": "conventional-changelog -p angular -i CHANGELOG.md -w", + "keywords": [ + "changelog" + ], + "dependencies": [ + "conventional-changelog" + ] } ] From 32562bf00f44055e2b8a07b5b6810d76275e750b Mon Sep 17 00:00:00 2001 From: Steve Mao Date: Fri, 4 Sep 2015 15:29:32 +1000 Subject: [PATCH 5/5] add github-release script --- README.md | 14 ++++++++++++++ scripts.json | 12 ++++++++++++ 2 files changed, 26 insertions(+) diff --git a/README.md b/README.md index a8c6fc5..e888212 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ * [diffy-package](https://github.com/npm-scripts/scripts#diffy-package) * [push tags](https://github.com/npm-scripts/scripts#push-tags) * [changelog](https://github.com/npm-scripts/scripts#changelog) +* [github-release](https://github.com/npm-scripts/scripts#github-release) @@ -133,5 +134,18 @@ Generate a changelog from git metadata. Install the dependencies `npm i conventional-changelog --save-dev` +## github-release + +Make a new GitHub release from git metadata. + +```json +"scripts": { + "conventional-github-releaser": "conventional-github-releaser -p angular" +} +``` + + +Install the dependencies `npm i conventional-github-releaser --save-dev` + diff --git a/scripts.json b/scripts.json index 43e32e7..d48afab 100644 --- a/scripts.json +++ b/scripts.json @@ -112,5 +112,17 @@ "dependencies": [ "conventional-changelog" ] + }, { + "title": "github-release", + "description": "Make a new GitHub release from git metadata.", + "key": "conventional-github-releaser", + "script": "conventional-github-releaser -p angular", + "keywords": [ + "changelog", + "github-release" + ], + "dependencies": [ + "conventional-github-releaser" + ] } ] pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy