-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
27 lines (27 loc) · 1.36 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"name": "repos.jonlauridsen.com",
"scripts": {
"clean": "rm -rf tmp/",
"deploy:gh-pages": "./scripts/deploy tmp/out/ gh-pages",
"deploy:gh-scraped": "./scripts/deploy tmp/scraped/ gh-scraped",
"deploy:update-gh-pages-with-scraped": "./scripts/update tmp/scraped/ static/repos gh-pages",
"export": "rm -rf tmp/out && docker build --build-arg SCRAPED_DIR=/app/scraped -t gaggle/repos.jonlauridsen.com-exporter . && docker run --rm -i -u $(id -u):$(id -g) -v \"$(pwd)/tmp\":/app gaggle/repos.jonlauridsen.com-exporter ${DATA_URL} /app/out",
"export:dev": "export DATA_URL=http://localhost:8080/static/repos/data.json && npm run export && cd tmp/out && serve -p 8080",
"export:prod": "export DATA_URL=http://repos.jonlauridsen.com/static/repos/data.json && npm run export",
"postexport": "touch tmp/out/.nojekyll && echo repos.jonlauridsen.com > tmp/out/CNAME",
"fetch:gh-scraped": "rm -rf tmp/scraped && ./scripts/fetch gh-scraped tmp/scraped/",
"scrape": "repo-scrape github -o=tmp/scraped/ -c=tmp/cache -vv"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gaggle/repos.jonlauridsen.com.git"
},
"author": "Jon Lauridsen <[email protected]>",
"license": "ISC",
"dependencies": {
"repo-scraper": "git+https://github.com/gaggle/repo-scraper.git#v0.4.0"
},
"devDependencies": {
"serve": "^10.1.1"
}
}