1- ![ tea ] ( https://tea.xyz /banner.png )
1+ ![ pkgx ] ( https://pkgx.dev /banner.png )
22
33# BrewKit
44
5- BrewKit is build infrastructure for tea .
5+ BrewKit is build infrastructure for ` pkgx ` .
66
77``` sh
8- tea pkg build zlib.net
9- # ^^ same as tea +tea.xyz/brewkit pkg build zlib.net
8+ $ env +brewkit
9+ $ pkg build zlib.net
1010```
1111
12- If you are inside a pantry and tea magic is installed, you can omit the ` tea `
13- preamble and package names; BrewKit will figure out what packages you are
12+ If you are inside a pantry then BrewKit will figure out what packages you are
1413editing and build them.
1514
1615``` sh
16+ $ cd pantry
17+ $ dev
1718$ pkg build
18- tea.xyz/ brewkit: building zlib.net
19+ brewkit: building zlib.net
1920```
2021
2122You can build for Linux (via Docker) using ` -L ` , e.g.:
@@ -26,18 +27,18 @@ pkg -L build
2627
2728## Outside a Pantry Checkout
2829
29- Outside a pantry checkout we operate against your tea installation
30- (which defaults to ` ~/.tea ` ). Builds occur in a temporary directory rather
30+ Outside a pantry checkout we operate against your ` pkgx ` installation
31+ (which defaults to ` ~/.pkgx ` ). Builds occur in a temporary directory rather
3132than local to your pantry checkout.
3233
3334``` sh
34- tea pkg build zlib.net
35+ pkgx +brewkit pkg build zlib.net
3536```
3637
3738
3839## Additions
3940
40- This repo is for tooling built on top of the tea primitives with the purpose
41+ This repo is for tooling built on top of the ` pkgx ` primitives with the purpose
4142of generalized building and testing of open source packages.
4243
4344If you have an idea for an addition open a [ discussion] !
@@ -75,41 +76,26 @@ brewkit will be used rather than that which is installed.
7576
7677## Bump
7778
79+ Priority is one of ` major|minor|patch|prerelease|VERSION `
80+
7881Inputs: PRIORITY
7982
8083``` sh
81- if ! git diff-index --quiet HEAD --; then
82- echo " error: dirty working tree" >&2
83- exit 1
84- fi
85-
86- if [ " $( git rev-parse --abbrev-ref HEAD) " != " main" ]; then
87- echo " error: requires main branch" >&2
88- exit 1
89- fi
90-
91- # ensure we have the latest version tags
92- git fetch origin -pft
93-
94- V=$( git describe --tags --abbrev=0 --match " v[0-9]*.[0-9]*.[0-9]*" )
95- V=$( tea semverator bump $V $PRIORITY )
96-
97- git push origin main
98- tea gh release create " v$V " -rc --prerelease --generate-notes --title " v$V "
84+ ./scripts/publish-release.sh $PRIORITY
9985```
10086
10187
102- [ discussion ] : https://github.com/orgs/teaxyz/discussions
103-
104-
10588## Shellcheck
10689
10790``` sh
10891for x in bin/* ; do
10992 if file $x | grep ' shell script' ; then
110- tea shellcheck --shell=dash --severity=warning $x
93+ pkgx shellcheck --shell=dash --severity=warning $x
11194 fi
11295done
11396
114- tea shellcheck --shell=dash --severity=warning ** /* .sh
97+ pkgx shellcheck --shell=dash --severity=warning ** /* .sh
11598```
99+
100+
101+ [ discussion ] : https://github.com/orgs/pkgxdev/discussions
0 commit comments