Gathering detailed insights and metrics for glov-build-preresolve
Gathering detailed insights and metrics for glov-build-preresolve
Gathering detailed insights and metrics for glov-build-preresolve
Gathering detailed insights and metrics for glov-build-preresolve
Sub-module path resolving task processor for glov-build
npm install glov-build-preresolve
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
11 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Mar 21, 2025
Latest Version
1.2.0
Package Id
glov-build-preresolve@1.2.0
Unpacked Size
5.08 kB
Size
2.06 kB
File Count
3
NPM Version
8.2.0
Node Version
16.13.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
By default, resolves any 'glov/foo.js' strings to appropriate relative paths assuming glov is located in the root of the source. This is useful if you have a fork of GLOV.js or similar framework inside your project and want your code to be able to reference the module in the standard node module syntax without messing around with modifying each of Node/Browserify/WebPack/etc's module search paths/mechanisms. To maintain compatibility with IDEs and other tooling, this may be best used in conjunction with adding a local file path module to your package.json (npm will then also create a symlink to the module within node_modules).
Example package.json entry:
1{ 2 "devDependencies": { 3 "glov": "file:./src/glov" 4 } 5}
API usage:
1const preresolve = require('glov-build-preresolve'); 2 3gb.task({ 4 name: ..., 5 ...preresolve(options), 6});
Options
source
- optional input source task. This is used as a source for looking for matching paths and for sourcing inputs to this task. Expected usage it to source another task that is outputting .js and .map files. Default: 'source'
.modules
- optional map from module name to local path within the source. Default:1{ 2 'glov': 'glov', 3}
filter
- optional RegExp to filter which files get processed and which get passed through. Default: /\.js$/
.Example usage:
1const gb = require('glov-build'); 2const preresolve = require('glov-build-preresolve'); 3 4gb.configure({ 5 source: 'src', 6 statedir: 'out/.gbstate', 7 targets: { 8 dev: 'out', 9 }, 10}); 11 12gb.task({ 13 name: 'preresovle_glov', 14 ...preresolve(), 15}); 16 17gb.task({ 18 name: 'preresolve_common' 19 target: 'dev', 20 ...preresolve({ 21 source: 'preresovle_glov', 22 modules: { 23 common: 'common', 24 }, 25 }), 26}); 27
Example input in a fork of a GLOV.js project, which also contains a src/common/mything.js
.
1// src/client/foo/bar.js 2const foo = require('glov/client/engine.js'); 3const bar = require('glov/common/util.js'); 4const baz = require('common/mything.js');
Example output:
1const foo = require('../../glov/client/engine.js'); 2const bar = require('../../glov/common/util.js'); 3const baz = require('../../common/mything.js');
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More