https://github.com/cdnjs/tools
🛠Tools for maintaining cdnjs - The #1 free and open source CDN built to make life easier for developers.
https://github.com/cdnjs/tools
Last synced: 11 months ago
JSON representation
🛠Tools for maintaining cdnjs - The #1 free and open source CDN built to make life easier for developers.
- Host: GitHub
- URL: https://github.com/cdnjs/tools
- Owner: cdnjs
- License: mit
- Created: 2019-12-03T15:36:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-08T06:58:56.000Z (over 1 year ago)
- Last Synced: 2024-10-30T00:55:24.889Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 2.47 MB
- Stars: 23
- Watchers: 9
- Forks: 18
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Audit: audit/audit.go
Awesome Lists containing this project
README
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](./cmd/checker): tools for our CI
- [git-sync](./cmd/git-sync): pushes new cdnjs updates to the GitHub repo
- [process-version-host](./cmd/process-version-host): listens for new versions and spawns container with [process-version].
- [process-version](./cmd/process-version): processes new versions (organizes files, compresses, minifies etc)
- [r2-pump](./cmd/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`.
- [jpegoptim](https://www.kokkonen.net/tjko/projects.html)
- [zopflipng](https://github.com/google/zopfli)
- [brotli](https://github.com/google/brotli) (Linux)
## 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](LICENSE).