Skip to content

Commit

Permalink
Misc Backend Cleanup 1 (#470)
Browse files Browse the repository at this point in the history
* fix: removed unnecessary (and failing) cors proxy from isomorphic-git push calls

* refactor: move all isomercms-backend code into a src subdir

* refactor: consolidate routes

* refactor: remove outdated auth.js

* refactor: consolidate middleware

* refactor: move MailClient, SmsClient, and TotpGenerator into utilServices

* test: fixed accidental renaming of a Users integration test.

* refactor: moves SmsClient, and TotpGenerator back to services/identity
  • Loading branch information
rc-davis authored Jul 14, 2022
1 parent fb0c098 commit df9a9f4
Show file tree
Hide file tree
Showing 221 changed files with 115 additions and 623 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@
"alwaysTryTypes": true
},
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"alias": [
["@root", "./"],
["@root", "."],
["@classes", "./classes"],
["@errors", "./errors"],
["@logger", "./logger"],
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules/
build/
*.pem
.env*
.idea/
.idea/
.DS_Store
8 changes: 4 additions & 4 deletions .sequelizerc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const path = require("path")

module.exports = {
config: path.resolve("./database", "config.js"),
"models-path": path.resolve("./database", "models"),
"seeders-path": path.resolve("./database", "seeders"),
"migrations-path": path.resolve("./database", "migrations"),
config: path.resolve("src", "database", "config.js"),
"models-path": path.resolve("src", "database", "models"),
"seeders-path": path.resolve("src", "database", "seeders"),
"migrations-path": path.resolve("src", "database", "migrations"),
}
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
rootDir: "src",
moduleNameMapper: {
"^@root/(.*)": "<rootDir>/$1",
"^@classes/(.*)": "<rootDir>/classes/$1",
Expand Down
Loading

0 comments on commit df9a9f4

Please sign in to comment.