-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from icdocsoc/chore-flatten-dirs
Chore: More directories to be clearer; fix CI
- Loading branch information
Showing
77 changed files
with
463 additions
and
355 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
|
||
[workspace] | ||
resolver = '2' | ||
members = [ | ||
'packages/docsoc_clickup_calendar_sync', | ||
] | ||
members = ['clickup/calendar-sync'] | ||
|
||
[profile.release] | ||
lto = true |
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
...s/docsoc_clickup_calendar_sync/Cargo.toml → clickup/calendar-sync/Cargo.toml
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
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,32 @@ | ||
services: | ||
sync_job: | ||
image: docsoc/docsoc_clickup_calendar_sync | ||
build: | ||
context: ../.. # We need the monorepo root as deps are managed and built to the root | ||
dockerfile: ./packages/docsoc_clickup_calendar_sync/Dockerfile | ||
init: true # don't run as PID 1 so we can kill the sleep process | ||
# Run every 30 mins | ||
command: ["./scripts/run_interval.sh", "/usr/local/bin/docsoc_clickup_calendar_sync", "30m"] | ||
depends_on: | ||
- postgres | ||
environment: | ||
# The following environment variables should be set in the .env file | ||
# and docker compose will auto load them | ||
DATABASE_URL: postgresql://docsoc:docsoc@postgres/docsoc | ||
DOCSOC_PRIVATE_ICAL: ${DOCSOC_PRIVATE_ICAL} | ||
DOCSOC_START_DATE: ${DOCSOC_START_DATE} | ||
DOCSOC_END_DATE: ${DOCSOC_END_DATE} | ||
CLICKUP_ACCESS_TOKEN: ${CLICKUP_ACCESS_TOKEN} | ||
CLICKUP_TARGET_LIST_ID: ${CLICKUP_TARGET_LIST_ID} | ||
CLICKUP_RATE_LIMIT_PER_MIN: ${CLICKUP_RATE_LIMIT_PER_MIN} | ||
postgres: | ||
image: postgres:16 | ||
environment: | ||
POSTGRES_USER: docsoc | ||
POSTGRES_PASSWORD: docsoc | ||
POSTGRES_DB: docsoc | ||
volumes: | ||
- docsoc_clickup_postgres_data:/var/lib/postgresql/data | ||
|
||
volumes: | ||
docsoc_clickup_postgres_data: |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,69 @@ | ||
{ | ||
"name": "calendar-sync", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"projectType": "application", | ||
"sourceRoot": "clickup/calendar-sync/src", | ||
"tags": [], | ||
"targets": { | ||
"build": { | ||
"executor": "@monodon/rust:build", | ||
"outputs": ["{options.target-dir}"], | ||
"options": { | ||
"target-dir": "dist/target/docsoc_clickup_calendar_sync" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"release": true | ||
} | ||
} | ||
}, | ||
"test": { | ||
"executor": "@monodon/rust:test", | ||
"outputs": ["{options.target-dir}"], | ||
"options": { | ||
"target-dir": "dist/target/docsoc_clickup_calendar_sync" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"release": true | ||
} | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@monodon/rust:lint", | ||
"outputs": ["{options.target-dir}"], | ||
"options": { | ||
"target-dir": "dist/target/docsoc_clickup_calendar_sync" | ||
} | ||
}, | ||
"run": { | ||
"executor": "@monodon/rust:run", | ||
"outputs": ["{options.target-dir}"], | ||
"options": { | ||
"target-dir": "dist/target/docsoc_clickup_calendar_sync" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"release": true | ||
} | ||
} | ||
}, | ||
"container": { | ||
"executor": "@nx-tools/nx-container:build", | ||
"options": { | ||
"engine": "docker", | ||
"metadata": { | ||
"images": ["docsoc/docsoc_clickup_calendar_sync"], | ||
"load": true, | ||
"tags": [ | ||
"type=schedule", | ||
"type=ref,event=branch", | ||
"type=ref,event=tag", | ||
"type=ref,event=pr", | ||
"type=sha,prefix=sha-" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,2 @@ | ||
node_modules | ||
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,25 @@ | ||
{ | ||
"extends": ["../../.eslintrc.json"], | ||
"ignorePatterns": ["!**/*"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.ts", "*.tsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.json"], | ||
"parser": "jsonc-eslint-parser", | ||
"rules": { | ||
"@nx/dependency-checks": "error" | ||
} | ||
} | ||
] | ||
} |
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,3 @@ | ||
{ | ||
"editor.formatOnSave": true | ||
} |
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,9 @@ | ||
# libmailmerge | ||
|
||
This library was generated with [Nx](https://nx.dev). | ||
|
||
## Building | ||
|
||
Run `nx build libmailmerge` to build the library. | ||
|
||
## Plan |
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,7 @@ | ||
/* eslint-disable */ | ||
export default { | ||
displayName: "libmailmerge", | ||
preset: "../../jest.preset.js", | ||
coverageDirectory: "../../coverage/email/libmailmerge", | ||
testMatch: ["<rootDir>/test/**/*.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "libmailmerge", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "email/libmailmerge/src", | ||
"projectType": "application", | ||
"tags": [], | ||
"targets": { | ||
"build": { | ||
"executor": "@nx/js:tsc", | ||
"outputs": [ | ||
"{options.outputPath}" | ||
], | ||
"options": { | ||
"outputPath": "dist/email/libmailmerge", | ||
"main": "email/libmailmerge/src/cli.ts", | ||
"tsConfig": "email/libmailmerge/tsconfig.lib.json", | ||
"assets": [], | ||
"rootDir": "email/libmailmerge/src" | ||
} | ||
}, | ||
"run": { | ||
"executor": "@nrwl/workspace:run-commands", | ||
"outputs": [], | ||
"options": { | ||
"command": "ts-node src/cli.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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion
1
.../interactivity/mapCSVFieldsInteractive.ts → .../interactivity/mapCSVFieldsInteractive.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.
7 changes: 4 additions & 3 deletions
7
...il/docsoc-mail-merge/src/mailer/mailer.ts → email/libmailmerge/src/mailer/mailer.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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.