Tradeship for Atom
Atom package to run tradeship, which automatically imports missing 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 import 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.