npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nx-remotecache-qiniu

v2.0.0

Published

Remote caching for @nrwl/nx using Qiniu Blob Storage

Downloads

9

Readme

npm package link

nx-remotecache-qiniu

中文文档 | 英文文档

nx-remotecache-qiniu is an innovative task runner for @nrwl/nx that leverages Qiniu Cloud Storage to create a remote cache. This unique approach allows all team members and CI servers to share a single cache, greatly enhancing efficiency and collaboration.

This package was built with nx-remotecache-custom 🙌

Features

  • Utilizes Qiniu Cloud Storage as a remote cache.
  • Enables cache sharing among team members and CI servers.
  • Built with nx-remotecache-custom.

Compatability

| Nx | Remote Cache | | --------- | ------------ | | >= 17.0.0 <18 | >= 1.0.0 | | >= 18.0.0 < 19| >= 2.0.0 |

Installation

To install, run the following command in your project directory:

npm install --save-dev nx-remotecache-qiniu

Setups

  1. Add Nx to your workspace guide

  2. npm install --save-dev nx-remotecache-qiniu

  3. (Required)Obtaining Qiniu Cloud Keys

    You can apply for keys at Qiniu Key Portal. Note that an individual can apply for up to 2 keys. For multiple users, create a Qiniu account and set sharing permissions in the created space.

    Qiniu Cloud and Zone Information

  4. Creating a Bucket in Qiniu Cloud:

    • Visit Qiniu Cloud Bucket Creation to create a new bucket.
    • Choose the appropriate region for your bucket. You can refer to the region and endpoint information at Qiniu Cloud Region and Endpoint. Remember to note the Region ID.
    • Upon successful creation of the bucket, you will receive a test domain from Qiniu Cloud.
  5. Customizing CDN Domain:

    • 2.1 (Optional) Apply for a domain if you do not already own one.
    • 2.2 Domain Record Filing:
    • 2.3 Configuring EV SSL Certificate for Your Domain:
      • Ensure your domain has an Extended Validation (EV) SSL Certificate for secure connections.
    • 2.4 Configuring CNAME Record for Custom CDN Domain:
      • Set up a CNAME record in your domain's DNS settings to enable your custom CDN domain.

Configuration

The nx-remotecache-qiniu requires the following options to be set:

| Parameter | Description | Environment Variable | nx.json | Notes | | --------- | ---------------------------------- | -------------------- | ----------- | ------------------------------------------------------------ | | accessKey | Qiniu Cloud accessKey | NXCACHE_ACCESS_KEY | accessKey | Obtain from the Qiniu Cloud management console | | secretKey | Qiniu Cloud secretKey | NXCACHE_SECRET_KEY | secretKey | Obtain from the Qiniu Cloud management console | | bucket | Storage Bucket | NXCACHE_BUCKET | bucket | | | domain | Access Domain | NXCACHE_DOMAIN | domain | CDN acceleration is recommended | | zone | Zone | NXCACHE_ZONE | zone | Corresponds to the lowercase ZoneID | | private | Private Bucket Option (true/false) | NXCACHE_PRIVATE | private | Default is false, optional attribute | | expires | Cache Expiration Time (in seconds) | NXCACHE_EXPIRES | expires | Default is 3600, set to 0 for updating the uploadToken always |


You can also use environment variables prefixed with NXCACHE_. Here's a format similar to the one you requested.

Now, let's move on to the Chinese version of the document.

nx.json Configuration Demo, configure nx.json as follows:

"tasksRunnerOptions": {
  "default": {
    "runner": "nx-remotecache-qiniu",
    "options": {
      "accessKey": "your_access_key",
      "secretKey": "your_secret_key",
      "bucket": "your_bucket_name",
      "domain": "your_domain",
      "zone": "your_zone",
      "private": true_or_false,
      "expires": expiration_time
    }
  }
}

Run it

Store files:

------------------------------------------------------------------------------
Stored output to remote cache: Nx Qiniu Cloud Storage - nx-remotecache-qiniu plugin
File: 14911649122709785563.tar.gz
------------------------------------------------------------------------------

Retreive files:

------------------------------------------------------------------------------
Remote cache hit: Nx Qiniu Cloud Storage - nx-remotecache-qiniu plugin
File: 14911649122709785563.tar.gz
------------------------------------------------------------------------------

> nx run header:build  [remote cache]

Advanced Configuration

See nx-remotecache-custom.