-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from beabee-communityrm/refactor/split-webhooks
refactor: move webhooks to separate app
- Loading branch information
Showing
37 changed files
with
468 additions
and
276 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/dist/ |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { baseConfig } from "@beabee/prettier-config"; | ||
export default baseConfig; |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"name": "@beabee/webhooks", | ||
"version": "0.16.0", | ||
"description": "A community engagement system for community newsrooms", | ||
"private": true, | ||
"main": "dist/app.js", | ||
"type": "commonjs", | ||
"imports": { | ||
"#*": "./dist/*.js" | ||
}, | ||
"scripts": { | ||
"build": "rimraf built/ && tsc -p ./tsconfig.build.json", | ||
"dev": "tsc-watch -p tsconfig.build.json --noClear --onSuccess 'docker compose restart webhook_app'", | ||
"watch": "tsc-watch -p tsconfig.build.json --noClear", | ||
"format": "prettier --write .", | ||
"generate:index": "barrelsby -c barrelsby.json", | ||
"test": "jest --setupFiles dotenv/config --passWithNoTests", | ||
"check": "concurrently 'yarn:check:*'", | ||
"check:tsc": "tsc --noEmit", | ||
"check:prettier": "prettier -c .", | ||
"check:dependencies": "dpdm -T --no-warning --no-tree --exit-code circular:1 src/app.ts" | ||
}, | ||
"dependencies": { | ||
"@beabee/beabee-common": "workspace:^", | ||
"@beabee/core": "workspace:^", | ||
"body-parser": "^1.20.2", | ||
"date-fns": "^4.1.0", | ||
"express": "^4.19.2", | ||
"gocardless-nodejs": "^3.25.0", | ||
"moment": "^2.30.1", | ||
"stripe": "^15.9.0", | ||
"typeorm": "^0.3.20" | ||
}, | ||
"devDependencies": { | ||
"@beabee/prettier-config": "workspace:^", | ||
"@beabee/tsconfig": "workspace:^", | ||
"@tsconfig/node20": "^20.1.4", | ||
"@types/express": "^4.17.21", | ||
"@types/node": "^20.14.1", | ||
"barrelsby": "^2.8.1", | ||
"concurrently": "^9.1.0", | ||
"dotenv": "^16.4.5", | ||
"dpdm": "^3.14.0", | ||
"jest": "^29.7.0", | ||
"prettier": "3.3.3", | ||
"rimraf": "^6.0.1", | ||
"ts-jest": "^29.2.5", | ||
"ts-node": "^10.9.2", | ||
"tsc-watch": "^6.3.0", | ||
"typescript": "^5.6.3" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/beabee-communityrm/monorepo.git" | ||
}, | ||
"author": "", | ||
"license": "AGPL-3.0", | ||
"bugs": { | ||
"url": "https://github.com/beabee-communityrm/monorepo/issues" | ||
}, | ||
"homepage": "https://github.com/beabee-communityrm/monorepo/blob/main/apps/webhooks/README.md" | ||
} |
10 changes: 4 additions & 6 deletions
10
apps/backend/src/webhooks/app.ts → apps/webhooks/src/app.ts
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
File renamed without changes.
File renamed without changes.
9 changes: 2 additions & 7 deletions
9
apps/backend/src/tools/stripe/resync.ts → apps/webhooks/src/tools/resync-stripe.ts
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": "@beabee/tsconfig/tsconfig.server.json", | ||
"include": ["./src/**/*", "./src/**/*.json"], | ||
"exclude": ["./**/*.test.ts"], | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"paths": {}, | ||
|
||
// Add additional type root for local typings | ||
"typeRoots": ["./src/typings", "./node_modules/@types/"] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": [ | ||
"./tsconfig.build.json", | ||
"@beabee/tsconfig/tsconfig.options.json" | ||
], | ||
"exclude": [], // Override tsconfig.build.json exclude | ||
"references": [{ "path": "../../packages/core" }], | ||
"compilerOptions": { | ||
"noEmit": true | ||
} | ||
} |
Oops, something went wrong.