Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloud-build-cache

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloud-build-cache

Cache folders such as node_modules in gcs and restore them on next builds to reduce build time.

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cloud-build-cache

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.

Install

You can find this package on npm.

npm install cloud-build-cache

Example usage

node

const {
  installPackage,
} = require("cloud-build-cache");

installPackage({
    bucketName: 'my-project-build-cache',
    storageOptions: {
        keyFilename: path.resolve(__dirname, '../service-account.json'),
    },
});

CLI

Usage: cbc 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 look in cache bucket. Still uploads archive to bucket
  --cmd [cmd]          Command to create node_modules folder. (default: "npm ci")
  -h, --help           display help for command

Keywords

FAQs

Package last updated on 09 Nov 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc