jetbrains-project
Utilities for working with JavaScript projects (and monorepos) in JetBrains IDEs (IntelliJ, WebStorm, etc.).
Last updated 2 years ago by vjpr .
Original npm · Tarball · package.json
$ cnpm install jetbrains-project 
SYNC missed versions from official npm registry.

jetbrains-project

Utilities for working with JavaScript projects (and monorepos) in JetBrains IDEs (IntelliJ, WebStorm, etc.).

Highlights

  • Efficient file watcher to exclude certain dirs from indexing as they are created to prevent IDE locking up.

Try

npx jetbrains-project

Install

npm i -g jetbrains-project

Usage

cd your-intellij-project-dir
jetbrains-project update

Watch an IntelliJ project folder for when new folders are created, and automatically exclude their node_modules and other generated dirs you specify such as lib, build, etc.

Features

Excluding node_modules

Once the IntelliJ indexer starts it cannot be stopped and will max out your cpus until its finished. See here for some discussion.

IntelliJ only indexes direct dependencies as of v2016.2.2 (see issue), that is, those defined in your package.json.

If we use a mono-project (i.e. one IntelliJ project/module with multiple packages inside), we may end up with a huge number of dependency files to index.

node_modules dirs can easily grow to 100K+ files even when installing one module, which will take ages to index.

Installing a single module will cause indexing, which will slow down the IDE.

The following IntelliJ issue would resolve this: Ability to exclude files from indexing in a path by their names (full paths) or by pattern.

The following issues are also related:

If the IntelliJ cache becomes corrupt (e.g. after an improper shutdown), you will have to wait ages for it to re-index.

License

MIT © Vaughan Rouesnel

Current Tags

  • 0.0.4                                ...           latest (2 years ago)

4 Versions

  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (40)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |