![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
serverless-build-substitute-plugin
Advanced tools
Readme
A Serverless Build Plugin to substitute files into a build (eg. AWS binaries into node_modules) prior to deployment.
NOTE: currently works on Serverless 0.5.x only.
Support for Serverless 1.0.x is coming once it has reached RC/Stable.
To use simply add serverless-substitute-plugin
to your "plugins"
section in your s-project.json
file.
Then to use you can simply add it as an entry in your serverless.build.yml
file in your project root.
This can be used for deploying AWS compatible binaries into the package before deployment.
# ./serverless.build.yml
method: "bundle"
sourceMaps : true
babel : true # Will use ./.babelrc
uglify : true # Will use defaults
exclude:
- "*" # Ignores the root directory
modules:
exclude: # excluded from the root node_modules
- aws-sdk
deepExclude: # excluded from nested node_modules
- aws-sdk
## Global Substitute File (will run on all functions deployed)
substitute:
- from: "bin/somefile.bin" # Rel path to your project for the file to substitute from
to: "somefile.bin" # One or more destinations for the file to be copied to
functions:
one:
include:
- "functions/one/**"
- "lib/one/**"
exclude:
- "**/*.json"
# Substitute Files (per function)
substitute:
- from: "bin/iconv.node" # Rel path to your project for the file to substitute from
to: # One or more destinations for the file to be copied to
- "node_modules/iconv/build/Release/iconv.node"
- "node_modules/iconv/build/Release/obj.target/iconv.node"
- "node_modules/iconv/build/Debug/iconv.node"
- "node_modules/iconv/build/Debug/obj.target/iconv.node"
- from: "bin/somefile.bin" # Rel path to your project for the file to substitute from
to: "somefile.bin" # One or more destinations for the file to be copied to
FAQs
A Serverless Build plugin to substitute files into a build (eg. AWS binaries into node_modules)
The npm package serverless-build-substitute-plugin receives a total of 0 weekly downloads. As such, serverless-build-substitute-plugin popularity was classified as not popular.
We found that serverless-build-substitute-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.