web-extension-starter
๐ฅ๐Web Extension starter to build "Write Once Run on Any Browser" extension
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- build.yml
- FUNDING.yml
- FIREFOX_MV2.md
- index.ts
- Button.module.scss
- Button.tsx
- Card.module.scss
- Card.tsx
- Checkbox.module.scss
- Checkbox.tsx
- GitHubIcon.tsx
- HeartIcon.tsx
- SettingsIcon.tsx
- Input.module.scss
- Input.tsx
- index.ts
- index.tsx
- options.html
- Options.module.scss
- Options.tsx
- FooterActions.module.scss
- FooterActions.tsx
- TabInfo.module.scss
- TabInfo.tsx
- index.tsx
- popup.html
- Popup.module.scss
- Popup.tsx
- favicon-128.png
- favicon-16.png
- favicon-32.png
- favicon-48.png
- _fonts.scss
- _reset.scss
- _variables.scss
- messages.ts
- storage.ts
- storage.ts
- globals.d.ts
- manifest.json
- .editorconfig
- .gitignore
- .nvmrc
- CODE_OF_CONDUCT.md
- eslint.config.mjs
- LICENCE
- package-lock.json
- package.json
- postcss.config.js
- README.md
- tsconfig.json
- vite.config.ts
# ์ค์น ๊ฐ์ด๋
1. ์ฝ๋ ๋ด๋ ค๋ฐ๊ธฐ
git clone https://github.com/abhijithvijayan/web-extension-starter
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd web-extension-starter
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. Node.js
์ฌ์ ์ถ์ฒ์ฌ์ ์ค๋น๋ฌผ
npm install
package.json์ ๋ช ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ด๋ ค๋ฐ์ ์ค์นํฉ๋๋ค.
npm run dev:chrome # For Chrome
๊ฐ๋ฐ/์คํ ์๋ฒ๋ฅผ ์ผญ๋๋ค.
npm run dev:firefox # For Firefox
๊ฐ๋ฐ/์คํ ์๋ฒ๋ฅผ ์ผญ๋๋ค.
npm run build:chrome # Build Chrome extension
๋ฐฐํฌ์ฉ์ผ๋ก ์ฝ๋๋ฅผ ์ต์ ํํด์ ๋น๋ ํ์ผ์ ์์ฑํฉ๋๋ค.
npm run build:firefox # Build Firefox addon
๋ฐฐํฌ์ฉ์ผ๋ก ์ฝ๋๋ฅผ ์ต์ ํํด์ ๋น๋ ํ์ผ์ ์์ฑํฉ๋๋ค.
๋ช
๋ น์ด ์คํ ํ ํฐ๋ฏธ๋์ ๋ํ๋๋ ์ฃผ์(๋ณดํต http://localhost:3000 ํํ)๋ฅผ ๋ธ๋ผ์ฐ์ ์์ ์ด์ด๋ณด์ธ์.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
// repository documentation
Was this content helpful?
(0 ratings)
