104 lines
3.7 KiB
JSON
104 lines
3.7 KiB
JSON
{
|
|
"name": "web-chat",
|
|
"displayName": "WebChat",
|
|
"version": "0.0.1",
|
|
"description": "Chatting Anonymously with People on the Same Website.",
|
|
"scripts": {
|
|
"dev": "npm run clear && cross-env NODE_ENV=development run-p dev:*",
|
|
"dev-firefox": "npm run clear && cross-env NODE_ENV=development EXTENSION=firefox run-p dev:*",
|
|
"dev:prepare": "esno scripts/prepare.ts",
|
|
"dev:background": "npm run build:background -- --mode development",
|
|
"dev:web": "vite",
|
|
"dev:js": "npm run build:js -- --mode development",
|
|
"build": "cross-env NODE_ENV=production run-s clear build:web build:prepare build:background build:js",
|
|
"build:prepare": "esno scripts/prepare.ts",
|
|
"build:background": "vite build --config vite.config.background.ts",
|
|
"build:web": "vite build",
|
|
"build:js": "vite build --config vite.config.content.ts",
|
|
"pack": "cross-env NODE_ENV=production run-p pack:*",
|
|
"pack:zip": "rimraf extension.zip && jszip-cli add extension/* -o ./extension.zip",
|
|
"pack:crx": "crx pack extension -o ./extension.crx",
|
|
"pack:xpi": "cross-env WEB_EXT_ARTIFACTS_DIR=./ web-ext build --source-dir ./extension --filename extension.xpi --overwrite-dest",
|
|
"start:chromium": "web-ext run --source-dir ./extension --target=chromium",
|
|
"start:firefox": "web-ext run --source-dir ./extension --target=firefox-desktop",
|
|
"clear": "rimraf --glob extension/dist extension/manifest.json extension.*",
|
|
"lint": "npx eslint . --ext .js,.jsx,.ts,.tsx --cache --fix",
|
|
"test": "vitest test",
|
|
"test:e2e": "playwright test",
|
|
"tsc:check": "tsc --noEmit",
|
|
"prepare": "husky install"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/molvqingtai/WebChat.git"
|
|
},
|
|
"keywords": [
|
|
"Chat",
|
|
"Browser"
|
|
],
|
|
"author": "molvqingtai",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/molvqingtai/WebChat/issues"
|
|
},
|
|
"homepage": "https://github.com/molvqingtai/WebChat#readme",
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^17.6.6",
|
|
"@commitlint/config-conventional": "^17.6.6",
|
|
"@ffflorian/jszip-cli": "^3.4.1",
|
|
"@iconify/json": "^2.2.89",
|
|
"@playwright/test": "^1.36.0",
|
|
"@svgr/core": "^8.0.0",
|
|
"@svgr/plugin-jsx": "^8.0.1",
|
|
"@types/fs-extra": "^11.0.1",
|
|
"@types/node": "^20.4.1",
|
|
"@types/react": "^18.2.14",
|
|
"@types/react-dom": "^18.2.6",
|
|
"@types/webextension-polyfill": "^0.10.1",
|
|
"@vitejs/plugin-react": "^4.0.3",
|
|
"autoprefixer": "^10.4.14",
|
|
"chokidar": "^3.5.3",
|
|
"cross-env": "^7.0.3",
|
|
"crx": "^5.0.1",
|
|
"eslint": "^8.44.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-config-standard-with-typescript": "^36.0.0",
|
|
"eslint-plugin-import": "^2.27.5",
|
|
"eslint-plugin-n": "^16.0.1",
|
|
"eslint-plugin-prettier": "^5.0.0",
|
|
"eslint-plugin-promise": "^6.1.1",
|
|
"eslint-plugin-react": "^7.32.2",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"esno": "^0.16.3",
|
|
"fs-extra": "^11.1.1",
|
|
"husky": "^8.0.3",
|
|
"jsdom": "^22.1.0",
|
|
"kolorist": "^1.8.0",
|
|
"lint-staged": "^13.2.3",
|
|
"npm-run-all": "^4.1.5",
|
|
"postcss": "^8.4.25",
|
|
"prettier": "^3.0.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"rimraf": "^5.0.1",
|
|
"tailwindcss": "^3.3.2",
|
|
"typescript": "^5.1.6",
|
|
"unplugin-auto-import": "^0.16.6",
|
|
"unplugin-icons": "^0.16.3",
|
|
"vite": "^4.4.3",
|
|
"vitest": "^0.33.0",
|
|
"web-ext": "^7.6.2",
|
|
"webext-bridge": "^6.0.1",
|
|
"webextension-polyfill": "^0.10.0"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": "eslint --fix"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-icons": "^1.3.0",
|
|
"class-variance-authority": "^0.6.1",
|
|
"clsx": "^1.2.1",
|
|
"tailwind-merge": "^1.13.2",
|
|
"tailwindcss-animate": "^1.0.6"
|
|
}
|
|
}
|