2022-08-01 22:43:40 +03:00
|
|
|
|
![tea](https://tea.xyz/banner.png)
|
|
|
|
|
|
|
|
|
|
tea is a decentralized package manager—this requires a decentralized package
|
|
|
|
|
registry. We’re releasing our testnet later this year. In the meantime the
|
|
|
|
|
pantry is our stop-gap solution.
|
|
|
|
|
|
2022-10-17 20:45:32 +03:00
|
|
|
|
# Getting Started
|
|
|
|
|
|
|
|
|
|
You’ll need a `GITHUB_TOKEN` in your environment since we use the GitHub
|
|
|
|
|
GraphQL API to fetch versions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Meta
|
|
|
|
|
|
|
|
|
|
## Entry Requirements
|
2022-08-01 22:43:40 +03:00
|
|
|
|
|
|
|
|
|
This pantry only accepts devtools that we feel confident we can maintain.
|
|
|
|
|
Quality and robustness are our goals. If you want other tools you can maintain
|
|
|
|
|
your own pantry and we’ll build the binaries.
|
|
|
|
|
|
2022-10-17 20:45:32 +03:00
|
|
|
|
## Philosophy
|
2022-08-01 22:43:40 +03:00
|
|
|
|
|
|
|
|
|
Fundamentally we're coming at this from the perspective that the maintainer
|
|
|
|
|
should decide how their software is distributed and we’re making the tools so
|
|
|
|
|
they can do that in cross platform way.
|
|
|
|
|
|
|
|
|
|
This repo is a bootstrap and is stubs.
|
|
|
|
|
|
2022-10-17 20:45:32 +03:00
|
|
|
|
## Naming
|
2022-08-01 22:43:40 +03:00
|
|
|
|
|
|
|
|
|
We use fully-qualified names. Naming is hard, and the world has spent a while
|
|
|
|
|
trying to get it right. In this kind of domain the *correct choice* is
|
|
|
|
|
to namespace.
|
|
|
|
|
|
2022-10-17 20:45:32 +03:00
|
|
|
|
## Packaging Knowledgebase
|
|
|
|
|
|
|
|
|
|
Our [wiki](/wiki) is our knowledgebase. Fill it with the fruits of your
|
|
|
|
|
knowledge. Please keep it tidy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-01 22:43:40 +03:00
|
|
|
|
# Coming Soon
|
|
|
|
|
|
|
|
|
|
## Maintaining Your Own Pantry
|
|
|
|
|
|
|
|
|
|
We will build binaries for forks of this repository and then surface the
|
|
|
|
|
`package.yml`s you maintain to users of tea/cli. This feature is coming
|
|
|
|
|
soon and will require signed commits and that you come to our Discord and say
|
|
|
|
|
hi.
|
|
|
|
|
|
|
|
|
|
## Hosting and Maintaining Your Own `package.yml`
|
|
|
|
|
|
|
|
|
|
If you have a website you can host your own `package.yml` there and we will
|
|
|
|
|
build binaries for you. This feature is coming soon and will require
|
|
|
|
|
signed, versioned tags and signed source tarballs.
|
|
|
|
|
|
2022-08-05 23:22:53 +03:00
|
|
|
|
|
2022-10-17 20:45:32 +03:00
|
|
|
|
|
2022-08-01 22:43:40 +03:00
|
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
|
|
|
|
|
| Project | Version |
|
|
|
|
|
|-------------|---------|
|
2022-08-31 22:39:16 +03:00
|
|
|
|
| deno.land | ^1.23 |
|
2022-08-01 22:43:40 +03:00
|
|
|
|
| tea.xyz | ^0 |
|
2022-08-17 15:22:22 +03:00
|
|
|
|
|
|
|
|
|
## Build All
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
scripts/ls.ts | xargs scripts/sort.ts | xargs scripts/build.ts
|
|
|
|
|
```
|
2022-09-08 23:40:35 +03:00
|
|
|
|
|
|
|
|
|
## Typecheck
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
for x in scripts/*.ts src/app.ts; do
|
2022-10-27 17:59:31 +03:00
|
|
|
|
deno check --unstable --import-map=$SRCROOT/import-map.json $x
|
2022-09-08 23:40:35 +03:00
|
|
|
|
done
|
|
|
|
|
```
|