-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor codebase #144
Merged
Merged
Refactor codebase #144
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
09325ac
Refactor git data fetching logic
cookpete 43d7c17
Add --starting-version
cookpete 4aead76
Improve merge commit patterns
cookpete a2ba4ac
Improve progress output
cookpete 868d4ec
Fix tests
cookpete 2383380
Remove the need for core-js and building with babel
cookpete 0aff625
Add breaking change prefix to merges and fixes
cookpete File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
node_modules | ||
package-lock.json | ||
yarn.lock | ||
npm-debug.log | ||
/lib | ||
/coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
src | ||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,23 @@ | |
"name": "auto-changelog", | ||
"version": "1.16.4", | ||
"description": "Command line tool for generating a changelog from git tags and commit history", | ||
"main": "./lib/index.js", | ||
"main": "./src/index.js", | ||
"bin": { | ||
"auto-changelog": "./lib/index.js" | ||
"auto-changelog": "./src/index.js" | ||
}, | ||
"engines": { | ||
"node": ">=8.3" | ||
}, | ||
"scripts": { | ||
"lint": "standard --verbose | snazzy", | ||
"lint-fix": "standard --fix", | ||
"lint-markdown": "markdownlint README.md test/data/*.md", | ||
"test": "cross-env NODE_ENV=test nyc mocha test", | ||
"coverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json", | ||
"clean": "rimraf lib coverage", | ||
"build": "babel src -d lib", | ||
"test": "cross-env NODE_ENV=test mocha -r @babel/register test", | ||
"test-coverage": "cross-env NODE_ENV=test nyc mocha test", | ||
"report-coverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json", | ||
"preversion": "npm run lint && npm run test", | ||
"version": "babel-node src/index.js --package && git add CHANGELOG.md", | ||
"prepublishOnly": "npm run clean && npm run build", | ||
"generate-test-data": "cross-env NODE_ENV=test babel-node scripts/generate-test-data.js" | ||
"version": "node src/index.js --package && git add CHANGELOG.md", | ||
"generate-test-data": "cross-env NODE_ENV=test node scripts/generate-test-data.js" | ||
}, | ||
"author": "Pete Cook <[email protected]> (https://github.com/cookpete)", | ||
"homepage": "https://github.com/CookPete/auto-changelog", | ||
|
@@ -43,21 +44,15 @@ | |
"license": "MIT", | ||
"dependencies": { | ||
"commander": "^5.0.0", | ||
"core-js": "^3.6.4", | ||
"handlebars": "^4.7.3", | ||
"lodash.uniqby": "^4.7.0", | ||
"node-fetch": "^2.6.0", | ||
"parse-github-url": "^1.0.2", | ||
"regenerator-runtime": "^0.13.5", | ||
"semver": "^6.3.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.0", | ||
"@babel/node": "^7.8.7", | ||
"@babel/preset-env": "^7.9.0", | ||
"@babel/register": "^7.9.0", | ||
"babel-eslint": "^10.1.0", | ||
"babel-plugin-istanbul": "^6.0.0", | ||
"babel-plugin-rewire": "^1.2.0", | ||
"chai": "^4.2.0", | ||
|
@@ -66,20 +61,10 @@ | |
"markdownlint-cli": "^0.22.0", | ||
"mocha": "^7.1.1", | ||
"nyc": "^15.0.0", | ||
"rimraf": "^3.0.2", | ||
"snazzy": "^8.0.0", | ||
"standard": "^14.3.3" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"useBuiltIns": "usage", | ||
"corejs": 3 | ||
} | ||
] | ||
], | ||
"env": { | ||
"test": { | ||
"plugins": [ | ||
|
@@ -90,7 +75,6 @@ | |
} | ||
}, | ||
"standard": { | ||
"parser": "babel-eslint", | ||
"ignore": [ | ||
"test/data/" | ||
] | ||
|
@@ -104,12 +88,14 @@ | |
"report-dir": "./coverage", | ||
"temp-dir": "./coverage/.nyc_output", | ||
"require": [ | ||
"core-js/stable", | ||
"@babel/register" | ||
], | ||
"reporter": [ | ||
"text", | ||
"html" | ||
] | ||
}, | ||
"auto-changelog": { | ||
"breakingPattern": "Breaking change" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
#!/usr/bin/env node | ||
|
||
import 'core-js/stable' | ||
import run from './run' | ||
const { run } = require('./run') | ||
|
||
run(process.argv) | ||
.catch(error => { | ||
console.log('\n') | ||
console.error(error) | ||
process.exit(1) | ||
}) | ||
run(process.argv).catch(error => { | ||
console.log('\n') | ||
console.error(error) | ||
process.exit(1) | ||
}) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a semver major then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Will publish
2.0.0
once this is done and merged. It's not completely "breaking" as I guess it will just ignore this param and still generate a changelog (albiet one with more commits than desired) but a major bump feels cleaner.