UNPKG

react-component-analyzer

Version:

Analyze the component tree of react and displays it as a diagram in the browser. You can refer to the corresponding code from the diagram.

82 lines (81 loc) 2.43 kB
{ "name": "react-component-analyzer", "version": "1.0.53", "description": "Analyze the component tree of react and displays it as a diagram in the browser. You can refer to the corresponding code from the diagram.", "main": "cli.js", "scripts": { "build": "rimraf dist && node -r esbuild-register ./tools/build.ts", "watch": "rimraf dist && node -r esbuild-register ./tools/watch.ts", "eslint": "eslint '**/*.{js,jsx,ts,tsx}' --ignore-path .gitignore", "prettier": "prettier . --write --ignore-path .gitignore", "prepare": "husky install", "lint-staged": "lint-staged" }, "bin": { "rca": "dist/cli.js" }, "repository": { "type": "git", "url": "git+https://github.com/activeguild/react-component-analyzer.git" }, "keywords": [ "typescript", "react", "component", "tree", "diagram", "visualize", "analyze" ], "author": "j1ngzoue", "license": "MIT", "bugs": { "url": "https://github.com/activeguild/react-component-analyzer/issues" }, "homepage": "https://github.com/activeguild/react-component-analyzer#readme", "engines": { "node": "^16.14.0" }, "devDependencies": { "@types/node": "^18.7.2", "@types/prismjs": "^1.26.0", "@types/react": "^18.0.17", "@types/react-dom": "^18.0.6", "@typescript-eslint/eslint-plugin": "^5.33.0", "@typescript-eslint/parser": "^5.33.0", "@ubie/ubie-icons": "^0.2.0", "@vanilla-extract/css": "^1.7.2", "@vanilla-extract/esbuild-plugin": "^2.1.0", "beautiful-react-diagrams": "^0.5.1", "boring-avatars": "^1.7.0", "classnames": "^2.3.1", "esbuild": "^0.15.2", "esbuild-loader": "^2.19.0", "esbuild-plugin-prismjs": "^1.0.7", "esbuild-register": "^3.3.3", "eslint": "^8.21.0", "eslint-config-prettier": "^8.5.0", "fuse.js": "^6.6.2", "husky": "^8.0.1", "lint-staged": "^13.0.3", "modern-css-reset": "^1.4.0", "prettier": "^2.7.1", "prismjs": "^1.28.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-tooltip": "^4.2.21", "rimraf": "^3.0.2", "typescript": "^4.7.4" }, "dependencies": { "@typescript-eslint/typescript-estree": "^5.33.0", "commander": "^9.4.0", "picocolors": "^1.0.0" }, "lint-staged": { "*.{js,ts,jsx,tsx}": [ "npx eslint . --fix --ignore-path .gitignore", "npx prettier --write . --ignore-path .gitignore" ] } }