From 98e13d78662caf62d12da00fe0871eeb5426d4b6 Mon Sep 17 00:00:00 2001 From: Oleg Koval Date: Thu, 22 Mar 2018 15:32:08 +0100 Subject: [PATCH 1/2] feat: Generate markdown --- package.json | 6 ++---- readme.md | 3 +-- scripts/markdown.js | 6 ++++++ 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 scripts/markdown.js diff --git a/package.json b/package.json index 3db393f..27b8b53 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,7 @@ "description": "Get information for all packages inside of your github organisation", "main": "index.js", "private": false, - "repository": { - "type": "git", - "url": "https://github.com/oleg-koval/github-orgs-packages" - }, + "repository": "oleg-koval/github-orgs-packages", "keywords": [ "github", "repositories", @@ -20,6 +17,7 @@ ], "scripts": { "start": "node index.js", + "generage:markdown": "node ./scripts/markdown.js", "lint": "eslint .", "xyz:increment": "xyz --increment", "release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && npm run xyz:increment major", diff --git a/readme.md b/readme.md index f485d96..27f654f 100644 --- a/readme.md +++ b/readme.md @@ -29,8 +29,7 @@ Code: ```js const githubOrgsPackages = require('github-orgs-packages'); -const myOrgPackages = githubOrgsPackages() -myOrgPackages +githubOrgsPackages .then((packages) => { // do smth with packages }) diff --git a/scripts/markdown.js b/scripts/markdown.js new file mode 100644 index 0000000..d898cf9 --- /dev/null +++ b/scripts/markdown.js @@ -0,0 +1,6 @@ +const dependencies = require('../index'); + +return dependencies +.then(deps => { + // ... +}) From 255982cd6a6c7e95213d7170cb81bf4c93be1826 Mon Sep 17 00:00:00 2001 From: Oleg Koval Date: Thu, 22 Mar 2018 15:34:17 +0100 Subject: [PATCH 2/2] fix: typo --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 27b8b53..1de846b 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ ], "scripts": { "start": "node index.js", - "generage:markdown": "node ./scripts/markdown.js", + "generate:markdown": "node ./scripts/markdown.js", "lint": "eslint .", "xyz:increment": "xyz --increment", "release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && npm run xyz:increment major",