0.0.5 • Published 8 years ago
@veonim/ripgrep v0.0.5
ripgrep
This is my lazy approach on how to include binary dependencies in the Veonim project.
The code sees this:
import Ripgrep from '@veonim/ripgrep'And the build process uses a platform specific binary:
npm i -SE @veonim/ripgrep@0.5.2-mac
npm i -SE @veonim/ripgrep@0.5.2-win
npm i -SE @veonim/ripgrep@0.5.2-linuxIn this way, I accomplish the following goals:
- don't check in binary dependencies in veonim project (although they are checked in this repo. lol i was lazy ok - shh be quiet)
- no runtime platform check to load a specific binary dependency
- no other platform binaries included in build output
- install via npm, control versioning via package.json
- can build in CI
- maintain laziness
If you have a better idea complain loudly.
development
in development it would be a good idea to install @veonim/ripgrep-dev. this will use the optionalDependencies feature of npm to bring in a platform specific binary package. this should only be used for current platform development
upgrade process
make changes
bump version in mac + linux + win package.json
npm publish main package.json (if modified)
npm publish each os package
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2-linux
8 years ago
0.0.2-win
8 years ago
0.0.2-mac
8 years ago
0.0.1-mac
8 years ago
0.0.1-linux
8 years ago
0.0.1-win
8 years ago