Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
df40adb
chore: upgrade Dev Containers setup
panz3r Apr 23, 2025
715760c
chore: migrate to pnpm workspace setup
panz3r Apr 24, 2025
31cc75b
chore: migrate core project tooling to standard libraries
panz3r Apr 24, 2025
14816b4
chore(examples): update examples to use React 19 features and clean u…
panz3r Apr 24, 2025
1314b1f
chore: migrate testing framework from Jest to Vitest
panz3r Apr 24, 2025
1ed750d
chore(lib): remove Babel and TypeScript configuration files
panz3r Apr 28, 2025
4856be2
chore(examples): update `base` example to use Vite and React 19 features
panz3r Apr 28, 2025
7a831aa
chore(examples): refactor `refresh-token` example to use Vite and upd…
panz3r Apr 28, 2025
9ea03e3
chore(examples): update `reqres` example to use Vite and enhance Type…
panz3r Apr 28, 2025
e83ac8c
chore: update `pnpm-lock.yaml` and `pnpm-workspace.yaml` to include V…
panz3r Apr 28, 2025
cf446f5
docs: update links and author information in documentation and templates
panz3r Apr 28, 2025
3e0bd59
docs: remove cover image
panz3r Apr 28, 2025
ffa82ff
chore: add Dependabot configuration for automated dependency updates
panz3r Apr 28, 2025
066b0fc
chore: replace existing CI workflows with a new "Build & Test" workflow
panz3r Apr 28, 2025
cf337e2
chore: update `package.json` to specify pnpm version
panz3r Apr 28, 2025
32006c0
chore: update "Build & Test" GitHub Actions workflow for package test…
panz3r Apr 28, 2025
84bcc2a
chore: add release configuration and workflow for automated package r…
panz3r Apr 28, 2025
ebac7c8
refactor(examples): fix `reqres` example build
panz3r Apr 28, 2025
56c38e0
docs: update CI badge in README to reflect new "Build & Test" workflow
panz3r Apr 28, 2025
d94d657
docs(lib): update CI badge in README to reflect new "Build & Test" wo…
panz3r Apr 28, 2025
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
238 changes: 48 additions & 190 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,192 +1,50 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/javascript-node
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{
"name": "Node.js & Typescript",
"image": "mcr.microsoft.com/vscode/devcontainers/typescript-node:16-bullseye",
// Set *default* container specific settings.json values on container create.
"settings": {
"color-highlight.markRuler": false,
"color-highlight.markerType": "underline",
"diffEditor.ignoreTrimWhitespace": false,
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.formatOnType": false,
"editor.minimap.enabled": false,
"editor.multiCursorModifier": "alt",
"editor.rulers": [
110,
130
],
"editor.suggestSelection": "first",
"editor.tabSize": 2,
"git.autofetch": true,
"git.confirmSync": false,
"gitlens.codeLens.scopes": [
"document"
],
"update.showReleaseNotes": false,
"update.mode": "none",
"terminal.explorerKind": "external",
"extensions.autoCheckUpdates": false,
"extensions.autoUpdate": false,
"markdown.extension.toc.githubCompatibility": true,
"markdown.extension.toc.levels": "1..3",
"prettier.singleQuote": true,
"prettier.trailingComma": "es5",
"telemetry.enableTelemetry": false,
"window.openFilesInNewWindow": "on",
"window.openFoldersInNewWindow": "on",
"window.zoomLevel": 0,
"workbench.activityBar.visible": false,
"workbench.fontAliasing": "antialiased",
"workbench.iconTheme": "vscode-icons",
"workbench.colorCustomizations": {
// "titleBar.activeBackground": "#353535",
// "activityBar.background": "#353535",
// "statusBar.background": "#353535",
// "statusBar.noFolderBackground": "#353535",
// "statusBar.debuggingBackground": "#263238"
// JS THEME
"editor.background": "#212121",
"editor.foreground": "#ffffff",
"activityBar.background": "#121212",
"activityBar.foreground": "#F3DC1C",
"activityBar.dropBackground": "#121212",
"activityBarBadge.background": "#F3DC1C",
"activityBarBadge.foreground": "#121212",
"sideBar.background": "#121212",
"sideBar.foreground": "#b3b3b3",
"sideBar.border": "#212121",
"sideBarTitle.foreground": "#FFF",
"sideBarSectionHeader.foreground": "#FFF",
"sideBarSectionHeader.background": "#121212",
"list.activeSelectionBackground": "#535353",
"list.activeSelectionForeground": "#fff",
"list.dropBackground": "#212121",
"list.hoverBackground": "#212121",
"list.hoverForeground": "#fff",
"list.focusBackground": "#212121",
"list.focusForeground": "#fff",
"list.inactiveSelectionBackground": "#212121",
"list.inactiveFocusBackground": "#121212",
"list.inactiveSelectionForeground": "#fff",
"list.highlightForeground": "#fff",
"statusBar.background": "#212121",
"statusBar.foreground": "#ffffff",
"statusBar.border": "#F3DC1C",
"statusBar.noFolderBackground": "#121212",
"statusBar.noFolderBorder": "#121212",
"statusBar.noFolderForeground": "#b3b3b3",
"statusBar.debuggingBackground": "#F3DC1C",
"statusBar.debuggingForeground": "#121212",
"statusBarItem.activeBackground": "#535353",
"statusBarItem.hoverBackground": "#F3DC1C",
"notificationCenter.border": "#121212",
"notificationCenterHeader.foreground": "#b3b3b3",
"notificationCenterHeader.background": "#121212",
"editorGroup.emptyBackground": "#212121",
"editorGroup.border": "#F3DC1C",
"editorGroup.dropBackground": "#212121",
"tab.activeBackground": "#212121",
"button.background": "#535353",
"button.foreground": "#fff",
"titleBar.activeBackground": "#212121",
"titleBar.border": "#F3DC1C",
"titleBar.inactiveBackground": "#535353",
"textLink.foreground": "#F3DC1C",
"textLink.activeForeground": "#A6960A"
// JS THEME - END
},
// Suggested settings for Web development (see https://github.com/shawn-sandy/codestudio)
"files.associations": {
"*.tag": "html",
"*.cshtml": "html",
"*.html": "html",
"*.njk": "html",
"*.mustache": "html",
"*.html.md": "html"
},
"files.exclude": {
"*.sublime-*": true,
"**/__pycache__": true,
"**/.DS_Store": true,
"**/.git": true,
"**/.pytest_cache": true,
"**/.vscode": true,
"**/node_modules": true,
"node_modules": true,
"venv": true
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/env": true,
"**/venv": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/env/**": true,
"**/venv/**": true,
"env-*": true
},
// "files.autoSave": "onFocusChange",
"files.trimTrailingWhitespace": true,
"editor.cursorBlinking": "phase",
"window.title": "${dirty} ${activeEditorMedium}${separator}${rootName}",
// "editor.formatOnSave": true,
"breadcrumbs.enabled": true,
"editor.minimap.renderCharacters": false,
"editor.minimap.maxColumn": 200,
"editor.minimap.showSlider": "always",
// END Suggested settings for Web development
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"extensions.ignoreRecommendations": true,
"workbench.enableExperiments": false,
"workbench.settings.enableNaturalLanguageSearch": false
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"naumovs.color-highlight",
"vscode-icons-team.vscode-icons",
"yzhang.markdown-all-in-one"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [3000],
// Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference.
// "portsAttributes": {
// "3000": {
// "label": "Hello Remote World",
// "onAutoForward": "notify"
// }
// },
// Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'.
// "otherPortsAttributes": {
// "onAutoForward": "silent"
// },
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "yarn install",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
"name": "React Auth",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true,
"username": "node"
},
"ghcr.io/devcontainers-extra/features/zsh-plugins:0": {
"plugins": "git npm",
"omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions",
"username": "node"
},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/joshuanianji/devcontainer-features/mount-pnpm-store:1": {}
},

// Volumes to mount
"mounts": [
"source=${devcontainerId}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sudo chown node node_modules; pnpm install",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"editorconfig.editorconfig",
"GitHub.vscode-github-actions",
"yzhang.markdown-all-in-one",
]
}
},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ body:
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Forward-Software/react-auth/blob/main/CODE_OF_CONDUCT.md)
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/forwardsoftware/react-auth/blob/main/CODE_OF_CONDUCT.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: General Questions and Inquiries
url: https://github.com/Forward-Software/react-auth/discussions
url: https://github.com/forwardsoftware/react-auth/discussions
about: Please ask general integration/design/architecture questions using GitHub Discussion.
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: monthly
reviewers:
- "panz3r"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
reviewers:
- "panz3r"

- package-ecosystem: "npm"
directories:
- "/"
- "/lib"
- "/examples/*"
schedule:
interval: weekly
day: tuesday
reviewers:
- "panz3r"
63 changes: 63 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Build & Test

on:
push:
branches-ignore: [main]
workflow_dispatch:

permissions:
contents: read

jobs:
test:
name: Test

strategy:
matrix:
node_version: [lts/-1, lts/*, latest]
fail-fast: false

runs-on: "ubuntu-latest"

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: pnpm

- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Test package
run: pnpm --filter "@forward-software/react-auth" test

build:
name: Build

runs-on: "ubuntu-latest"

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: pnpm

- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Build package
run: pnpm --filter "@forward-software/react-auth" build
41 changes: 0 additions & 41 deletions .github/workflows/codeql.yml

This file was deleted.

Loading