-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdistribute
executable file
·66 lines (45 loc) · 2.17 KB
/
distribute
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
#!/usr/bin/env bash
echo
echo "📰 Distributing"
echo " 👇"
echo " 📝 Committing changes to library..."
echo
# snuggsi.es =============================================================
git add dist/snuggsi.es
git commit --message ":muscle: bump BUNDLED distribution dist/snuggsi.es"
git add dist/snuggsi.min.es
git commit --message ":muscle: bump MINIFIED distribution dist/snuggsi.min.es"
git add dist/snuggsi.min.es.br
git commit --message ":muscle: bump BROTLI distribution dist/snuggsi.min.es.br"
git add dist/snuggsi.min.es.deflate
git commit --message ":muscle: bump BROTLI distribution dist/snuggsi.min.es.deflate"
git add dist/snuggsi.min.es.gz
git commit --message ":muscle: bump GZIP distribution dist/snuggsi.min.es.gz"
git add dist/snuggsi.min.es.zlib
git commit --message ":muscle: bump ZLIB distribution dist/snuggsi.min.es.zlib"
# snuggsi.js =============================================================
git add dist/snuggsi.js
git commit --message ":muscle: bump TRANSPILED distribution dist/snuggsi.js"
git add dist/snuggsi.min.js
git commit --message ":muscle: bump MINIFIED distribution dist/snuggsi.min.js"
git add dist/snuggsi.min.js.br
git commit --message ":muscle: bump BROTLI distribution dist/snuggsi.min.js.br"
git add dist/snuggsi.min.js.deflate
git commit --message ":muscle: bump BROTLI distribution dist/snuggsi.min.js.deflate"
git add dist/snuggsi.min.js.gz
git commit --message ":muscle: bump GZIP distribution dist/snuggsi.min.js.gz"
git add dist/snuggsi.min.js.zlib
git commit --message ":muscle: bump ZLIB distribution dist/snuggsi.min.js.zlib"
# unpkg.com ==============================================================
# Make unpkg.com happy https://unpkg.com
cp dist/snuggsi.js index.js
git add index.js
git commit --message ":muscle: bump ??? distribution index.js"
# THIS IS A HACK due to unpkg.com not supporting application/ecmascript
# See https://github.com/devpunks/snuggsi/issues/174
cp dist/snuggsi.min.es dist/snuggsi.min.es.js
git add dist/snuggsi.min.es.js
git commit --message ":muscle: bump ??? distribution dist/snuggsi.min.es.js"
echo 'TODO: `git diff && git add && git commit` Routine'
git status
git diff --quiet # Check for dirty files