Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@bva/bva-cli
Advanced tools
A simple CLI tool used for internal dev things.
Copy/paste the following command into your terminal:
yarn global add @bva/bva-cli
This tool is used by calling bva
and passing options to it. For example, if you want to install the Recommendations module to a Slate project you would do:
bva --add @bva/recommendations
-i --interactive
- Uses interactive mode to make it easier to accomplish tasks.Non interactive commands provide a specific level of control, but most important things can be accomplished by using interactive mode.
-a --add
- Adds a module to the project its being called from (see below for current list of modules) - Ex: bva --add module-name
--add-help
- Display the help menu for --add
-l --list
- Lists all items associated with a specific list type (bva --list module
)-h --help
- Displays the help menu (bva --help
)-v --version
- Displays the CLI version (bva --version
)All command options that take arguments will also have an associated help menu to go along with them. To view these help menus you just need to use help
as the argument. An example would look like bva --list help
. An alias for h
will also be accepted bva --list h
.
Modules are automatically added if certain things are done within the module's codebase. At the simplest level, a module can be added by:
@bva/module-name
in package.jsonkeywords":["bva-module"]
to package.jsonThis will create a BVA scoped package and by adding bva-module
as a keyword the CLI tool knows to treat the package as a BVA module.
Doing the above will allow your package to either yarn add
in the Slate project it's requested for, but that's not the main benefit. The main benefit of using the CLI tool for installing BVA modules is extra files can also be added to the project. The purpose of these extra files is to provide developers with the ability to rapidly develop a feature using the module. So usually these files would include some of the baseline required code to get the module working. To add extra files to modules, do the following:
templates
. Steps 2-5 are performed within the templates
folder.bva-module-name.js
bva-module-name.scss
section-bva-module-name.liquid
snippet-bva-module-name.liquid
Any or all of the files above marked (optional) can be omitted and everything else will be handled by the CLI tool.
To see the most recent changes view the CHANGELOG.
FAQs
CLI for internal and external BVA tools
The npm package @bva/bva-cli receives a total of 0 weekly downloads. As such, @bva/bva-cli popularity was classified as not popular.
We found that @bva/bva-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.