
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Biu is a simple command-line tool for running multiple command-line tasks at the same time. It provides a simple GUI interface and aggregates stdout/stderr streams produced by tasks on demand.
# global
yarn global add biu
# local
yarn add biu --dev
biu --help
Biu loads configuration from a Node.js module, it could either be a .js
or .json
file. By default, it tries to require .biu
, or read scripts
section of package.json
from the current working directory if no configuration file is specified and the default .biu
(.js
, .json
) does not exist.
The configuration contains three fields: tasks
(required), groups
and problemMatchers
.
Currently Biu has the following built-in problem matchers:
$typescript:tsc-watch
$typescript:tslint
{
"tasks": {
"build-app": {
"executable": "tsc",
"args": ["-p", "src/app", "-w"],
"problemMatcher": "$typescript:tsc-watch"
},
"build-server": {
"executable": "tsc",
"args": ["-p", "src/server", "-w"],
"problemMatcher": "$typescript:tsc-watch"
}
},
"groups": {
"all": ["build-app", "build-server"]
}
}
To use custom problem matchers, add it to the problemMatchers
field:
{
"tasks": {
"build-app": {
"executable": "tsc",
"args": ["-p", "src/app", "-w"],
"problemMatcher": "$typescript:tsc-watch"
},
"build-server": {
"executable": "tsc",
"args": ["-p", "src/server", "-w"],
"problemMatcher": "$typescript:tsc-watch"
},
"build-website": {
"executable": "webpack",
"problemMatcher": "$typescript:at-loader"
}
},
"groups": {
"all": ["build-app", "build-server", "build-website"]
},
"problemMatchers": {
"$typescript:at-loader": {
"owner": "typescript",
"pattern": [
{
"regexp": "^(ERROR) in \\[at-loader\\] (.+\\.ts):(\\d+|\\d+:\\d+)\\s*$",
"severity": 1,
"file": 2,
"location": 3
},
{
"regexp": "^\\s+(TS\\d+): (.+)$",
"code": 1,
"message": 2
}
],
"background": {
"beginsPattern": "^\\[at-loader\\] Checking started in a separate process\\.\\.\\.$"
}
}
}
}
Checkout config.ts for more options.
To make the aggregated problem matcher output work in VSCode, you'll need to define Biu as a task and configure proper problem matcher options in tasks.json
:
{
"version": "2.0.0",
"tasks": [
{
"label": "biu",
"type": "shell",
"command": "yarn",
"args": ["biu"],
"isBackground": true,
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"name": "biu-typescript",
"owner": "typescript",
"applyTo": "closedDocuments",
"fileLocation": "absolute",
"pattern": {
"regexp": "^\\[biu-problem:typescript:([^;]*);([^;]*);([^;]*);([^;]*);(.*?)\\]?$",
"severity": 1,
"file": 2,
"location": 3,
"code": 4,
"message": 5
},
"background": {
"activeOnStart": false,
"beginsPattern": "^\\[biu-problems:typescript:begin\\]$",
"endsPattern": "^\\[biu-problems:typescript:end\\]$"
}
}
}
]
}
You can also install [Biu Problem Matchers] extension which contributes the following problem matchers:
$biu-typescript
Thus you will be able to simplify your task configuration.
{
"version": "2.0.0",
"tasks": [
{
"label": "biu",
"type": "shell",
"command": "yarn",
"args": ["biu"],
"isBackground": true,
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$biu-typescript"
}
]
}
scripts
If configuration is loaded from package.json
, Biu will convert all keys in scripts
section into tasks
. And if you add biuGroups
, biu-groups
or groups
under biu
section into your package.json
, Biu will load it as groups
.
MIT License.
FAQs
The command-line task hub.
The npm package biu receives a total of 5 weekly downloads. As such, biu popularity was classified as not popular.
We found that biu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.