Skip to content

Commit

Permalink
feat: ✨ pre-release (v0.2.0) - Global Update [root/**/**/*.*]
Browse files Browse the repository at this point in the history
  • Loading branch information
lumenpearson committed Nov 1, 2024
1 parent a7b9bc8 commit e4d102d
Show file tree
Hide file tree
Showing 136 changed files with 7,009 additions and 5,935 deletions.
46 changes: 46 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# GitHub Personal Access Token
# This token is required to authenticate requests to GitHub’s API for fetching
# repository releases and assets without hitting rate limits.
#
# Purpose:
# The GitHub API limits the number of requests per hour for unauthorized
# requests. By including a GitHub Personal Access Token, you increase the rate
# limit available for your application, allowing it to function without interruptions.
#
# Without this token, you may experience 403 (Forbidden) errors if the app
# exceeds the API’s request limit. GitHub tokens also ensure that your application
# has authorized access to private repositories, if needed.
#
# How to get your GitHub Personal Access Token:
#
# 1. Sign in to GitHub: Go to https://github.com/ and login.
#
# 2. Access Settings:
# - In the top right corner of any GitHub page, click your profile picture.
# - Click on **Settings** in the dropdown menu.
#
# 3. Open Developer Settings:
# - Scroll down and click **Developer settings** in the left sidebar.
#
# 4. Generate Token:
# - Select **Personal access tokens** > **Tokens (classic)** from the left sidebar.
# - Click on **Generate new token** > **Generate new token (classic)**.
#
# 5. Configure Token Permissions:
# - In the **Note** field, add a description (e.g., "Access for My Project").
# - Set the **Expiration** duration, or leave it as "No expiration" if you want it to last indefinitely.
# - Under **Select scopes**, choose at least:
# - `repo` - Grants read and write access to repositories, which allows access to private repositories if needed.
#
# 6. Generate and Copy Token:
# - Click **Generate token** at the bottom of the page.
# - GitHub will show your token only once. Copy it immediately and store it in a safe place.
#
# 7. Add Token Here:
# - Place the token below as the value for `GITHUB_TOKEN`.
#
# GitHub Documentation:
# - More details on personal access tokens: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
# - GitHub API rate limits: https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting

GITHUB_TOKEN=your_personal_access_token_here
7 changes: 6 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ node_modules/
build/
dist/
.out/
**/build/**/*.js
**/.next/**/*.js
**/build/**/*.ts
**/.next/**/*.ts

# Ignore all configuration files in the root directory
# This includes ESLint, Prettier, Babel, Stylelint, and other config files
Expand All @@ -25,11 +29,12 @@ dist/

# Ignore lock files
package-lock.json
pnpm-lock.yaml
yarn.lock

# Ignore log files
npm-debug.log
yarn-error.log
pnpm-error.log
pnpm-debug.log

# Ignore coverage directory used by testing tools
Expand Down
3 changes: 0 additions & 3 deletions .eslintrc.js

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ Procfile text
# DISABLE SHRINKWRAP MERGING AS RESULTS MAY BE INVALID.
npm-shrinkwrap.json merge=binary
shrinkwrap.yaml merge=binary
yarn.lock merge=binary
pnpm.lock merge=binary
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md → .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at codeilluminators@gmail.com. All
reported by contacting the project team at serstor15@gmail.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: [Storik4Pro, lumenpearson, ValdikSS]
github: [Storik4pro, lumenpearson, ValdikSS, bol-van, xvzc, hufrea]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand Down
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

Binary file added .github/assets/readme-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
updates:
# Configuration to check for updates in Node.js dependencies (using pnpm).
- package-ecosystem: 'npm' # The package manager for the project (using "npm" ecosystem for pnpm).
directory: '/' # Directory where the package.json is located (root in this case).
schedule:
interval: 'weekly' # Frequency of the update checks (can be daily, weekly, or monthly).
commit-message:
prefix: 'chore(deps)' # Prefix added to commit messages for dependency updates.
labels:
- 'dependencies'
- 'node'
- 'pnpm'
open-pull-requests-limit: 5 # Limit the number of open pull requests created by Dependabot at a time.
ignore:
# List of specific dependencies to ignore for updates.
# Useful for libraries where automatic updates might cause issues.
- dependency-name: 'next'
- dependency-name: 'babylon'
- dependency-name: 'typescript'
- dependency-name: 'autoprefixer'
- dependency-name: 'lucide-react'
- dependency-name: 'eslint-config-next'
- dependency-name: 'eslint'
rebase-strategy: 'auto' # Automatically rebase pull requests if conflicts arise.
34 changes: 34 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Automatically squashes and merges Dependabot dependency upgrades if tests pass

name: Dependabot Auto-merge

on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest

if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

- name: Approve Dependabot PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Auto-merge (squash) Dependabot PR
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136 changes: 79 additions & 57 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,75 +1,97 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
# Logs and Debugging
logs/
*.log
npm-debug.log*
pnpm-debug.log*
pnpm-error.log*
pnpm-debug.log*
lerna-debug.log*

# next.js
/.next/
# Node Modules
node_modules/

# testing
/.nyc_output
/coverage
/out/
# Distribution Builds
dist/
build/
output
out/
dist-ssr/
!/out/.gitkeep
!/dist/.gitkeep
!/build/.gitkeep

# production
/build
/dist
# Vercel Deployment
.vercel/

# OS
.DS_Store
*.pem
# Next.js
.next/
out/
!/out/.gitkeep

# debug
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Testing and Coverage
coverage/
.nyc_output/
.vitest/

# dotenv environment variable files
# Local Environment Files
.env
.env*.local
.env.development.local
.env.test.local
.env.production.local
.env.local

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Package Managers
.pnp
.pnp.js
.yarn/install-state.gz

# WiX
WixTools

# TypeScript
*.tsbuildinfo

# Lint and Formatter
.eslintcache
.stylelintcache
.prettiercache
.npmrc
.pnpmrc

# IDE and Editor Settings
# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/settings.json

# temp directory
.temp
.tmp
# JetBrains IDEs (WebStorm, IntelliJ, etc.)
.idea/
*.iml

# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Visual Studio
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# local env files
.env*.local
# Operating System Specific Files
# macOS
.DS_Store

# vercel
.vercel
# Windows
Thumbs.db

# typescript
*.tsbuildinfo
next-env.d.ts
# Miscellaneous
*.local
*.lock
yarn.lock
package-lock.json

# Temporary Files
tmp/
temp/

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Other
keys/*
!/keys/.gitkeep
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm exec lint-staged
13 changes: 13 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const path = require('path');

const buildEslintCommand = filenames =>
`next lint --fix --file ${filenames
.map(f => path.relative(process.cwd(), f))
.join(' --file ')}`;

module.exports = {
'**/**/*.{js,jsx,ts,tsx}': [buildEslintCommand],
'*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}': [
'biome check --apply --no-errors-on-unmatched', // Format, sort imports, lint, and apply safe fixes
],
};
Loading

0 comments on commit e4d102d

Please sign in to comment.