File tree Expand file tree Collapse file tree 4 files changed +28
-3
lines changed
packages/gitmoji-changelog-cli Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 1+ # Changelog
2+
3+ - :sparkles : Generate markdown first draft function (10c6d3e20b82f5a0f6ce5cd372899e6519bc2412)
4+ - :tada : Intialize markdown project (a4a12bb4f7133e7e5e40436da4c884f135abf03d)
5+ - :sparkles : Generate changelog JSON file (86ca3eaefb18fd9c9b6bb4256ed2f6fa711aef59)
6+ - :sparkles : Handle when no repository found (c912efd73b9b286711d468ccb73bf1a03bd6f848)
7+ - :package : Fix build (a1526b38e164b8471954e3dd0c658e10595ee966)
8+ - :package : Build dist file (acba6f776196d8312c470ccefce8be81bafd8d52)
9+ - :fire : remove parsing multiple commit (73207b70d85ad2371def0ec9045e5a6ea46fee8c)
10+ - :tada : intialize cli project (0b4f39408e675f368c9562bd7645ac74abcd2293)
11+ - :sparkles : implements changelog generation to json (44e401db08cc828fcc8c19b027350ac9d310773e)
12+ - :truck : move parse functions into parser.js (e29f239dee8dc393caee9d320371e54a37eb90ae)
13+ - :sparkles : add edge cases for commit parsing (cb35644a640cfe3cb2c246345fe25202d814c436)
14+ - :sparkles : Implements parse commit function (195b59431dde83a4cff26be5c3ab362d97a9604e)
15+ - :wrench : Fix main script in core module (7f091a3900605ee9bc44e793ddbb10a7272112fa)
16+ - :wrench : Add build script (efbc04d902ac201b128a8e02692b778eff109b12)
17+ - :wrench : Add lint (9faf008d457d777afe0fa3443c34af510c1098fa)
18+ - :green_heart : Set up travis configuration (dda9b287989c1ca2e9513c4a5a4a3d1b6749e816)
19+ - :wrench : Set up tests (656c8bbb506fc8f9064df1fc7aa64e2f1869751e)
20+ - :wrench : Add package.json (34c8f53a58487a6368016de09989465cd2a96786)
21+ - Initial commit (a60d98def5bcbbef74a19db9e8f43af7a6ff6865)
Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ var _fs2 = _interopRequireDefault(_fs);
1212
1313var _core = require ( '@gitmoji-changelog/core' ) ;
1414
15+ var _markdown = require ( '@gitmoji-changelog/markdown' ) ;
16+
1517function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
1618
1719async function main ( ) {
1820 try {
1921 const changes = await ( 0 , _core . changelog ) ( ) ;
20- _fs2 . default . writeFileSync ( './CHANGELOG.json ' , changes ) ;
22+ _fs2 . default . writeFileSync ( './CHANGELOG.md ' , ( 0 , _markdown . convert ) ( changes ) ) ;
2123 } catch ( e ) {
2224 console . error ( 'Cannot find a git repository in current path.' ) ;
2325 }
Original file line number Diff line number Diff line change 2323 "babel-cli" : " ^6.26.0"
2424 },
2525 "dependencies" : {
26- "@gitmoji-changelog/core" : " 0.0.1"
26+ "@gitmoji-changelog/core" : " 0.0.1" ,
27+ "@gitmoji-changelog/markdown" : " 0.0.1"
2728 }
2829}
Original file line number Diff line number Diff line change 11#! /usr/bin/env node
22import fs from 'fs'
33import { changelog } from '@gitmoji-changelog/core'
4+ import { convert } from '@gitmoji-changelog/markdown'
45
56export async function main ( ) {
67 try {
78 const changes = await changelog ( )
8- fs . writeFileSync ( './CHANGELOG.json ' , changes )
9+ fs . writeFileSync ( './CHANGELOG.md ' , convert ( changes ) )
910 } catch ( e ) {
1011 console . error ( 'Cannot find a git repository in current path.' )
1112 }
You can’t perform that action at this time.
0 commit comments