UNPKG

@p5-wrapper/react

Version:

A wrapper component that allows you to utilise P5 sketches within React apps.

117 lines 3.48 kB
{ "name": "@p5-wrapper/react", "description": "A wrapper component that allows you to utilise P5 sketches within React apps.", "version": "4.4.2", "type": "module", "homepage": "https://github.com/P5-wrapper/react", "license": "MIT", "types": "dist/component/main.d.ts", "files": [ "dist/component/*" ], "main": "./dist/component/react.umd.cjs", "module": "./dist/component/react.js", "exports": { ".": { "import": { "types": "./dist/component/main.d.ts", "default": "./dist/component/react.js" }, "require": { "types": "./dist/component/main.d.ts", "default": "./dist/component/react.umd.cjs" } } }, "keywords": [ "react", "react-component", "p5", "processing", "typescript" ], "author": { "name": "James Robb", "url": "https://github.com/jamesrweb" }, "contributors": [ { "name": "Eugene Dyko", "url": "https://github.com/yevdyko" }, { "name": "Andreas Wolf", "email": "info@wolfandreas.com", "url": "https://github.com/and-who" }, { "name": "Ivan Malyugin" }, { "name": "Benjamin Saphier", "url": "https://github.com/bsaphier" }, { "name": "Mark Fuller", "url": "https://github.com/MarkFuller1" }, { "name": "Nathan Manousos", "url": "https://github.com/trafnar" } ], "repository": { "type": "git", "url": "https://github.com/P5-wrapper/react.git" }, "bugs": { "url": "https://github.com/P5-wrapper/react/issues" }, "peerDependencies": { "react": ">= 18.2.0", "react-dom": ">= 18.2.0" }, "devDependencies": { "@testing-library/jest-dom": "^6.4.6", "@testing-library/react": "^16.0.0", "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/node": "^20.14.2", "@types/p5": "^1.7.6", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^7.13.0", "@vitejs/plugin-react": "^4.3.1", "@vitest/coverage-v8": "^1.6.0", "eslint": "^9.4.0", "eslint-plugin-react": "^7.34.2", "eslint-plugin-react-hooks": "^4.6.2", "gh-pages": "^6.1.1", "jsdom": "^24.1.0", "prettier": "^3.3.2", "rimraf": "^5.0.7", "typescript": "^5.4.5", "vite": "^5.2.13", "vitest": "^1.6.0", "vitest-canvas-mock": "^0.3.3" }, "dependencies": { "microdiff": "^1.4.0", "p5": "^1.9.4" }, "scripts": { "build": "rimraf dist && pnpm build:component && pnpm build:demo", "build:component": "tsc --declaration --emitDeclarationOnly && vite build --config config/vite/vite.component.config.ts", "build:demo": "vite build --config config/vite/vite.demo.config.ts", "ci": "pnpm format:check && pnpm lint && pnpm test && pnpm build", "dev": "vite", "format": "pnpm prettier --write .", "format:check": "pnpm prettier --check .", "lint": "eslint --ignore-pattern .gitignore --config config/eslint/eslint.json .", "lint:fix": "pnpm lint --fix", "prettier": "prettier --config config/prettier/prettier.json --ignore-path .gitignore", "preview": "vite preview --config config/vite/vite.demo.config.ts", "test": "vitest run --config config/vite/vite.component.config.ts", "test:coverage": "vitest run --coverage --config config/vite/vite.component.config.ts", "test:watch": "vitest watch --config config/vite/vite.component.config.ts" } }