Skip to content

Commit

Permalink
feat(medusa-plugin-sentry): Finalise sentry plugin + add support for …
Browse files Browse the repository at this point in the history
…web hooks + Add API end points to fetch transactrions and transaction events paginated"
  • Loading branch information
adrien2p committed Oct 11, 2022
1 parent 9e0bc7d commit 204cc69
Show file tree
Hide file tree
Showing 19 changed files with 1,053 additions and 219 deletions.
23 changes: 21 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,28 @@ module.exports = {
'**/.prettier*',
'**/.version*',
'**/*.md',
'**/*.js'
'**/*.js',
'**/*.js.map',
'**/*.d.ts'
],
overrides: [
{
files: ["*"],
"rules": {
"prefer-rest-params": "off"
}
}
],
rules: {
"prettier/prettier": "error"
"prettier/prettier": "error",
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Function": false
},
"extendDefaults": true
}
]
},
};
69 changes: 0 additions & 69 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/payment-paytr.yml

This file was deleted.

31 changes: 4 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<a href="https://github.com/adrien2p/medusa-plugins/issues"><img alt="Issues" src="https://img.shields.io/github/issues/adrien2p/medusa-plugins?style=flat" height="20"/></a>
<a href="https://github.com/adrien2p/medusa-plugins/blob/main/LICENSE"><img alt="Licence" src="https://img.shields.io/github/license/adrien2p/medusa-plugins?style=flat" height="20"/></a>
<a href="https://github.com/adrien2p/medusa-plugins/blob/main/CONTRIBUTING.md"><img alt="Contributing" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" height="20"/></a>
<a href="https://github.com/adrien2p/medusa-plugins/actions/workflows/codeql-analysis.yml"><img alt="CodeQL security analysis status" src="https://github.com/adrien2p/medusa-plugins/actions/workflows/codeql-analysis.yml/badge.svg" height="20"/></a>
</p>

<p align="center">
Expand Down Expand Up @@ -48,9 +47,9 @@ make it easier for you to find them :rocket:

# Plugins

| Name | Target | Badges |
|---------------------------|---------------|----------------------------------------------|
| `payment-paytr` | `medusa` | |
| Name | Target | Badges |
|---------------------------------------------------------------------------------------------------------------------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [`medusa-plugin-sentry (Link)`](https://github.com/adrien2p/medusa-plugins/tree/main/packages/medusa-plugin-sentry) | `medusa` | <a href="https://npmcharts.com/compare/medusa-plugin-sentry?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/medusa-plugin-sentry.svg" height="20"/></a> <a href="https://www.npmjs.com/package/medusa-plugin-sentry"><img alt="NPM Version" src="https://img.shields.io/npm/v/medusa-plugin-sentry.svg" height="20"/></a> |

[![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/cloudy.png)](#discussions)

Expand All @@ -71,26 +70,4 @@ If you found the package helpful consider supporting me with a coffee

# Contribute

Contributions are welcome! You can look at the contribution [guidelines](./CONTRIBUTING.md)

## Test a package locally

Go to the plugin package directory and Build your local plugin

```bash
npm run build
npm pack
```

Then copy the tgz file newly creating by the `pack` command into your project.

## Target project

In your target project past the tgz file previously copied.
then update your `package.json`

```bash
"my-package": "file:my-package-1.0.0.tgz"
```

now run `npm i` and run your project
Contributions are welcome! You can look at the contribution [guidelines](./CONTRIBUTING.md)
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
]
},
"scripts": {
"build": "run-p clean run-s build:api /node_modules/.bin/lerna/tsc -b ./packages/tsconfig.api-base.json",
"bootstrap": "./node_modules/.bin/lerna/lerna bootstrap",
"clean": "./node_modules/.bin/lerna/lerna run --parallel clean",
"release": "./node_modules/.bin/lerna/lerna publish",
Expand Down Expand Up @@ -46,6 +45,6 @@
"npm-run-all": "^4.1.5",
"prettier": "^2.5.0",
"tslint": "~6.1.0",
"typescript": "^3.7.5"
"typescript": "^4.5.5"
}
}
16 changes: 10 additions & 6 deletions packages/medusa-plugin-sentry/.gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
.idea
/lib
/dist
api/

/api
/handlers
/utils
/types
/services

node_modules
.DS_store
**/.DS_Store

dist
coverage

/tsconfig.tsbuildinfo
/package-lock.json
/yarn.json
tsconfig.tsbuildinfo
package-lock.json
yarn.json

.env.*
Loading

0 comments on commit 204cc69

Please sign in to comment.