Skip to content

Commit 5964b29

Browse files
committed
add license and ci
1 parent 5adf685 commit 5964b29

File tree

10 files changed

+170
-39
lines changed

10 files changed

+170
-39
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
name: LaunchQL tests
1+
name: Supabase tests
22
on:
33
push:
4+
pull_request:
5+
types: [opened, synchronized, reopened]
46
workflow_dispatch:
57

68
jobs:
@@ -10,37 +12,23 @@ jobs:
1012

1113
env:
1214
PGHOST: pg_db
13-
PGPORT: 5432
14-
PGUSER: postgres
15-
PGPASSWORD: password
15+
PGPORT: 54322
16+
PGUSER: supabase_admin
17+
PGPASSWORD: postgres
1618

1719
services:
1820
pg_db:
1921
image: supabase/postgres:17.6.1.013
2022
env:
2123
POSTGRES_USER: supabase_admin
22-
POSTGRES_PASSWORD: password
24+
POSTGRES_PASSWORD: postgres
2325
options: >-
2426
--health-cmd pg_isready
2527
--health-interval 10s
2628
--health-timeout 5s
2729
--health-retries 5
2830
ports:
29-
- 5432:5432
30-
31-
minio_cdn:
32-
image: minio/minio:edge-cicd
33-
env:
34-
MINIO_ROOT_USER: minioadmin
35-
MINIO_ROOT_PASSWORD: minioadmin
36-
ports:
37-
- 9000:9000
38-
- 9001:9001
39-
options: >-
40-
--health-cmd "curl -f http://localhost:9000/minio/health/live || exit 1"
41-
--health-interval 10s
42-
--health-timeout 5s
43-
--health-retries 5
31+
- 54322:54322
4432

4533
steps:
4634
- name: Configure Git (for tests)
@@ -62,7 +50,7 @@ jobs:
6250
run: pnpm install
6351

6452
- name: Install LaunchQL CLI globally
65-
run: npm install -g @launchql/cli@4.9.0
53+
run: npm install -g @launchql/cli@4.12.1
6654

6755
- name: Build
6856
run: pnpm -r build
@@ -81,15 +69,15 @@ jobs:
8169
env:
8270
PGHOST: pg_db
8371
PGPORT: 5432
84-
PGUSER: postgres
85-
PGPASSWORD: password
72+
PGUSER: supabase_admin
73+
PGPASSWORD: postgres
8674

8775
services:
8876
pg_db:
8977
image: supabase/postgres:17.6.1.013
9078
env:
9179
POSTGRES_USER: supabase_admin
92-
POSTGRES_PASSWORD: password
80+
POSTGRES_PASSWORD: postgres
9381
options: >-
9482
--health-cmd pg_isready
9583
--health-interval 10s
@@ -98,20 +86,6 @@ jobs:
9886
ports:
9987
- 5432:5432
10088

101-
minio_cdn:
102-
image: minio/minio:edge-cicd
103-
env:
104-
MINIO_ROOT_USER: minioadmin
105-
MINIO_ROOT_PASSWORD: minioadmin
106-
ports:
107-
- 9000:9000
108-
- 9001:9001
109-
options: >-
110-
--health-cmd "curl -f http://localhost:9000/minio/health/live || exit 1"
111-
--health-interval 10s
112-
--health-timeout 5s
113-
--health-retries 5
114-
11589
steps:
11690
- name: Configure Git (for tests)
11791
run: |
@@ -132,7 +106,7 @@ jobs:
132106
run: pnpm install
133107

134108
- name: Install LaunchQL CLI globally
135-
run: npm install -g @launchql/cli@4.9.0
109+
run: npm install -g @launchql/cli@4.12.1
136110

137111
- name: Build
138112
run: pnpm -r build

