Skip to content

Commit 1a35cd8

Browse files
authored
Merge pull request #286 from cdnjs/sven/docs
some more docs
2 parents c06f96f + 280975a commit 1a35cd8

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ This repository contains various tools that we use to help with the process of m
1212

1313
## Tools
1414

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

1721
## Configuration
1822

cmd/git-sync/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Build
2+
3+
Build git-sync:
4+
```
5+
cd ./cmd/git-sync
6+
go build
7+
```
8+
9+
## Usage
10+
11+
Write last update marker file (can be found at https://github.com/cdnjs/cdnjs/blob/master/last-sync):
12+
```
13+
echo "2024-09-08T01:33:46.508Z" > /tmp/last-sync
14+
```
15+
16+
Run git-sync:
17+
```
18+
DEBUG=1 PUSH_FREQ=0 ./git-sync /tmp/last-sync cdnjs-outgoing-prod
19+
```

0 commit comments

Comments
 (0)