Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@architect/arc-plugin-node-prune
Advanced tools
Changelog
[1.0.0 - 1.0.1] 2019-02-03
@architect/[shared|views]
, which are Architect's shared code paths copied into Functions' node_modules
Readme
@architect/arc-plugin-node-prune
Node.js-specific Architect plugin based on
node-prune
that cleansnode_modules
cruft from your Functions during deployment
Pruning your node_modules
tree(s) has some inherent risks. While we have found it to be stable and reliable, the packages your project uses may provide different results.
For example: while unlikely, a package that includes and makes use of a file with a commonly .npmignore
d filename may be impacted by this pruner. For a list of files and folders that are pruned, please review the script.
Run: npm i @architect/arc-plugin-node-prune
Then add the following to your Architect project file (usually .arc
):
@plugins
architect/arc-plugin-node-prune
Note, no
@
in the plugin name!
npx deploy
) and watch the filesizes drop 📉In practice, we have seen average filesize and file count reductions of about 25-30% across the board. That's a meaningful number for cloud functions!
If for whatever reason you need to disable the plugin, simply comment it out in (or remove it from) your Architect project file:
@plugins
# architect/arc-plugin-node-prune
src/shared
and src/views
into all Functions' node_modules
dirs by default.
src/shared
and src/views
will not be pruned.FAQs
Architect serverless framework plugin that runs node-prune on functions prior to deployment
The npm package @architect/arc-plugin-node-prune receives a total of 5 weekly downloads. As such, @architect/arc-plugin-node-prune popularity was classified as not popular.
We found that @architect/arc-plugin-node-prune demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.