-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the need for core-js and building with babel
Seems like overkill to have so many dependendies and a build step to just support `import` and `export` Breaking changes: - Requires node 8.3 or higher - Removes all `lib` files from npm package
- Loading branch information
Showing
29 changed files
with
331 additions
and
1,828 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
"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" : ">=7.6" | ||
"engines": { | ||
"node": ">=8.3" | ||
}, | ||
"scripts": { | ||
"lint": "standard --verbose | snazzy", | ||
|
@@ -16,12 +16,9 @@ | |
"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", | ||
"clean": "rimraf lib coverage", | ||
"build": "babel src -d lib", | ||
"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", | ||
|
@@ -47,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", | ||
|
@@ -70,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": [ | ||
|
@@ -94,7 +75,6 @@ | |
} | ||
}, | ||
"standard": { | ||
"parser": "babel-eslint", | ||
"ignore": [ | ||
"test/data/" | ||
] | ||
|
@@ -108,7 +88,6 @@ | |
"report-dir": "./coverage", | ||
"temp-dir": "./coverage/.nyc_output", | ||
"require": [ | ||
"core-js/stable", | ||
"@babel/register" | ||
], | ||
"reporter": [ | ||
|
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) | ||
}) |
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
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
Oops, something went wrong.