narcello / findead Goto Github PK
View Code? Open in Web Editor NEW:mag: Dead react components finder
Home Page: https://narcello.github.io/findead/
License: MIT License
:mag: Dead react components finder
Home Page: https://narcello.github.io/findead/
License: MIT License
After successfully installing using yarn global add [email protected]
(per #74), and running findead path/to/dir
, I get an output that contains many files that I've verified are used in the project.
Many of the exports in my project use the structure
- ComponentDirectory
- Component.tsx
- index.tsx
Where index.tsx looks like
export { default } from './Component'
$ npx findead src
sh: 1: findead: not found
enhance readme:
https://medium.com/@meakaakka/a-beginners-guide-to-writing-a-kickass-readme-7ac01da88ab3
Does this package have any dependency?
It doesn't seem to work in my setup ๐คทโโ๏ธ
โ npm install -g findead
added 1 package, and audited 2 packages in 661ms
found 0 vulnerabilities
โ findead
zsh: command not found: findead
Thanks!
The version of grep
installed by default on OS X is BSD grep, not gnu grep, and does not support the -P
flag used in the bash script. Mac users can install gnu grep using homebrew, but this installs it as ggrep
and not just grep
. If the script could detect the current OS and either use OS X-compatible commands (some examples at https://stackoverflow.com/questions/16658333/grep-p-no-longer-works-how-can-i-rewrite-my-searches) or rely on ggrep, that would make it work on OS X.
findead.cmd invokes bash.exe
@IF EXIST "%~dp0\/bin/bash.exe" (
"%~dp0\/bin/bash.exe" "%~dp0\pnpm-global\3\node_modules\findead\findead.sh" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
/bin/bash "%~dp0\pnpm-global\3\node_modules\findead\findead.sh" %*
)
Log more details like:
Hi!
I tried this tool with my project, but it didn't bring anything useful:
(develop *+$% u=)$ findead src/
==================================================================================================================== Findead is looking for components... =====================================================================================================================
=================================================================================================================================== Results ===================================================================================================================================
========================================================================================================================= No unused components found ==========================================================================================================================
================================================================== 1 browsed files in find: paths must precede expression: `jira.js'
find: possible unquoted pattern after predicate `-name'?
0,003 seconds ===================================================================
Remove intern sudo and let final user type your own sudo
Enhance script time maybe with parallel call functions
Create site with gatsby and publish on ghpages
Findead are looking for components
should be "Findead is looking for components"
Find dead see Error404.js
file as dead component even if the file is imported inside route.js
{ path: '/errors/error-404', exact: true, component: lazy(() => import('./views/Errors/Error404')) },
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.