Skip to content

Commit

Permalink
✨ Convert changelog to markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
frinyvonnick committed Aug 28, 2018
1 parent 10c6d3e commit b165f69
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Changelog

- :sparkles: Generate markdown first draft function (10c6d3e20b82f5a0f6ce5cd372899e6519bc2412)
- :tada: Intialize markdown project (a4a12bb4f7133e7e5e40436da4c884f135abf03d)
- :sparkles: Generate changelog JSON file (86ca3eaefb18fd9c9b6bb4256ed2f6fa711aef59)
- :sparkles: Handle when no repository found (c912efd73b9b286711d468ccb73bf1a03bd6f848)
- :package: Fix build (a1526b38e164b8471954e3dd0c658e10595ee966)
- :package: Build dist file (acba6f776196d8312c470ccefce8be81bafd8d52)
- :fire: remove parsing multiple commit (73207b70d85ad2371def0ec9045e5a6ea46fee8c)
- :tada: intialize cli project (0b4f39408e675f368c9562bd7645ac74abcd2293)
- :sparkles: implements changelog generation to json (44e401db08cc828fcc8c19b027350ac9d310773e)
- :truck: move parse functions into parser.js (e29f239dee8dc393caee9d320371e54a37eb90ae)
- :sparkles: add edge cases for commit parsing (cb35644a640cfe3cb2c246345fe25202d814c436)
- :sparkles: Implements parse commit function (195b59431dde83a4cff26be5c3ab362d97a9604e)
- :wrench: Fix main script in core module (7f091a3900605ee9bc44e793ddbb10a7272112fa)
- :wrench: Add build script (efbc04d902ac201b128a8e02692b778eff109b12)
- :wrench: Add lint (9faf008d457d777afe0fa3443c34af510c1098fa)
- :green_heart: Set up travis configuration (dda9b287989c1ca2e9513c4a5a4a3d1b6749e816)
- :wrench: Set up tests (656c8bbb506fc8f9064df1fc7aa64e2f1869751e)
- :wrench: Add package.json (34c8f53a58487a6368016de09989465cd2a96786)
- Initial commit (a60d98def5bcbbef74a19db9e8f43af7a6ff6865)
4 changes: 3 additions & 1 deletion packages/gitmoji-changelog-cli/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ var _fs2 = _interopRequireDefault(_fs);

var _core = require('@gitmoji-changelog/core');

var _markdown = require('@gitmoji-changelog/markdown');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

async function main() {
try {
const changes = await (0, _core.changelog)();
_fs2.default.writeFileSync('./CHANGELOG.json', changes);
_fs2.default.writeFileSync('./CHANGELOG.md', (0, _markdown.convert)(changes));
} catch (e) {
console.error('Cannot find a git repository in current path.');
}
Expand Down
3 changes: 2 additions & 1 deletion packages/gitmoji-changelog-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"babel-cli": "^6.26.0"
},
"dependencies": {
"@gitmoji-changelog/core": "0.0.1"
"@gitmoji-changelog/core": "0.0.1",
"@gitmoji-changelog/markdown": "0.0.1"
}
}
3 changes: 2 additions & 1 deletion packages/gitmoji-changelog-cli/src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#! /usr/bin/env node
import fs from 'fs'
import { changelog } from '@gitmoji-changelog/core'
import { convert } from '@gitmoji-changelog/markdown'

export async function main() {
try {
const changes = await changelog()
fs.writeFileSync('./CHANGELOG.json', changes)
fs.writeFileSync('./CHANGELOG.md', convert(changes))
} catch (e) {
console.error('Cannot find a git repository in current path.')
}
Expand Down

0 comments on commit b165f69

Please sign in to comment.