Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@factorialco/shadowdog
Advanced tools
Shadowdog is a Node.js package for generating artifacts as derivative processes of files in your project. Whether you need to generate static assets, precompiled resources, or any other transformations, Shadowdog makes it easy and powerful with its supercharged feature set.
Install Shadowdog via npm:
npm install shadowdog --save-dev
Shadowdog uses a configuration file (shadowdog.json
) to define workflows for generating artifacts. Here’s an example:
{
"$schema": "https://raw.githubusercontent.com/factorialco/shadowdog/refs/heads/main/schema.json",
"plugins": [],
"watchers": [
{
"files": ["example.txt"],
"commands": [
{
"artifacts": [
{
"output": "example.output.txt"
}
],
"command": "cp example.txt example.output.txt"
}
]
}
]
}
$schema
: Provides schema validation for the configuration.plugins
: An array of plugin names to extend Shadowdog's functionality.watchers
: Defines file watchers that trigger artifact generation commands.
files
: An array of file paths or glob patterns to watch.commands
: Commands to execute when changes are detected.
artifacts
: Specifies the output files generated by the command.command
: The shell command to run.Shadowdog provides a variety of commands to simplify your workflows:
npx shadowdog
npx shadowdog --watch
Enhance Shadowdog with these powerful plugins:
shadowdog-local-cache
Implements a local caching mechanism to speed up repeated artifact generation.
Environment variables:
SHADOWDOG_DISABLE_LOCAL_CACHE
: When true
, disables local cache completelySHADOWDOG_LOCAL_CACHE_READ
: When set, overrides the plugin's read cache configuration (true
/false
)SHADOWDOG_LOCAL_CACHE_WRITE
: When set, overrides the plugin's write cache configuration (true
/false
)SHADOWDOG_LOCAL_CACHE_PATH
: When set, overrides the plugin's cache directory pathshadowdog-remote-aws-s3-cache
Enables remote caching with AWS S3 for distributed workflows.
Environment variables:
SHADOWDOG_DISABLE_REMOTE_CACHE
: When true
, disables remote cache completelySHADOWDOG_REMOTE_CACHE_READ
: When set, overrides the plugin's read cache configuration (true
/false
)SHADOWDOG_REMOTE_CACHE_WRITE
: When set, overrides the plugin's write cache configuration (true
/false
)AWS_PROFILE
: AWS profile to use for authentication (optional)AWS_ACCESS_KEY_ID
: AWS access key ID (required if AWS_PROFILE not set)AWS_SECRET_ACCESS_KEY
: AWS secret access key (required if AWS_PROFILE not set)AWS_REGION
: AWS region (required if AWS_PROFILE not set)shadowdog-tag
Adds tagging capabilities to filter specific commands.
Environment variables:
SHADOWDOG_TAG
: When set, only runs commands with matching tagshadowdog-lock
Prevents multiple instances of Shadowdog from running simultaneously by implementing file-based locking.
shadowdog-git
Handles git rebases and merges smoothly pausing the watcher and resuming it after the rebase is done.
Internal configuration:
.git/rebase-merge
to detect rebase stateshadowdog-socket
Provides an external communication channel for interacting with Shadowdog.
No configurable environment variables. Uses socket events:
CHANGED_FILE
: Emitted when a file changesERROR
: Emitted on errorsINITIALIZED
: Emitted on startupCLEAR
: Emitted on cleanupshadowdog-tree
Generate a dependency tree structure between commands to run different commands that depend on each other.
No configurable environment variables. Uses internal dependency graph algorithm.
shadowdog-rake
Optimize multiple bundle exec rake
commands into a single command.
No configurable environment variables. Automatically detects and combines rake tasks.
To use a plugin, add it to the plugins
section of your shadowdog.json
configuration file. For example:
Update your configuration:
{
...
"plugins": [
{
"name": "shadowdog-local-cache",
},
{
"name" : "shadowdog-tree"
}
]
...
}
Take into account that the order of plugins is important. The plugins will be executed in the order they are defined in the configuration file.
Shadowdog is open source and available under the MIT License.
If you encounter any issues, have questions, or want to suggest features, please open an issue or join the discussions.
Enjoy artifact generation, supercharged! 🐾
FAQs
Unknown package
The npm package @factorialco/shadowdog receives a total of 352 weekly downloads. As such, @factorialco/shadowdog popularity was classified as not popular.
We found that @factorialco/shadowdog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.