JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q61331F
  • License MIT

exclude dir in idea(webstorm, intelli IDEA ......)

Package Exports

  • idea-exclude-dir

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (idea-exclude-dir) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

idea-exclude-dir

npm npm npm npm npm


A plugin used to set the jetbrains editor to exclude the folder

NPM

NPM


exclude dir in idea(webstorm, IntelliJ IDEA ......)

增加 idea 下自动exclude node_modules文件夹

使用 jetbrains 的 idea 应该都会产生同样的痛苦

如果在cnpm安装期间不设置项目下的 node_modules文件夹 为 exclude 那么势必会卡死整个idea

因为如果不设置 exclude 那么 idea 会indexing node_modules下的所有文件

所以有了这个想法,在安装之前先设置 idea excludenode_modules文件夹

usage

install

npm install idea-exclude-dir --save-dev

use

In package.json

scripts 字段增加以下代码

"scripts": {
  "preinstall": "npm install idea-exclude-dir && idea-exclude"
}

同时配置 config.idea.index 字段

{
  "config": {
    "idea": {
      "index": ["/log", "/node_modules", "/.idea"]
    }
  }
}

CLI使用方法

全局安装

npm install idea-exclude-dir -g

命令行使用

idea-exclude -d /abc -d /path/to
idea-exclude -d /abc -d /path/to -c # 对目录取消exclude操作

Example

package.json