-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
322 changed files
with
26,413 additions
and
21,587 deletions.
There are no files selected for viewing
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 @@ | ||
{ | ||
"path": "cz-conventional-changelog" | ||
} |
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,15 @@ | ||
version: 3 | ||
|
||
tasks: | ||
default: | ||
cmds: | ||
- task: setup | ||
|
||
setup: | ||
desc: Install dependencies | ||
silent: true | ||
cmds: | ||
- curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install > ~/install | ||
- fish ~/install --noninteractive | ||
- fish -c "set -U fish_greeting" | ||
- fish -c "omf install randomrussel" |
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,53 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node | ||
{ | ||
"name": "avtoolz", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", | ||
"features": { | ||
"ghcr.io/audacioustux/devcontainers/taskfile:1": {}, | ||
"ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {}, | ||
"ghcr.io/devcontainers/features/node:1": {} | ||
}, | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
// 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": "task -t .devcontainer/Taskfile.yml && task install && task run", | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ibm.output-colorizer", | ||
"infeng.vscode-react-typescript", | ||
"jeroen-meijer.pubspec-assist", | ||
"yoavbls.pretty-ts-errors", | ||
"jock.svg", | ||
"gruntfuggly.todo-tree", | ||
"task.vscode-task", | ||
"ms-azuretools.vscode-docker", | ||
"dbaeumer.vscode-eslint", | ||
"mikestead.dotenv", | ||
"csstools.postcss", | ||
"bradlc.vscode-tailwindcss", | ||
"vitest.explorer", | ||
"humao.rest-client", | ||
"ms-playwright.playwright", | ||
"github.vscode-github-actions", | ||
"lokalise.i18n-ally", | ||
"IBM.output-colorizer", | ||
"mhutchie.git-graph", | ||
"ms-vscode.vscode-typescript-next", | ||
"hoovercj.vscode-power-mode", | ||
"esbenp.prettier-vscode", | ||
"YoavBls.pretty-ts-errors", | ||
"Gruntfuggly.todo-tree", | ||
"redhat.vscode-yaml", | ||
"vivaxy.vscode-conventional-commits" | ||
] | ||
} | ||
}, | ||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
"remoteUser": "root" | ||
} |
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,30 @@ | ||
# FIXME: Configure environment variables for your project | ||
|
||
# For security reason, don't push secret key in your git repo. | ||
# Append .local to the environment files to prevent your secret key from being commited to Git. | ||
|
||
# Hosting | ||
# Replace by your domain name, only for production | ||
# NEXT_PUBLIC_APP_URL=https://example.com | ||
|
||
# Database | ||
# Please use a working DATABASE_URL. Otherwise, Next.js build will timeout and you will get the following error: "because it took more than 60 seconds" | ||
# DATABASE_URL=libsql://[RANDOM-CHARS]-[DB-NAME]-[ORG-NAME].turso.io | ||
DATABASE_URL=file:next-js-boilerplate.db | ||
|
||
# Clerk authentication | ||
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_b3Blbi1zdGlua2J1Zy04LmNsZXJrLmFjY291bnRzLmRldiQ | ||
|
||
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in | ||
|
||
######## [BEGIN] SENSITIVE DATA ######## For security reason, don't update the following variables (secret key) directly in this file. | ||
######## Please create a new file named `.env.local`, all environment files ending with `.local` won't be tracked by Git. | ||
######## After creating the file, you can add the following variables. | ||
CLERK_SECRET_KEY=your_clerk_secret_key | ||
|
||
# DATABASE_AUTH_TOKEN= | ||
|
||
# LOGTAIL_SOURCE_TOKEN= | ||
######## [END] SENSITIVE DATA | ||
|
||
NEXT_TELEMETRY_DISABLED=1 |
This file was deleted.
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,24 +1,4 @@ | ||
.now/* | ||
.next/* | ||
*.css | ||
.changeset | ||
dist | ||
esm/* | ||
public/* | ||
tests/* | ||
scripts/* | ||
*.config.js | ||
.DS_Store | ||
node_modules | ||
coverage | ||
.next | ||
build | ||
out | ||
!.storybook | ||
/**/.storybook/** | ||
!.commitlintrc.cjs | ||
!.lintstagedrc.cjs | ||
!jest.config.js | ||
!plopfile.js | ||
!react-shim.js | ||
!tsup.config.ts | ||
apps/docs/next-redirect.js | ||
.pnpm-store |
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,3 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} | ||
} |
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,13 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: a0v0 | ||
patreon: # Replace with a single Patreon username | ||
open_collective: | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] | ||
github: ixartz | ||
custom: | ||
["https://donate.stripe.com/7sI5m5146ehfddm7tj", "https://nextlessjs.com"] |
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 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: weekly |
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,91 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
node-version: [20.x, 22.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
name: Build with ${{ matrix.node-version }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- run: npm ci | ||
- run: npm run build | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
|
||
name: Run all tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Retrieve Git history, needed to verify commits | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- run: npm ci | ||
|
||
- name: Set SENTRY_AUTH_TOKEN env if secret exists | ||
run: | | ||
if [[ -n "${{ secrets.SENTRY_AUTH_TOKEN }}" ]]; then | ||
echo "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" >> $GITHUB_ENV | ||
fi | ||
- name: Build Next.js for E2E tests | ||
run: npm run build | ||
|
||
- if: github.event_name == 'pull_request' | ||
name: Validate all commits from PR | ||
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose | ||
|
||
- name: Linter | ||
run: npm run lint | ||
|
||
- name: Type checking | ||
run: npm run check-types | ||
|
||
- name: Run unit tests | ||
run: npm run test | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Install Playwright (used for Storybook and E2E tests) | ||
run: npx playwright install --with-deps | ||
|
||
- name: Run storybook tests | ||
run: npm run test-storybook:ci | ||
|
||
- name: Run E2E tests | ||
run: npx percy exec -- npm run test:e2e | ||
env: | ||
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: test-results | ||
path: test-results/ | ||
retention-days: 7 |
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,60 @@ | ||
name: Checkly | ||
|
||
on: [deployment_status] | ||
|
||
env: | ||
CHECKLY_API_KEY: ${{ secrets.CHECKLY_API_KEY }} | ||
CHECKLY_ACCOUNT_ID: ${{ secrets.CHECKLY_ACCOUNT_ID }} | ||
ENVIRONMENT_URL: ${{ github.event.deployment_status.environment_url }} | ||
CHECKLY_TEST_ENVIRONMENT: ${{ github.event.deployment_status.environment }} | ||
|
||
jobs: | ||
test-e2e: | ||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
if: github.event.deployment_status.state == 'success' # Only run when the deployment was successful. | ||
|
||
name: Test E2E on Checkly | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: "${{ github.event.deployment_status.deployment.ref }}" | ||
fetch-depth: 0 | ||
|
||
- name: Set branch name # workaround to detect branch name in "deployment_status" actions | ||
run: echo "CHECKLY_TEST_REPO_BRANCH=$(git show -s --pretty=%D HEAD | tr -s ',' '\n' | sed 's/^ //' | grep -e 'origin/' | head -1 | sed 's/\origin\///g')" >> $GITHUB_ENV | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
|
||
- name: Restore or cache node_modules | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: node_modules | ||
key: node-modules-${{ hashFiles('package-lock.json') }} | ||
|
||
- name: Install dependencies | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
run: npm ci | ||
|
||
- name: Run checks # run the checks passing in the ENVIRONMENT_URL and recording a test session. | ||
id: run-checks | ||
run: npx checkly test -e ENVIRONMENT_URL=${{ env.ENVIRONMENT_URL }} --reporter=github --record | ||
|
||
- name: Create summary # export the markdown report to the job summary. | ||
id: create-summary | ||
run: cat checkly-github-report.md > $GITHUB_STEP_SUMMARY | ||
|
||
- name: Deploy checks # if the test run was successful and we are on Production, deploy the checks | ||
id: deploy-checks | ||
if: steps.run-checks.outcome == 'success' && github.event.deployment_status.environment == 'Production' | ||
run: npx checkly deploy --force |
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,33 @@ | ||
name: Crowdin Action | ||
|
||
on: | ||
push: | ||
branches: [ main ] # Run on push to the main branch | ||
schedule: | ||
- cron: "0 5 * * *" # Run every day at 5am | ||
workflow_dispatch: # Run manually | ||
|
||
jobs: | ||
synchronize-with-crowdin: | ||
name: Synchronize with Crowdin | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: crowdin action | ||
uses: crowdin/github-action@v1 | ||
with: | ||
upload_sources: true | ||
upload_translations: true | ||
download_translations: true | ||
localization_branch_name: l10n_crowdin_translations | ||
create_pull_request: true | ||
pull_request_title: 'New Crowdin Translations' | ||
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)' | ||
pull_request_base_branch_name: 'main' | ||
commit_message: 'chore: new Crowdin translations by GitHub Action' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
Oops, something went wrong.