tradeship
Automatically imports missing JavaScript dependencies and removes unused ones.
karthikv 163 0 0.0.1 MIT GitHub

Tradeship for Atom

Atom package to run tradeship, which automatically imports JS dependencies and removes unused ones.

Installation

Ensure you have tradeship installed:

$ npm install -g tradeship
# or use yarn:
$ yarn global add tradeship

In atom, settings/preferences > install > search "tradeship". Or:

$ apm install tradeship

Usage

To run tradeship, you may either:

  • Press ctrl + alt + i
  • Right click > Import Dependencies
  • Packages > tradeship > Import Dependencies
  • To run on save, go to settings (Packages > tradeship > Settings) and enable format on save.

The first time tradeship runs in a project directory with many JavaScript files, it'll take some time to parse and cache dependencies. Future runs will be much faster.

License

MIT