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
Configuration
DEBUG: pass true to run in debug modeBOT_BASE_PATH: cdnjs homeSENTRY_DSNsentry data source name (DSN)WORKERS_KV_FILES_NAMESPACE_IDworkers kv namespace ID for filesWORKERS_KV_SRIS_NAMESPACE_IDworkers kv namespace ID for file SRIsWORKERS_KV_VERSIONS_NAMESPACE_IDworkers kv namespace ID containing metadata for versionsWORKERS_KV_PACKAGES_NAMESPACE_IDworkers kv namespace ID containing metadata for packagesWORKERS_KV_AGGREGATED_METADATA_NAMESPACE_IDworkers kv namespace ID containing aggregated metadata for packagesWORKERS_KV_ACCOUNT_IDworkers kv account IDWORKERS_KV_API_TOKENworkers 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.gitgit clone https://github.com/cdnjs/glob.gitmkdir -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.
