Repository navigation
Expand file tree
/
Copy pathpack.sh
More file actions
executable file
路59 lines (53 loc) 路 1.81 KB
/
Copy pathpack.sh
File metadata and controls
executable file
路59 lines (53 loc) 路 1.81 KB
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
#!/usr/bin/env bash
set -e -x
rm -rf builds/
mkdir builds/
yarn clean
yarn workspaces-prepack
pack_pkg() {
local repoRoot="$(pwd)"
local packageDir="$1"
local outputBasename="$2"
if [ "$packageDir" == "" ]; then
echo "INVALID pack_pkg CALL! $1 $2"
exit 1
fi
if [ "$outputBasename" == "" ]; then
echo "INVALID pack_pkg CALL! $1 $2"
exit 1
fi
# sub-shell means no need to `cd -`
(
cd "${packageDir}/release"
rm -f package.tgz
yarn pack -o package.tgz
mv package.tgz "${repoRoot}/builds/${outputBasename}.tgz"
)
}
pack_pkg utils/lru graphile__lru
pack_pkg utils/tamedevil tamedevil
pack_pkg utils/graphile-config graphile-config
pack_pkg grafast/grafast grafast
pack_pkg grafast/ruru-types ruru-types
pack_pkg grafast/ruru-components ruru-components
pack_pkg grafast/ruru ruru
pack_pkg grafast/grafserv grafserv
pack_pkg grafast/dataplan-json dataplan__json
pack_pkg utils/eslint-plugin-graphile-export eslint-plugin-graphile-export
pack_pkg utils/graphile-export graphile-export
pack_pkg utils/jest-serializer-graphql-schema jest-serializer-graphql-schema
pack_pkg utils/jest-serializer-simple jest-serializer-simple
pack_pkg graphile-build/graphile-build graphile-build
pack_pkg utils/pg-introspection pg-introspection
pack_pkg utils/pg-sql2 pg-sql2
pack_pkg grafast/dataplan-pg dataplan__pg
pack_pkg graphile-build/graphile-build-pg graphile-build-pg
pack_pkg graphile-build/graphile-utils graphile-utils
pack_pkg postgraphile/postgraphile postgraphile
pack_pkg postgraphile/pgl pgl
pack_pkg graphile-build/graphile-simplify-inflection graphile__simplify-inflection
pack_pkg grafast/grafserv-persisted grafserv__persisted
pack_pkg utils/graphile graphile
pack_pkg grafast/codegen-plugin graphql-codegen-grafast
echo "All packages packed into 'builds/'"
echo "Now publish them with './publish.sh'"