-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
71 lines (57 loc) · 3.54 KB
/
build.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# Functional notebooks:
# https://api.observablehq.com/d/acf5948490e70d89@67.tgz?v=3
# https://api.observablehq.com/d/cd56e0ffe4799c15@42.tgz?v=3
# https://api.observablehq.com/d/a566a1f767ee4bcb@748.tgz?v=3
# https://api.observablehq.com/d/2a49389a4d682131@222.tgz?v=3
# https://api.observablehq.com/d/8a7a308522fd592b@270.tgz?v=3
slide1v=67
slide2v=42
slide3v=750
slide4v=222
slide5v=271
BRANCH="kallewesterling/issue23"
BUILD_BRANCH=build
slide1h=acf5948490e70d89
slide2h=cd56e0ffe4799c15
slide3h=a566a1f767ee4bcb
slide4h=2a49389a4d682131
slide5h=8a7a308522fd592b
slide1=https://api.observablehq.com/d/$slide1h@$slide1v.tgz?v=3
slide2=https://api.observablehq.com/d/$slide2h@$slide2v.tgz?v=3
slide3=https://api.observablehq.com/d/$slide3h@$slide3v.tgz?v=3
slide4=https://api.observablehq.com/d/$slide4h@$slide4v.tgz?v=3
slide5=https://api.observablehq.com/d/$slide5h@$slide5v.tgz?v=3
rm -rf build
mkdir build
mkdir build/static
mkdir .temp
cp ./components/index.html build
cp ./components/slide2.html build
cp ./components/slide3.html build
cp ./components/slide4.html build
cp ./components/slide5.html build
cp -r ./components/static build
curl -o .temp/1.tgz $slide1 && mkdir build/slide1 && tar -C build/slide1 -xvzf .temp/1.tgz && rm build/slide1/index.html build/slide1/index.js build/slide1/inspector.css build/slide1/package.json build/slide1/README.md build/slide1/runtime.js
curl -o .temp/2.tgz $slide2 && mkdir build/slide2 && tar -C build/slide2 -xvzf .temp/2.tgz && rm build/slide2/index.html build/slide2/index.js build/slide2/inspector.css build/slide2/package.json build/slide2/README.md build/slide2/runtime.js
curl -o .temp/3.tgz $slide3 && mkdir build/slide3 && tar -C build/slide3 -xvzf .temp/3.tgz && rm build/slide3/index.html build/slide3/index.js build/slide3/inspector.css build/slide3/package.json build/slide3/README.md build/slide3/runtime.js
curl -o .temp/4.tgz $slide4 && mkdir build/slide4 && tar -C build/slide4 -xvzf .temp/4.tgz && rm build/slide4/index.html build/slide4/index.js build/slide4/inspector.css build/slide4/package.json build/slide4/README.md build/slide4/runtime.js
curl -o .temp/5.tgz $slide5 && mkdir build/slide5 && tar -C build/slide5 -xvzf .temp/5.tgz && rm build/slide5/index.html build/slide5/index.js build/slide5/inspector.css build/slide5/package.json build/slide5/README.md build/slide5/runtime.js
curl -o build/static/modules/htl.js 'https://cdn.jsdelivr.net/npm/htl@0.3.1'
curl -o build/static/modules/d3.js 'https://cdn.jsdelivr.net/npm/d3@7'
curl -o build/static/modules/moment.js 'https://cdn.jsdelivr.net/npm/moment@2.29.4'
curl -o build/static/modules/lodash.js 'https://cdn.jsdelivr.net/npm/lodash@4.17.21'
curl -o build/static/modules/plot.js 'https://cdn.jsdelivr.net/npm/@observablehq/plot@0.5.2'
curl -o build/static/modules/inputs.js 'https://cdn.jsdelivr.net/npm/@observablehq/inputs@0.10.4'
curl -o build/static/modules/d3-selection.js 'https://cdn.jsdelivr.net/npm/d3-selection@2'
curl -o build/static/modules/d3-array.js 'https://cdn.jsdelivr.net/npm/d3-array@3'
curl -o build/static/modules/d3-hierarchy.js 'https://cdn.jsdelivr.net/npm/d3-hierarchy@3'
curl -o build/static/core/runtime.js 'https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js'
curl -o build/static/style/bootstrap.min.css 'https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css'
curl -o build/static/style/bootstrap.min.css.map 'https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css.map'
rm -rf .temp
# git checkout $BUILD_BRANCH
# git add *
# git commit -m "Build $now"
# git push
# git checkout $BRANCH