Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
glov-build
Advanced tools
API Stability: MEDIUM-HIGH - No longer under active development, used in multiple production projects
A build system tailored for JavaScript game development, focused on fast, incremental builds with live updates of assets in many shapes and sizes. Created primarily for large projects built on GLOV.js in order to address the many shortcomings of other options that exhibit themselves as a project grows in size.
A task represents a stage in the build pipeline, and define the inputs and how jobs are run on those inputs (either per-input or on all inputs at once). Specifically, a task usually defines an input glob and a job function to run on those files.
A job is a single operation on an input or set of inputs. Individual jobs are only ran if one of their dependencies have changed, and their outputs only trigger dependent tasks to run if the output actually changes.
const gb = require('glov-build');
gb.configure({
source: 'src',
statedir: 'out/.gbstate',
targets: {
dev: 'out',
},
});
gb.task({
name: 'copy',
input: 'txt/*.txt',
type: gb.SINGLE, // Type SINGLE - `func` is called once per changed input file
target: 'dev',
func: function copy(job, done) {
job.out(job.getFile());
done();
},
});
gb.task({
name: 'concat',
input: [
'txt/*.txt',
'txt/*.asc',
],
type: gb.ALL, // Type ALL - `func` is called once with all input files
target: 'dev',
func: function concatSimple(job, done) {
let files = job.getFiles();
let buffer = Buffer.concat(files.filter(a => a.contents).map(a => a.contents));
job.out({
relative: 'concat.txt',
contents: buffer,
});
done();
},
});
gb.task({
name: 'default',
deps: ['copy', 'concat'],
});
gb.go({
tasks: ['default'],
watch: true,
});
FAQs
GLOV.js Build System
The npm package glov-build receives a total of 26 weekly downloads. As such, glov-build popularity was classified as not popular.
We found that glov-build demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.