Skip to content
/ tools Public

πŸ›  Tools for maintaining cdnjs - The #1 free and open source CDN built to make life easier for developers.

License

Notifications You must be signed in to change notification settings

cdnjs/tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1a35cd8 Β· Oct 31, 2024
Mar 5, 2024
Jun 29, 2021
Mar 5, 2024
Oct 8, 2024
Dec 18, 2023
Apr 14, 2021
May 12, 2021
Mar 5, 2024
Jun 8, 2021
Aug 20, 2021
Jun 21, 2023
Mar 5, 2024
Jun 8, 2021
Jan 26, 2024
Dec 18, 2023
Jan 26, 2024
Jul 4, 2020
May 12, 2021
Jul 26, 2021
May 18, 2021
Jul 26, 2021
May 12, 2021
Jul 31, 2020
Mar 5, 2024
Oct 8, 2024
Mar 5, 2024
Mar 5, 2024
Aug 1, 2023
Apr 20, 2021
Apr 20, 2021

Repository files navigation

< cdnjs >

The #1 free and open source CDN built to make life easier for developers.


Introduction

This repository contains various tools that we use to help with the process of maintaining cdnjs.

Tools

  • checker: tools for our CI
  • git-sync: pushes new cdnjs updates to the GitHub repo
  • process-version-host: listens for new versions and spawns container with [process-version].
  • process-version: processes new versions (organizes files, compresses, minifies etc)
  • r2-pump: pushes new cdnjs updates to the Cloudflare R2

Configuration

  • DEBUG: pass true to run in debug mode
  • BOT_BASE_PATH: cdnjs home
  • SENTRY_DSN sentry data source name (DSN)
  • WORKERS_KV_FILES_NAMESPACE_ID workers kv namespace ID for files
  • WORKERS_KV_SRIS_NAMESPACE_ID workers kv namespace ID for file SRIs
  • WORKERS_KV_VERSIONS_NAMESPACE_ID workers kv namespace ID containing metadata for versions
  • WORKERS_KV_PACKAGES_NAMESPACE_ID workers kv namespace ID containing metadata for packages
  • WORKERS_KV_AGGREGATED_METADATA_NAMESPACE_ID workers kv namespace ID containing aggregated metadata for packages
  • WORKERS_KV_ACCOUNT_ID workers kv account ID
  • WORKERS_KV_API_TOKEN workers kv api token

Dependencies

In tools/ run npm install.

Run update locally

bash ./scripts/test-process-version.sh package-name package-version

License

Each library hosted on cdnjs is released under its own license. This cdnjs repository is published under MIT license.