2.2.1 • Published 7 years ago

idea-exclude-dir v2.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

2.2.1

7 years ago

2.2.0

7 years ago

2.1.0

8 years ago

2.0.7

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago