Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM --platform=linux/amd64 mcr.microsoft.com/devcontainers/typescript-node:dev-22-bookworm
11 changes: 9 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"forwardPorts": [8000],
"image": "mcr.microsoft.com/devcontainers/typescript-node",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"forwardPorts": [
8000
],
"remoteUser": "node",
"updateContentCommand": "npm clean-install && npm run build"
}
20 changes: 10 additions & 10 deletions .eslintrc.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ rules:
- '**/*.css'
- dotenv/config
settings:
import/extensions:
- .cjs
- .mjs
- .js
- .jsx
- .cts
- .mts
- .ts
- .tsx
import/resolver:
node: true
node:
extensions:
- .cjs
- .mjs
- .js
- .jsx
- .cts
- .mts
- .ts
- .tsx
typescript: true
2 changes: 2 additions & 0 deletions .eslintrc.react.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
extends:
- plugin:react/recommended
- plugin:react-hooks/recommended
plugins:
- react
- react-hooks
11 changes: 11 additions & 0 deletions .eslintrc.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
env:
commonjs: true
es2021: true
es2022: true
jest: true
rules:
# Disable for convenience
react/display-name: off
# Disable for convenience
react/prop-types: off
'@typescript-eslint/no-require-imports': off
2 changes: 1 addition & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ overrides:
- '**/*.mts'
- '**/*.ts'
- '**/*.tsx'
- extends: .eslintrc.jest.yml
- extends: .eslintrc.test.yml
files:
- '**/__tests__/**'
- '**/*.spec.cjs'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/bump-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bump dependencies
name: 🧼 Bump dependencies

on:
workflow_dispatch: {}
Expand All @@ -8,7 +8,7 @@ jobs:
permissions:
contents: write
id-token: write
secrets: inherit
secrets:
WORKFLOW_BOT_APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
WORKFLOW_BOT_PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
uses: compulim/workflows/.github/workflows/bump-dependencies.yml@main
with:
package-name: version-from-git
6 changes: 3 additions & 3 deletions .github/workflows/bump-scaffold.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Bump scaffold
name: 🧼 Bump scaffold

on:
workflow_dispatch:
inputs:
package-name:
default: version-from-git
default: 'version-from-git'
description: Name of the package
required: true
type: string
Expand All @@ -14,7 +14,7 @@ on:
required: true
type: boolean
skip-integration-test:
default: false
default: true
description: Skip integration test
required: true
type: boolean
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
contents: write
id-token: write
pages: write
secrets: inherit
uses: compulim/workflows/.github/workflows/continuous-deployment.yml@main
secrets:
WORKFLOW_BOT_APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
WORKFLOW_BOT_PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
uses: compulim/workflows/.github/workflows/continuous-deployment-oidc.yml@main
with:
github-pages: false
node-version: 18.x
package-name: version-from-git
package-name: 'version-from-git'
2 changes: 2 additions & 0 deletions .github/workflows/list-outdated-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ on:

jobs:
call-workflow:
permissions:
contents: read
uses: compulim/workflows/.github/workflows/list-outdated-dependencies.yml@main
6 changes: 4 additions & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Prepare release
name: 🚢 Prepare release

on:
workflow_dispatch:
Expand All @@ -18,7 +18,9 @@ jobs:
permissions:
contents: write
id-token: write
secrets: inherit
secrets:
WORKFLOW_BOT_APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
WORKFLOW_BOT_PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
uses: compulim/workflows/.github/workflows/prepare-release.yml@main
with:
version-to-bump: ${{ inputs.version-to-bump }}
8 changes: 5 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ jobs:
contents: write
pages: write
id-token: write
secrets: inherit
uses: compulim/workflows/.github/workflows/publish-release.yml@main
secrets:
WORKFLOW_BOT_APP_ID: ${{ secrets.WORKFLOW_BOT_APP_ID }}
WORKFLOW_BOT_PRIVATE_KEY: ${{ secrets.WORKFLOW_BOT_PRIVATE_KEY }}
uses: compulim/workflows/.github/workflows/publish-release-oidc.yml@main
with:
package-name: version-from-git
package-name: 'version-from-git'
tag: ${{ github.ref_name }}
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:

jobs:
call-workflow:
permissions:
contents: read
strategy:
matrix:
switch: [current]
uses: compulim/workflows/.github/workflows/pull-request-validation.yml@main
with:
github-pages: false
package-name: version-from-git
project-type: legacy
package-name: 'version-from-git'
skip-integration-test: true
switch: ${{ matrix.switch }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-scripts=true
Loading