🌱 Sublime Text 3 Plugin to keep package.json dependencies fresh.
- Total 214
- Win 40
- OS X 148
- Linux 26
|Mar 21||Mar 20||Mar 19||Mar 18||Mar 17||Mar 16||Mar 15||Mar 14||Mar 13||Mar 12||Mar 11||Mar 10||Mar 9||Mar 8||Mar 7||Mar 6||Mar 5||Mar 4||Mar 3||Mar 2||Mar 1||Feb 28||Feb 27||Feb 26||Feb 25||Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6||Feb 5||Feb 4|
For now, it allows:
- Show latest released package version.
- Show next (alpha, beta, etc) package version.
- Compare semver versions and detect whether or not current version should be updated.
- Format to latest or next version from the context menu.
- Use custom registries.
- Customize tooltip for your needs and taste.
Install Bump via Package Control
The easiest and recommended way to install Bump is using Package Control.
From the main application menu (CMD + SHIFT + P), navigate to:
Command Palette... ->
Package Control: Install Package, type the word Bump, then select it to complete the installation.
- Download and extract Bump zip file to your Sublime Text Packages directory (Sublime Text -> Preferences -> Browse Packages…).
- Rename the extracted directory from
or via git clone
git clone https://github.com/yavorsky/Bump.git $HOME/Library/Application\ Support/Sublime\ Text\ 3/Packages/Bump
Just install the package and focus the line with dependency in
package.json. Bump will preview latest or next version (according to the distribution mode) of the package in the bottombar or with the tooltip.
- Focus the line inside
optionalDependenciesblock to preview latest or next version of the package. If tooltip option in settings is
falsethen version will be displayed in the bottom bar.
- Click on the version in the tooltip to format current version to the one from tooltip.
- Click on Bump -> Format to… latest/next version from the context menu.
- Choose distribution mode to change whether or not to fetch unreleased (alpha/beta/etc) version before relaesed.
Many options are customizable from the Command Palette (super + shift + p) and type Bump.
Type: String, Default:
Choose distribution mode.
Currently, Bump supports
next distribution tags. By default, the
latest tag is used by npm to identify the current version of a package. The
next tag is used by some projects to identify the upcoming version (alpha, beta, etc).
next mode, package trying to fetch latest version, and if no one was registered, it fallbacks to the
Type: Boolean, Default:
Whether or not show tooltip near the cursor. If tooltip is disabled, the version would be displayed in the botombar.
Type: Array, Default:
["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"]
Field name, where Bump will search and show latest version for current package.
Type: Array, Default:
Name of the files when Bump will watch out for your cursor. We haven't universal parser for all formats, but with json files it does its work.
Bump has pre-defined keyboard shortcuts. For now, it format package value on the line with the cursor.
|Format to latest||ALT + SHIFT + L|
|Format to next||ALT + SHIFT + N|
For updates and more you can follow me on twitter.
Bump is released under the MIT License.
Copyright © 2017 Artem Yavorsky.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.