139 lines
4.9 KiB
JSON
139 lines
4.9 KiB
JSON
{
|
|
"name": "react-grab",
|
|
"version": "0.1.50",
|
|
"description": "Select context for coding agents directly from your website",
|
|
"keywords": [
|
|
"agent",
|
|
"context",
|
|
"grab",
|
|
"react",
|
|
"react-grab"
|
|
],
|
|
"homepage": "https://react-grab.com",
|
|
"bugs": {
|
|
"url": "https://github.com/aidenybai/react-grab/issues"
|
|
},
|
|
"license": "MIT",
|
|
"author": {
|
|
"name": "Aiden Bai",
|
|
"email": "aiden@million.dev"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/aidenybai/react-grab.git"
|
|
},
|
|
"bin": {
|
|
"react-grab": "./bin/cli.js"
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"dist",
|
|
"package.json",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"module": "dist/index.js",
|
|
"browser": "dist/index.global.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.cts",
|
|
"default": "./dist/index.cjs"
|
|
}
|
|
},
|
|
"./core": {
|
|
"import": {
|
|
"types": "./dist/core/index.d.ts",
|
|
"default": "./dist/core/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/core/index.d.cts",
|
|
"default": "./dist/core/index.cjs"
|
|
}
|
|
},
|
|
"./primitives": {
|
|
"import": {
|
|
"types": "./dist/primitives.d.ts",
|
|
"default": "./dist/primitives.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/primitives.d.cts",
|
|
"default": "./dist/primitives.cjs"
|
|
}
|
|
},
|
|
"./styles.css": "./dist/styles.css",
|
|
"./dist/styles.css": "./dist/styles.css",
|
|
"./dist/*": "./dist/*.js",
|
|
"./dist/*.js": "./dist/*.js",
|
|
"./dist/*.cjs": "./dist/*.cjs"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"dependencies": {
|
|
"bippy": "^0.6.1",
|
|
"@react-grab/cli": "0.1.50"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.29.0",
|
|
"@babel/preset-typescript": "^7.28.5",
|
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
"@playwright/test": "^1.59.1",
|
|
"@tailwindcss/cli": "^4.3.0",
|
|
"@types/babel__core": "^7.20.5",
|
|
"@types/node": "^25.6.2",
|
|
"@types/react": "^19.2.14",
|
|
"babel-preset-solid": "^1.9.12",
|
|
"concurrently": "^9.2.1",
|
|
"expect-sdk": "^0.1.2",
|
|
"solid-js": "^1.9.12",
|
|
"tailwindcss": "^4.3.0",
|
|
"tsx": "^4.21.0",
|
|
"vite-plus": "^0.1.20",
|
|
"@react-grab/playwright-coverage": "0.1.47"
|
|
},
|
|
"peerDependencies": {
|
|
"react": ">=17.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"react": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"scripts": {
|
|
"css:watch": "tailwindcss -i ./src/styles.css -o ./dist/styles.css -w",
|
|
"prebuild": "mkdir -p dist && tailwindcss -i ./src/styles.css -o ./dist/styles.css -m && tsx scripts/css-rem-to-px.ts",
|
|
"build": "NODE_ENV=production vp pack",
|
|
"build:e2e-development": "pnpm run prebuild && NODE_ENV=development REACT_GRAB_SOURCE_LOCATIONS=true vp pack --out-dir ../../apps/e2e-react-grab-development/dist",
|
|
"build:e2e-development:coverage": "pnpm run prebuild && NODE_ENV=production REACT_GRAB_SOURCE_LOCATIONS=true REACT_GRAB_NO_MINIFY=true REACT_GRAB_SOURCEMAP=true vp pack --out-dir ../../apps/e2e-react-grab-development/dist",
|
|
"build:demo": "IS_DEMO=true pnpm build",
|
|
"build:profiling": "pnpm run prebuild && NODE_ENV=profiling REACT_GRAB_NO_MINIFY=true REACT_GRAB_SOURCEMAP=true vp pack",
|
|
"build:coverage": "pnpm run prebuild && NODE_ENV=production REACT_GRAB_NO_MINIFY=true REACT_GRAB_SOURCEMAP=true vp pack",
|
|
"dev": "concurrently \"pnpm:css:watch\" \"vp pack --watch\"",
|
|
"test": "vp test run tests && playwright test",
|
|
"test:unit": "vp test run tests",
|
|
"pretest:coverage": "pnpm --filter @react-grab/playwright-coverage build",
|
|
"test:coverage": "COVERAGE=1 playwright test",
|
|
"test:perf": "playwright test --grep @perf --reporter=list",
|
|
"test:perf:animation": "playwright test e2e/perf-bench.spec.ts --grep animation-scheduling-controls --reporter=list",
|
|
"test:perf:idle": "playwright test e2e/perf-bench.spec.ts --grep idle-after-activation --reporter=list",
|
|
"test:perf:dom-breakpoints": "PERF_DOM_BREAKPOINTS=1 playwright test e2e/perf-bench.spec.ts --grep dom-rerender-during-selection --reporter=list",
|
|
"test:perf:trace": "PERF_TRACE=1 playwright test --grep @perf --reporter=list",
|
|
"test:perf:render": "PERF_RENDER_TRACE=1 playwright test --grep @perf --reporter=list",
|
|
"test:perf:full": "PERF_TRACE=1 PERF_RENDER_TRACE=1 playwright test --grep @perf --reporter=list && node scripts/deopt-trace.mjs && node scripts/analyze-perf-trace.mjs perf/${PERF_LABEL:-current}",
|
|
"perf:analyze": "node scripts/analyze-perf-trace.mjs",
|
|
"test:perf:baseline": "PERF_LABEL=baseline playwright test --grep @perf --reporter=list",
|
|
"test:expect": "bun e2e/react-grab.expect.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"perf:deopt": "node scripts/deopt-trace.mjs"
|
|
}
|
|
} |