packages/supabase-test/README.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
> **⚠️ UPGRADE TO 2.0**
2+
>
3+
> **Create Cosmos App 2.0 is here!** This package has been superseded by the new version.
4+
>
5+
> Please upgrade to [**Create Interchain App**](https://github.com/hyperweb-io/create-interchain-app) (Create Cosmos App 2.0), featuring enhanced capabilities and expanded Interchain ecosystem support.
6+
7+
# **MODULENAME**
8+
9+
<p align="center">
10+
<img src="https://user-images.githubusercontent.com/545047/188804067-28e67e5e-0214-4449-ab04-2e0c564a6885.svg" width="80"><br />
11+
supabase-test
12+
</p>
13+
14+
## install
15+
16+
```sh
17+
npm install supabase-test
18+
```
19+
20+
## Table of contents
21+
22+
- [**MODULENAME**](#supabase-test)
23+
- [Install](#install)
24+
- [Table of contents](#table-of-contents)
25+
- [Developing](#developing)
26+
- [Credits](#credits)
27+
28+
## Developing
29+
30+
When first cloning the repo:
31+
32+
```sh
33+
yarn
34+
# build the prod packages. When devs would like to navigate to the source code, this will only navigate from references to their definitions (.d.ts files) between packages.
35+
yarn build
36+
```
37+
38+
Or if you want to make your dev process smoother, you can run:
39+
40+
```sh
41+
yarn
42+
# build the dev packages with .map files, this enables navigation from references to their source code between packages.
43+
yarn build:dev
44+
```
45+
46+
## Interchain JavaScript Stack
47+
48+
A unified toolkit for building applications and smart contracts in the Interchain ecosystem ⚛️
49+
50+
| Category | Tools | Description |
51+
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
52+
| **Chain Information** | [**Chain Registry**](https://github.com/hyperweb-io/chain-registry), [**Utils**](https://www.npmjs.com/package/@chain-registry/utils), [**Client**](https://www.npmjs.com/package/@chain-registry/client) | Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application. |
53+
| **Wallet Connectors** | [**Interchain Kit**](https://github.com/hyperweb-io/interchain-kit)<sup>beta</sup>, [**Cosmos Kit**](https://github.com/hyperweb-io/cosmos-kit) | Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface. |
54+
| **Signing Clients** | [**InterchainJS**](https://github.com/hyperweb-io/interchainjs)<sup>beta</sup>, [**CosmJS**](https://github.com/cosmos/cosmjs) | A single, universal signing interface for any network |
55+
| **SDK Clients** | [**Telescope**](https://github.com/hyperweb-io/telescope) | Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules. |
56+
| **Starter Kits** | [**Create Interchain App**](https://github.com/hyperweb-io/create-interchain-app)<sup>beta</sup>, [**Create Cosmos App**](https://github.com/hyperweb-io/create-cosmos-app) | Set up a modern Interchain app by running one command. |
57+
| **UI Kits** | [**Interchain UI**](https://github.com/hyperweb-io/interchain-ui) | The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit. |
58+
| **Testing Frameworks** | [**Starship**](https://github.com/hyperweb-io/starship) | Unified Testing and Development for the Interchain. |
59+
| **TypeScript Smart Contracts** | [**Create Hyperweb App**](https://github.com/hyperweb-io/create-hyperweb-app) | Build and deploy full-stack blockchain applications with TypeScript |
60+
| **CosmWasm Contracts** | [**CosmWasm TS Codegen**](https://github.com/CosmWasm/ts-codegen) | Convert your CosmWasm smart contracts into dev-friendly TypeScript classes. |
61+
62+
## Credits
63+
64+
🛠 Built by [Interweb](https://interweb.co) — if you like our tools, please checkout and contribute [https://interweb.co](https://interweb.co)
65+
66+
## Disclaimer
67+
68+
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
69+
70+
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
it('works', () => {
2+
console.log('hello test world!');
3+
})
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
2+
module.exports = {
3+
preset: "ts-jest",
4+
testEnvironment: "node",
5+
transform: {
6+
"^.+\\.tsx?$": [
7+
"ts-jest",
8+
{
9+
babelConfig: false,
10+
tsconfig: "tsconfig.json",
11+
},
12+
],
13+
},
14+
transformIgnorePatterns: [`/node_modules/*`],
15+
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
16+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
17+
modulePathIgnorePatterns: ["dist/*"]
18+
};
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "supabase-test",
3+
"version": "0.0.1",
4+
"author": "Interweb <[email protected]>",
5+
"description": "supabase-test",
6+
"main": "index.js",
7+
"module": "esm/index.js",
8+
"types": "index.d.ts",
9+
"homepage": "https://github.com/launchql/supabase-test",
10+
"license": "SEE LICENSE IN LICENSE",
11+
"publishConfig": {
12+
"access": "public",
13+
"directory": "dist"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/launchql/supabase-test"
18+
},
19+
"bugs": {
20+
"url": "https://github.com/launchql/supabase-test/issues"
21+
},
22+
"scripts": {
23+
"copy": "copyfiles -f ../../LICENSE README.md package.json dist",
24+
"clean": "rimraf dist/**",
25+
"prepare": "npm run build",
26+
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
27+
"build:dev": "npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
28+
"lint": "eslint . --fix",
29+
"test": "jest",
30+
"test:watch": "jest --watch"
31+
},
32+
"keywords": []
33+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default () => {
2+
3+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "dist/esm",
5+
"module": "es2022",
6+
"rootDir": "src/",
7+
"declaration": false
8+
}
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"rootDir": "src/"
6+
},
7+
"include": ["src/**/*.ts"],
8+
"exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"]
9+
}

packages/supabase/deploy/LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The PostgreSQL License
2+
3+
Copyright (c) 2020, Supabase
4+
5+
Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.
6+
7+
IN NO EVENT SHALL Supabase BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF Supabase HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8+
9+
Supabase SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND Supabase HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)