Skip to content

Commit

Permalink
feat: upgrade deps, introduce publish options
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS committed Jan 31, 2023
1 parent 1c63641 commit 02718fb
Show file tree
Hide file tree
Showing 7 changed files with 4,211 additions and 4,904 deletions.
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"extends": "makeomatic",
"parser": "babel-eslint"
"parserOptions": {
"ecmaVersion": 2023
}
}
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
36 changes: 15 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@
},
"homepage": "https://github.com/makeomatic/ms-mailer-client#readme",
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-transform-strict-mode": "^7.8.3",
"@babel/register": "^7.8.6",
"@makeomatic/deploy": "^10.1.3",
"@microfleet/validation": "^9.0.1",
"babel-eslint": "^10.1.0",
"common-errors": "^1.0.5",
"eslint": "^6.8.0",
"eslint-config-makeomatic": "^4.0.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-promise": "^4.2.1",
"mocha": "^7.1.0"
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-strict-mode": "^7.18.6",
"@babel/register": "^7.18.9",
"@makeomatic/deploy": "^12.9.0",
"@microfleet/validation": "^11.1.3",
"common-errors": "^1.2.0",
"eslint": "^8.33.0",
"eslint-config-makeomatic": "^5.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^45.0.2",
"mocha": "^10.2.0"
},
"peerDependencies": {
"@microfleet/transport-amqp": ">= 12.x.x",
Expand All @@ -56,11 +56,5 @@
},
"dependencies": {
"lodash.merge": "^4.6.2"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"prepare-commit-msg": "./node_modules/@makeomatic/deploy/git-hooks/prepare-commit-msg $HUSKY_GIT_PARAMS"
}
}
}
17 changes: 15 additions & 2 deletions schemas/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"type": "object",
"required": [
"prefix",
"routes"
"routes",
"publishOptions"
],
"properties": {
"prefix": {
Expand All @@ -22,6 +23,18 @@
"minLength": 1
}
}
},
"publishOptions": {
"properties": {
"adhoc": {
"type": "object",
"additionalProperties": true
},
"predefined": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ module.exports = class MailerClient {
adhoc: 'adhoc',
predefined: 'predefined',
},
publishOptions: {
adhoc: {},
predefined: {},
},
};

/**
Expand Down
Loading

0 comments on commit 02718fb

Please sign in to comment.