-
-
Notifications
You must be signed in to change notification settings - Fork 574
/
pack.sh
executable file
·180 lines (154 loc) · 3.41 KB
/
pack.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
#!/usr/bin/env bash
set -e -x
rm -rf builds/
mkdir builds/
yarn clean
# @graphile/lru
cd utils/lru
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/graphile__lru.tgz
cd -
# tamedevil
cd utils/tamedevil
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/tamedevil.tgz
cd -
# graphile-config
cd utils/graphile-config
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/graphile-config.tgz
cd -
#grafast
cd grafast/grafast
yarn build
cp -a ../../.yarn ../../.yarnrc.yml release
rm -Rf /tmp/grafast-build
mv release /tmp/grafast-build
# Build in temp folder
cd /tmp/grafast-build
rm -f *.tgz
yarn pack -o package.tgz
cd -
# Grab package
mv /tmp/grafast-build/package.tgz ../../builds/grafast.tgz
rm -Rf /tmp/grafast-build
cd ../..
# ruru-components
cd grafast/ruru-components
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/ruru-components.tgz
cd -
# ruru
cd grafast/ruru
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/ruru.tgz
cd -
#grafserv
cd grafast/grafserv
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/grafserv.tgz
cd -
#@dataplan/json
cd grafast/dataplan-json
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/dataplan__json.tgz
cd -
#eslint-plugin-graphile-export
cd utils/eslint-plugin-graphile-export
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/eslint-plugin-graphile-export.tgz
cd -
#graphile-export
cd utils/graphile-export
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/graphile-export.tgz
cd -
#jest-serializer-graphql-schema
cd utils/jest-serializer-graphql-schema
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/jest-serializer-graphql-schema.tgz
cd -
#jest-serializer-simple
cd utils/jest-serializer-simple
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/jest-serializer-simple.tgz
cd -
#graphile-build
cd graphile-build/graphile-build
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/graphile-build.tgz
cd -
#pg-introspection
cd utils/pg-introspection
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/pg-introspection.tgz
cd -
#pg-sql2
cd utils/pg-sql2
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/pg-sql2.tgz
cd -
#@dataplan/pg # NEEDS CUSTOM RELEASE
cd grafast/dataplan-pg
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/dataplan__pg.tgz
cd ../..
#graphile-build-pg
cd graphile-build/graphile-build-pg/
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/graphile-build-pg.tgz
cd -
#graphile-utils
cd graphile-build/graphile-utils
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/graphile-utils.tgz
cd -
#postgraphile
cd postgraphile/postgraphile/
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/postgraphile.tgz
cd -
#pgl
cd postgraphile/pgl/
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/pgl.tgz
cd -
# @graphile/simplify-inflection
cd graphile-build/graphile-simplify-inflection
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/graphile__simplify-inflection.tgz
cd -
# @grafserv/persisted
cd grafast/grafserv-persisted
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/grafserv__persisted.tgz
cd -
# graphile
cd utils/graphile
rm -f *.tgz
yarn pack -o package.tgz
mv package.tgz ../../builds/graphile.tgz
cd -
echo "All packages packed into 'builds/'"
echo "Now publish them with './publish.sh'"