Skip to content

Commit

Permalink
format write #7
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeenciu committed Jul 8, 2023
1 parent 3659706 commit a19214e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build and deploy
on:
pull_request:
types:
- "closed"
- 'closed'
branches:
- "master"
- 'master'

jobs:
main:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Run on PR
on:
pull_request:


jobs:
main:
runs-on: ubuntu-latest
Expand Down
8 changes: 5 additions & 3 deletions libs/test-helpers/src/firestore/delete-collection.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
export async function deleteCollection(collectionPath: string) {
const endpoint = process.env['FIRESTORE_EMULATOR_HOST'] as string
const project = process.env['GCLOUD_PROJECT'] as string
const endpoint = process.env['FIRESTORE_EMULATOR_HOST'] as string;
const project = process.env['GCLOUD_PROJECT'] as string;

console.log(
`http://${endpoint}/emulator/v1/projects/${project}/databases/(default)/documents/${collectionPath}`
);
const response = await fetch(
`http://${endpoint}/emulator/v1/projects/${project}/databases/(default)/documents/${collectionPath}`,
{
Expand All @@ -12,4 +15,3 @@ export async function deleteCollection(collectionPath: string) {
throw new Error('Trouble clearing Emulator: ' + (await response.text()));
}
}

6 changes: 5 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
"inputs": ["default", "^production"]
},
"lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore"]
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json",
"{workspaceRoot}/.eslintignore"
]
}
},
"namedInputs": {
Expand Down
22 changes: 5 additions & 17 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,18 @@
"importHelpers": true,
"target": "es2015",
"module": "esnext",
"lib": [
"es2020",
"dom"
],
"lib": ["es2020", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@rovacc/clients": [
"libs/clients/src/index.ts"
],
"@rovacc/test-helpers": [
"libs/test-helpers/src/index.ts"
],
"@rovacc/training-events": [
"libs/training-events/src/index.ts"
],
"@rovacc/clients": ["libs/clients/src/index.ts"],
"@rovacc/test-helpers": ["libs/test-helpers/src/index.ts"],
"@rovacc/training-events": ["libs/training-events/src/index.ts"],
"@rovacc/training-events-types": [
"libs/training-events-types/src/index.ts"
]
}
},
"exclude": [
"node_modules",
"tmp"
]
"exclude": ["node_modules", "tmp"]
}

0 comments on commit a19214e

Please sign in to comment.