Skip to content

Commit

Permalink
Merge pull request #17 from 2coolchampion/dev
Browse files Browse the repository at this point in the history
No idea.
  • Loading branch information
2coolchampion committed Dec 18, 2023
2 parents e2c708c + 90b1735 commit 932605d
Show file tree
Hide file tree
Showing 49 changed files with 1,177 additions and 789 deletions.
11 changes: 6 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
title: ""
labels: bug
assignees: Jonghakseo

---

**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 '....'
Expand All @@ -24,9 +24,10 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Mac, Window, Linux]
- Browser [e.g. chrome, firefox]
- Node Version [e.g. 18.12.0]

- OS: [e.g. Mac, Window, Linux]
- Browser [e.g. chrome, firefox]
- Node Version [e.g. 18.12.0]

**Additional context**
Add any other context about the problem here.
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
title: ""
labels: enhancement
assignees: Jonghakseo

---

**Is your feature request related to a problem? Please describe.**
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/build-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ name: Build And Upload Extension Zip Via Artifact

on:
push:
branches: [ main ]
branches: [main]
pull_request:

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand All @@ -16,7 +15,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
cache: "yarn"

- uses: actions/cache@v3
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: 'Thank you for your contribution. We will check and reply to you as soon as possible.'
pr-message: 'Thank you for your contribution. We will check and reply to you as soon as possible.'
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Thank you for your contribution. We will check and reply to you as soon as possible."
pr-message: "Thank you for your contribution. We will check and reply to you as soon as possible."
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test

on:
push:
branches: [ main ]
branches: [main]
pull_request:

jobs:
Expand All @@ -15,7 +15,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
cache: "yarn"

- uses: actions/cache@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"singleQuote": false,
"trailingComma": "es5",
"arrowParens": "always"
Expand Down
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
![GitHub action badge](https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite/actions/workflows/build-zip.yml/badge.svg)
<img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/Jonghakseo/chrome-extension-boilerplate-react-viteFactions&count_bg=%23#222222&title_bg=%23#454545&title=😀&edge_flat=true" alt="hits"/>


> This project is listed in the [Awesome Vite](https://github.com/vitejs/awesome-vite)
</div>
Expand All @@ -18,18 +17,19 @@
- [Intro](#intro)
- [Features](#features)
- [Installation](#installation)
- [Procedures](#procedures)
- [Chrome](#chrome)
- [Firefox](#firefox)
- [Procedures](#procedures)
- [Chrome](#chrome)
- [Firefox](#firefox)
- [Screenshots](#screenshots)
- [NewTab](#newtab)
- [Popup](#popup)
- [NewTab](#newtab)
- [Popup](#popup)
- [Examples](#examples)
- [Documents](#documents)

## Intro <a name="intro"></a>

This boilerplate is made for creating chrome extensions using React and Typescript.

> The focus was on improving the build speed and development experience with Vite.
## Features <a name="features"></a>
Expand Down Expand Up @@ -59,8 +59,8 @@ This boilerplate is made for creating chrome extensions using React and Typescri
### For Chrome: <a name="chrome"></a>

1. Run:
- Dev: `yarn dev` or `npm run dev`
- Prod: `yarn build` or `npm run build`
- Dev: `yarn dev` or `npm run dev`
- Prod: `yarn build` or `npm run build`
2. Open in browser - `chrome://extensions`
3. Check - `Developer mode`
4. Find and Click - `Load unpacked extension`
Expand All @@ -69,8 +69,8 @@ This boilerplate is made for creating chrome extensions using React and Typescri
### For Firefox: <a name="firefox"></a>

1. Run:
- Dev: `yarn dev:firefox` or `npm run dev:firefox`
- Prod: `yarn build:firefox` or `npm run build:firefox`
- Dev: `yarn dev:firefox` or `npm run dev:firefox`
- Prod: `yarn build:firefox` or `npm run build:firefox`
2. Open in browser - `about:debugging#/runtime/this-firefox`
3. Find and Click - `Load Temporary Add-on...`
4. Select - `manifest.json` from `dist` folder
Expand Down Expand Up @@ -104,14 +104,12 @@ This boilerplate is made for creating chrome extensions using React and Typescri

[![Star History Chart](https://api.star-history.com/svg?repos=Jonghakseo/chrome-extension-boilerplate-react-vite&type=Date)](https://star-history.com/#Jonghakseo/chrome-extension-boilerplate-react-vite&Date)



---

## Thanks To

| [Jetbrains](https://jb.gg/OpenSourceSupport) | [Jackson Hong](https://www.linkedin.com/in/j-acks0n/) |
|--------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| <img width="100" src="https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png" alt="JetBrains Logo (Main) logo."> | <img width="100" src='https://avatars.githubusercontent.com/u/23139754?v=4' alt='Jackson Hong'/> |

---
Expand Down
6 changes: 6 additions & 0 deletions lib/utils/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
2 changes: 1 addition & 1 deletion manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const manifest: chrome.runtime.ManifestV3 = {
version: packageJson.version,
description: packageJson.description,
permissions: ["storage", "scripting"],
host_permissions: ['*://*/*'],
host_permissions: ["*://*/*"],
options_page: "src/pages/options/index.html",
background: {
service_worker: "src/pages/background/index.js",
Expand Down
Loading

0 comments on commit 932605d

Please sign in to comment.