Skip to content

Commit

Permalink
fix: update deps, dont use babel, c8, log fixes (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS authored Feb 23, 2022
1 parent 7d5f2a1 commit 53ad248
Show file tree
Hide file tree
Showing 13 changed files with 5,164 additions and 8,468 deletions.
13 changes: 0 additions & 13 deletions .babelrc

This file was deleted.

5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "makeomatic"
"extends": "makeomatic",
"rules": {
"default-param-last": 0
}
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

"`$(npm bin)/mdep bin commitlint`" --edit $1
8 changes: 8 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

case "$2,$3" in
merge,)
ex "+%s/Merge branch '\([^']\+\)'/chore(merge): \1/i" -scwq $1 ;;
*) ;;
esac
27 changes: 0 additions & 27 deletions .mdeprc

This file was deleted.

20 changes: 20 additions & 0 deletions .mdeprc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
node: "16",
auto_compose: true,
services: ['rabbitmq'],
nycCoverage: false,
nycReport: false,
test_framework: 'c8 /src/node_modules/.bin/mocha',
extras: {
tester: {
environment: {
NODE_ENV: 'test',
RABBITMQ_PORT_5672_TCP_ADDR: 'rabbitmq'
}
}
},
tests: "./test/*.js",
rebuild: ["microtime"],
pre: "rimraf ./coverage/tmp || true",
post_exec: "pnpm exec -- c8 report -r text -r lcov"
}
6 changes: 1 addition & 5 deletions .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
"exclude": [
"src/**/*.spec.js"
],
"require": [
"@babel/register"
],
"sourceMap": false,
"instrument": false,
"cache": true,
"clean": false,
"reporter": [
"lcov",
"json",
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ The MIT License (MIT)

Copyright (c) 2015-2017 Vitaly Aminev
Copyright (c) 2015-2017 Remi Development L.P.
Copyright (c) 2017-2018 Makeomatic Inc.
Copyright (c) 2017-2022 Makeomatic Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
77 changes: 32 additions & 45 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
"name": "@microfleet/transport-amqp",
"description": "microservice utils based on amqp transport layer",
"version": "0.0.0-development",
"main": "./lib/amqp.js",
"main": "./src/amqp.js",
"types": "./types/index.d.ts",
"scripts": {
"compile": "babel -d ./lib ./src && yarn types",
"compile": "pnpm run types",
"types": "tsc src/**.js --declaration --allowJs --emitDeclarationOnly --outDir types",
"lint": "eslint ./src",
"test": "yarn lint && yarn test:e2e",
"test": "pnpm run lint && pnpm run test:e2e",
"test:e2e": "mdep test run",
"prepublishOnly": "yarn compile",
"bench": "yarn compile && node ./bench/roundtrip.js",
"semantic-release": "semantic-release"
"prepublishOnly": "pnpm run compile",
"bench": "pnpm run compile && node ./bench/roundtrip.js",
"semantic-release": "semantic-release",
"prepare": "mdep install"
},
"engines": {
"node": ">= 10.15.0",
"npm": ">= 4.x.x"
"node": ">= 14.17.0"
},
"repository": {
"type": "git",
Expand All @@ -29,30 +29,25 @@
},
"homepage": "https://github.com/microfleet/transport-amqp#readme",
"devDependencies": {
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-transform-strict-mode": "^7.12.13",
"@babel/register": "^7.13.16",
"@makeomatic/deploy": "^10.4.0",
"@types/bluebird": "^3.5.35",
"babel-plugin-istanbul": "^6.0.0",
"@makeomatic/deploy": "^12.6.3",
"@types/bluebird": "^3.5.36",
"benchmark": "^2.1.4",
"chai": "^4.3.4",
"codecov": "^3.8.2",
"c8": "^7.11.0",
"chai": "^4.3.6",
"codecov": "^3.8.3",
"cross-env": "^7.0.3",
"eslint": "^7.27.0",
"eslint-config-makeomatic": "^5.0.4",
"eslint-plugin-import": "^2.23.3",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-unicorn": "^32.0.1",
"jaeger-client": "^3.18.1",
"eslint": "^8.9.0",
"eslint-config-makeomatic": "^5.1.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-mocha": "^10.0.3",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-unicorn": "^41.0.0",
"jaeger-client": "^3.19.0",
"microtime": "^3.0.0",
"mocha": "^8.4.0",
"nyc": "^15.1.0",
"sinon": "^11.1.1",
"typescript": "^4.3.2"
"mocha": "^9.2.1",
"rimraf": "^3.0.2",
"sinon": "^13.0.1",
"typescript": "^4.5.5"
},
"peerDependencies": {
"common-errors": "~1.x.x"
Expand All @@ -61,30 +56,22 @@
"@microfleet/amqp-coffee": "^1.3.1",
"bluebird": "^3.7.2",
"common-errors": "^1.2.0",
"debug": "^4.3.1",
"debug": "^4.3.3",
"eventemitter3": "^4.0.7",
"flatstr": "^1.0.12",
"hashlru": "^2.3.0",
"is": "^3.3.0",
"joi": "^17.4.0",
"joi": "^17.6.0",
"json-stringify-safe": "^5.0.1",
"lodash": "^4.17.21",
"object-hash": "^2.2.0",
"opentracing": "^0.14.5",
"pino": "^6.11.3",
"sonic-boom": "^2.0.1",
"object-hash": "^3.0.0",
"opentracing": "^0.14.7",
"pino": "^7.8.0",
"sonic-boom": "^2.6.0",
"uuid": "^8.3.2"
},
"files": [
"lib/",
"src/",
"types/",
"yarn.lock"
],
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"prepare-commit-msg": "./node_modules/@makeomatic/deploy/git-hooks/prepare-commit-msg $HUSKY_GIT_PARAMS"
}
}
"types/"
]
}
Loading

0 comments on commit 53ad248

Please sign in to comment.