Gathering detailed insights and metrics for broccoli-source
Gathering detailed insights and metrics for broccoli-source
Gathering detailed insights and metrics for broccoli-source
Gathering detailed insights and metrics for broccoli-source
Broccoli plugin for referring to source directories on the file system
npm install broccoli-source
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
4 Stars
49 Commits
8 Forks
6 Watching
12 Branches
5 Contributors
Updated on 26 Aug 2021
TypeScript (90.18%)
JavaScript (9.82%)
Cumulative downloads
Total Downloads
Last day
-25.4%
92,316
Compared to previous day
Last week
-14.5%
534,305
Compared to previous week
Last month
12.4%
2,545,848
Compared to previous month
Last year
49%
33,076,710
Compared to previous year
1
Broccoli plugin for creating "source" nodes that refer to physical file system directories.
In Brocfile.js
:
1const { WatchedDir, UnwatchedDir } = require('broccoli-source'); 2 3// Refers to the ./lib directory on disk, and watches it. 4const lib = new WatchedDir('lib'); 5// Note: this is equivalent to the deprecated plain-string syntax: 6// const lib = 'lib'; 7 8// Refers to the ./bower_components/jquery directory, but does not watch it. 9const jquery = new UnwatchedDir('bower_components/jquery');
new WatchedDir(directoryPath, options)
Create a Broccoli node referring to a directory on disk. The Broccoli watcher
used by broccoli serve
will watch the directory and all subdirectories, and
trigger a rebuild whenever something changes.
directoryPath
: A path to a directory, either absolute, or relative to the
working directory (typically the directory containing Brocfile.js
).
The directory must exist, or Broccoli will abort.
options
:
annotation
: A human-readable description for this node.new UnwatchedDir(directoryPath, options)
Same as WatchedDir
, but the directory will not be watched.
This can be useful for performance reasons. For example, say you want to refer
to a large directory hierarchy of third-party code in your Brocfile.js
. Such
third-party code is rarely edited in practice. Using UnwatchedDir
instead of
WatchedDir
saves the overhead of setting up useless file system watchers.
When in doubt, use WatchedDir
instead.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/15 approved changesets -- score normalized to 3
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
45 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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