Skip to content

Commit

Permalink
🏀 chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nyomansunima committed Nov 25, 2024
0 parents commit 77c4369
Show file tree
Hide file tree
Showing 64 changed files with 2,556 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# APPS SETTINGS
NEXT_PUBLIC_APP_HOST =

# GOOGLE VERIFICATION SETTINGS
NEXT_PUBLIC_GOOGLE_VERIFICATION =

# POSTHOG SETTINGS
NEXT_PUBLIC_POSTHOG_KEY =
NEXT_PUBLIC_POSTHOG_HOST =
NEXT_PUBLIC_POSTHOG_UI_HOST =
9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["next/core-web-vitals", "next/typescript", "prettier"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"react/no-unescaped-entities": "off",
"react-hooks/exhaustive-deps": "off",
"@next/next/no-img-element": "off"
}
}
11 changes: 11 additions & 0 deletions .github/FUNDING.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
github: [nyomansunima]
ko_fi: nyomansunima
patreon:
open_collective:
tidelift:
community_bridge:
liberapay:
issuehunt:
otechie:
lfx_crowdfunding:
custom:
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug report
about: Create a report to help me improve to better one
title: 'Bug: '
labels: ':bug: bug'
assignees: nyomansunima
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'Feature: '
labels: ':broccoli: feature'
assignees: nyomansunima
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
24 changes: 24 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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 all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# Maintain the github action dependencies
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
labels:
- 'dependencies'

- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
commit-message:
prefix: 'npm'
include: 'scope'
labels:
- 'dependencies'
48 changes: 48 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## What type of PR is this? (check all applicable)

- [ ] 🚜Refactor
- [ ] ✅ Feature
- [ ] 🐛 Bug Fix
- [ ] 🚀 Optimization
- [ ] 📝 Documentation Update

## Description

## Related Tickets & Documents

- Related Issue #
- Closes #
- Fixed #

## QA Instructions, Screenshots, Recordings

_Please replace this line with instructions on how to test your changes, a note
on the devices and browsers this has been tested on, as well as any relevant
images for UI changes._

### Chechlist

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules

## Added/updated tests?

- [ ] 👍 Yes
- [ ] 🙅‍♀️ No, and this is why: _please replace this line with details on why tests
have not been included_
- [ ] ☝️ I need help with writing tests

## Documentation Update Needs ?

- [ ] 📝 Readme
- [ ] 🚀 Changelog
- [ ] 🥰 Contributing
- [ ] 🙅‍♀️ No, Docs Already Update

## Are there any post deployment tasks we need to perform?
49 changes: 49 additions & 0 deletions .github/workflows/beautify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This GitHub Actions workflow runs two jobs:
#
# 1. `lint`: Checks the code for linting issues using the Bun runtime.
# 2. `format`: Formats the code using the Bun runtime.
#
# The workflow checks out the code, sets up the Bun environment, and then runs the
# respective linting and formatting commands.

name: Beautify Code

on: ['push', 'pull_request']

jobs:
lint:
name: Lint Code
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Setup Bun Environment
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Lint the code
run: bun run lint

format:
name: Format Code
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Setup Bun Environment
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Format the code
run: bun run format
36 changes: 36 additions & 0 deletions .github/workflows/lighthouse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Check the web performace using
# lighthouse ci
# allow to show the page result for seo, performace, compatibility
#
# ******** NOTE *********
# Lighthouse only check your web result and platform

name: Lighthouse

on:
workflow_dispatch:
workflow_run:
workflows: ['Release & Publish']
types:
- completed
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
lighthouse:
name: Lighthouse Testing the web on Node ${{matrix.node}}
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v12
with:
urls: |
https://brookcodetheme.vercel.app
uploadArtifacts: true
temporaryPublicStorage: true
75 changes: 75 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Deploy the web application
# into the vercel as production
#
# ***** NOTE ******
# This deployment need to setup some secrets

name: Release & Publish

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_WEB_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEB_PROJECT_ID }}

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: 'Release ${{ github.ref_name }}'
generate_release_notes: true
draft: false
prerelease: false

publish:
name: Publish Website
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Setup Bun Environment
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install Vercel CLI
run: bun add --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

generate-changelog:
name: Generate Changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Update changelog
uses: BobAnkh/[email protected]
with:
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
COMMIT_MESSAGE: '🔖 docs(CHANGELOG): update release notes'
TYPE: 'feat:Feature,fix:Bug Fixes,docs:Documentation,refactor:Refactor,perf:Performance Improvements'
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
coverage

# next.js
.next/
out/

# production
build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# env files (can opt-in for committing if needed)
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"endOfLine": "auto"
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"typescript.preferences.autoImportFileExcludePatterns": ["@radix-ui/*"]
}
Loading

0 comments on commit 77c4369

Please sign in to comment.