Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
cmd
 
 
 
 
gcp
 
 
git
 
 
kv
 
 
 
 
npm
 
 
 
 
 
 
sri
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

< cdnjs >

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


MIT License Community

GitHub Sponsors Open Collective Patreon


Introduction

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

Tools

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.

Setup a local environment

All the tools uses BOT_BASE_PATH to define a "cdnjs home".

We are going to create the home at /tmp/cdnjs and do the following in the directory:

  • git clone https://github.com/cdnjs/packages.git
  • git clone https://github.com/cdnjs/glob.git
  • mkdir -p /tmp/cdnjs/cdnjs/ajax/libs (fake the cdnjs/cdnjs repo)

In glob run npm install.

Finally pass the BOT_BASE_PATH to the tool, for example: BOT_BASE_PATH=/tmp/cdnjs bin/autoupdate -no-update.

License

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

About

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

Resources

License

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
You can’t perform that action at this time.