Skip to content

Commit

Permalink
Feat/OIDC (#69)
Browse files Browse the repository at this point in the history
- Introduce OIDC proof of concept with SIWT
- Update versioning and tooling

---------

Signed-off-by: Roy Scheeren <[email protected]>
Signed-off-by: Carlo van Driesten <[email protected]>
Co-authored-by: Carlo van Driesten <[email protected]>
  • Loading branch information
royscheeren and jdsika authored Aug 1, 2024
1 parent 9378a1d commit 523bf5f
Show file tree
Hide file tree
Showing 204 changed files with 38,225 additions and 42,024 deletions.
13 changes: 0 additions & 13 deletions .editorconfig

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
22 changes: 7 additions & 15 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx", "unused-imports"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand All @@ -25,25 +25,17 @@
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: 'eu-central-1'
- run: npx nx run-many --target=build --exclude=acq,core,discord,discord-bot-ui,discord-bot-ui-e2e,react,sdk,siwt.xyz,siwt.xyz-e2e,smart-contracts --skip-nx-cache
- run: npx nx run docs.siwt.xyz --skip-nx-cache
- run: |
touch .env
echo SSL_CERTIFICATE_ARN=$CERTIFICATE_ARN >> .env
echo ENV=$ENV >> .env
cat .env
- name: Deploy
run: npx nx run-many --target=deploy --exclude=acq,core,discord,discord-bot-ui,discord-bot-ui-e2e,react,sdk,siwt.xyz,siwt.xyz-e2e,smart-contracts --production --skip-nx-cache
run: npx nx deploy docs.siwt.xyz --production --skip-nx-cache
- name: Invalidate Distribution
run: aws cloudfront create-invalidation --distribution-id=$CLOUDFRONT_DISTRIBUTION_ID --paths '/*'
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
run: npm install --prefix ./packages/docs.siwt.xyz

- run: npx nx format:check
- run: npx nx run-many --target=test --parallel=3 --exclude=smart-contracts --skip-nx-cache
- run: npx nx run-many --target=test --parallel=3 --exclude=smart-contracts,discord,ory-hydra,oidc-client,oidc-bridge --skip-nx-cache
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tmp
*.db
.env
.env.*
!.env.example

.nx

# dependencies
Expand Down Expand Up @@ -44,10 +46,14 @@ Thumbs.db

# Next.js
.next
.open-next

out

# Docusaurus
.docusaurus

.ligo/
deploy/
deploy/

.sst
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Add files here to ignore them from prettier formatting

/dist
/coverage
/.nx/cache
/.nx/workspace-data
7 changes: 1 addition & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"recommendations": [
"nrwl.angular-console",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"dbaeumer.vscode-eslint"
]
"recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode", "firsttris.vscode-jest-runner"]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 vDL Digital Ventures GmbH
Copyright (c) 2022-2024 vDL Digital Ventures GmbH <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 0 additions & 4 deletions babel.config.json

This file was deleted.

8 changes: 4 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getJestProjects } from '@nx/jest'
import { getJestProjectsAsync } from '@nx/jest'

export default {
projects: getJestProjects(),
}
export default async () => ({
projects: await getJestProjectsAsync(),
})
15 changes: 1 addition & 14 deletions jest.preset.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
const nxPreset = require('@nx/jest/preset').default

module.exports = {
...nxPreset,
/* TODO: Update to latest Jest snapshotFormat
* By default Nx has kept the older style of Jest Snapshot formats
* to prevent breaking of any existing tests with snapshots.
* It's recommend you update to the latest format.
* You can do this by removing snapshotFormat property
* and running tests with --update-snapshot flag.
* Example: "nx affected --targets=test --update-snapshot"
* More info: https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
*/
snapshotFormat: { escapeString: true, printBasicPrototype: true },
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
}
module.exports = { ...nxPreset }
Loading

0 comments on commit 523bf5f

Please sign in to comment.