1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 09:46:58 +01:00

fix: update release-it config

This commit is contained in:
getlarge 2021-03-09 12:20:24 +01:00
parent ba87737d97
commit 41ce1178c7
No known key found for this signature in database
GPG Key ID: E4E13243600F9566
2 changed files with 26 additions and 8 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

View File

@ -26,18 +26,13 @@
"clean": "rimraf dist/bundle dist/browser dist/node", "clean": "rimraf dist/bundle dist/browser dist/node",
"test": "npm run lint && nyc ava && npm run report-coverage", "test": "npm run lint && nyc ava && npm run report-coverage",
"thanks": "cowsay Hi, thanks for your interest in BigchainDB. We appreciate your contribution!", "thanks": "cowsay Hi, thanks for your interest in BigchainDB. We appreciate your contribution!",
"release": "release-it --git.tagName='v${version}' --github.release --npm.publish --non-interactive", "release": "read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it --src.tagName='v%s'",
"release-minor": "release-it minor --git.tagName='v${version}' --github.release --npm.publish --non-interactive", "release-minor": "release-it minor --non-interactive",
"release-major": "release-it major --git.tagName='v${version}' --github.release --npm.publish --non-interactive", "release-major": "release-it major --non-interactive",
"prepublishOnly": "npm run build", "prepublishOnly": "npm run build",
"report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov", "report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"doc": "documentation build src/index.js -f md -o API.md -g --markdown-toc" "doc": "documentation build src/index.js -f md -o API.md -g --markdown-toc"
}, },
"lint-staged": {
"*.js": [
"eslint"
]
},
"devDependencies": { "devDependencies": {
"@ava/babel": "^1.0.1", "@ava/babel": "^1.0.1",
"@babel/cli": "^7.13.0", "@babel/cli": "^7.13.0",
@ -54,6 +49,7 @@
"@babel/register": "^7.13.8", "@babel/register": "^7.13.8",
"ava": "^3.15.0", "ava": "^3.15.0",
"babel-loader": "^8.2.2", "babel-loader": "^8.2.2",
"codecov": "^3.8.1",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"documentation": "^13.1.1", "documentation": "^13.1.1",
"eslint": "^7.21.0", "eslint": "^7.21.0",
@ -97,6 +93,11 @@
"decentralized", "decentralized",
"dapp" "dapp"
], ],
"lint-staged": {
"*.js": [
"eslint"
]
},
"ava": { "ava": {
"files": [ "files": [
"test/**/*.js", "test/**/*.js",
@ -120,5 +121,21 @@
"hooks": { "hooks": {
"pre-commit": "lint-staged" "pre-commit": "lint-staged"
} }
},
"release-it": {
"github": {
"release": true
},
"git": {
"tagName": "v${version}"
},
"hooks": {
"before:init": [
"npm run test"
]
},
"npm": {
"publish": true
}
} }
} }