Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
cloud-build-cache
Advanced tools
Readme
Cache folders such as node_modules in gcs and restore them on next builds.
NOTE: If you are using npm install
in your projects and are looking to speed up your CI/CD build process you should first look at using npm ci
.
You can find this package on npm
.
npm install cloud-build-cache
Node
const {
installPackage,
} = require("cloud-build-cache");
installPackage({
bucketName: 'my-project-build-cache',
storageOptions: {
keyFilename: path.resolve(__dirname, '../service-account.json'),
},
});
CLI
Usage: cloud-build-cache [options] [command]
Options:
-h, --help display help for command
Commands:
install [options] Fetch node_modules from cloud storage bucket before installing the package.
help [command] display help for command
Usage: cloud-build-cache install [options]
Fetch node_modules from cloud storage bucket before installing the package.
Options:
--bucket <name> Name of google cloud storage bucket. Used as cache location.
--cwd [cwd] Current working directory.
--key <keyFilename> Path to key file with service account for Google cloud storage.
--no-cache Do not use cache bucket.
--cmd [cmd] Command to create node_modules folder. (default: "npm ci")
-h, --help display help for command.
FAQs
Cache folders such as node_modules in gcs and restore them on next builds to reduce build time.
We found that cloud-build-cache 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.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).