
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
metalsmith-only-build
Advanced tools
Build only a specific set of files from metalsmith.
The default behavior of metalsmith is to always rebuild everything.
The main purpose of this plugin is to try and streamline builds as much as
possible during development. (particularly for make users)
Before metalsmith starts writing files, this plugin will delete every
reference from the files hash that is not specified to be built. This
causes Metalsmith to skip these files during the last phase of the build.
(this plugin should be last in order to prevent unwanted side-effects)
Most plugins assume that all files in the build will be available in memory,
so we cannot safely reject files from the build at the outset. However, by
skipping the I/O required to write those files at the end, we can save some
build time, while also allowing make to be used properly.
This plugin goes to great lengths to not change the default behavior of Metalsmith unless it is very clear that is the intent of the dev.
Metalsmith.clean must be set to falseMETALSMITH_ONLY env var must be set (as a space-separated list of
files to only include)var only = require('metalsmith-only-build');
// make sure this plugin is **last**
metalsmith.use(only())
{
"plugins": {
// make sure this plugin is **last**
"metalsmith-only-build": true
}
}
build/%.html: articles/%.html
METALSMITH_ONLY="%<" metalsmith
FAQs
Only build a certain subset of an entire metalsmith site.
The npm package metalsmith-only-build receives a total of 36 weekly downloads. As such, metalsmith-only-build popularity was classified as not popular.
We found that metalsmith-only-build demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.