Skip to content

Commit

Permalink
some more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc committed Oct 8, 2024
1 parent a1bb0a7 commit 280975a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ This repository contains various tools that we use to help with the process of m

## Tools

- [checker](./cmd/checker)
- [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

Expand Down
19 changes: 19 additions & 0 deletions cmd/git-sync/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Build

Build git-sync:
```
cd ./cmd/git-sync
go build
```

## Usage

Write last update marker file (can be found at https://github.com/cdnjs/cdnjs/blob/master/last-sync):
```
echo "2024-09-08T01:33:46.508Z" > /tmp/last-sync
```

Run git-sync:
```
DEBUG=1 PUSH_FREQ=0 ./git-sync /tmp/last-sync cdnjs-outgoing-prod
```

0 comments on commit 280975a

Please sign in to comment.