Some your .ideas better be excluded, especially in monorepos
It just updates your IDEA settings. Work with a whole JetBrains product family
🤷♂️ why? Cause WebStorm just hangs on a medium size monorepo and you need help it a little
yarn add idea-exclude
# usageidea-exclude group glob# exclude all node_modules in the "packages"idea-exclude node_modules "packages/**/node_modules"# exclude all node_modules but not in some root directoriesidea-exclude node_modules "!(build|node_modules)/**/node_modules"# can accept a list of files to excludeidea-exclude custom-files this and this
This project removes own dist folder, having .idea configuration a few levels above
idea-exclude build dist --lookabove
Exclusion API requires 3 arguments:
project root, where your settings (
.idea/project.iml) can be found
group name- custom (even empty) string to "scope" changes - you can remove all
node_modulesas one group, and remove all
other productsyou are not interested in as another.
list of filesas an array of strings or a glob.
Example with bolt
const workspaces = await bolt;// as a list of files;// or as a glob;
The original version created by Aleksandr "Sasha" Motsjonov.