Skip to content

Commit

Permalink
chore: rename (#356)
Browse files Browse the repository at this point in the history
* chore: change github url to teableio

* chore: rename teable-group to teable

* chore: rename url path to teableio
  • Loading branch information
tea-artist authored Jan 30, 2024
1 parent 68d3b1f commit 0a5e32a
Show file tree
Hide file tree
Showing 760 changed files with 1,845 additions and 3,492 deletions.
5 changes: 1 addition & 4 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "teable-group/teable" }
],
"changelog": ["@changesets/changelog-github", { "repo": "teableio/teable" }],
"privatePackages": { "version": true, "tag": true },
"commit": true,
"linked": [],
Expand Down
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github: teable-group
ko_fi: teable-group
github: teableio
ko_fi: teableio
12 changes: 6 additions & 6 deletions .github/workflows/ci-packages.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,28 @@ jobs:

- name: Run prisma db push generate db structure
run: |
yarn workspace @teable-group/db-main-prisma prisma-db-push
yarn workspace @teable/db-main-prisma prisma-db-push

# to debug cache issues: ls ${{ github.workspace }}/.cache
# Build packages that have changed (--include & --since), assuming that
# apps build are done already. Otherwise --from & --since
- name: Run build for changed packages
run: |
yarn workspaces foreach -tv --include '@teable-group/*' run build
yarn workspaces foreach -tv --include '@teable/*' run build

# Typecheck packages that have changed + packages and apps that depends on them (--from & --since)
# That allows to see if we're introducing "surface" regressions (just the types)
- name: Typecheck
run: |
yarn workspaces foreach -tv --from '@teable-group/*' run typecheck
yarn workspaces foreach -tv --from '@teable/*' run typecheck

# Lint packages that have changed (--include & --since)
- name: Linter
run: |
yarn workspaces foreach -tv --include '@teable-group/*' run lint
yarn workspaces foreach -tv --include '@teable-group/*' run lint-styles
yarn workspaces foreach -tv --include '@teable/*' run lint
yarn workspaces foreach -tv --include '@teable/*' run lint-styles

# Test packages that have changed (--include & --since)
- name: Unit tests changed packages
run: |
yarn workspaces foreach -tv --include '@teable-group/*' run test --silent
yarn workspaces foreach -tv --include '@teable/*' run test --silent
2 changes: 1 addition & 1 deletion .github/workflows/ci-web-app-docker.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
push: false
file: ./Dockerfile
target: runner
tags: teable-group/monorepo-nextjs-app:latest
tags: teableio/monorepo-nextjs-app:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: 🧩 Generate Prisma Client
working-directory: packages/db-main-prisma
run: |
pnpm -F @teable-group/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma
pnpm -F @teable/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma
- name: 🏗 Run build
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-or-version-pr.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
release:
# Basic security: the release job can only be executed from this repo and from the main branch (not a remote thing)
if: ${{ github.repository == 'teable-group/teable' && contains('refs/heads/main',github.ref)}}
if: ${{ github.repository == 'teableio/teable' && contains('refs/heads/main',github.ref)}}
name: Release and changelog
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: 🧩 Generate Prisma Client
working-directory: packages/db-main-prisma
run: |
pnpm -F @teable-group/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma
pnpm -F @teable/db-main-prisma prisma-generate --schema ./prisma/postgres/schema.prisma
- name: 🏗 Run build
run: |
Expand Down
4 changes: 1 addition & 3 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// @ts-check

const {
getPrettierConfig,
} = require('@teable-group/eslint-config-bases/helpers');
const { getPrettierConfig } = require('@teable/eslint-config-bases/helpers');

const { overrides = [], ...prettierConfig } = getPrettierConfig();

Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"sonarjs",
"sonner",
"teable",
"teableio",
"testid",
"topo",
"zustand"
Expand Down
38 changes: 19 additions & 19 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,29 @@ If applicable:

## Local scripts

| Name | Description |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `yarn g:changeset` | Add a changeset to declare a new version |
| `yarn g:typecheck` | Run typechecks in all workspaces |
| `yarn g:lint` | Display linter issues in all workspaces |
| `yarn g:lint --fix` | Attempt to run linter auto-fix in all workspaces |
| `yarn g:test-unit` | Run unit tests in all workspaces |
| `yarn g:build` | Run build in all workspaces |
| `yarn g:clean` | Clean builds in all workspaces |
| `yarn g:check-dist` | Ensure build dist files passes es2017 (run `g:build` first). |
| `yarn g:check-size` | Ensure build files are within size limit (run `g:build` first). |
| `yarn g:build-doc` | Build documentation (generally api doc) |
| `yarn clean:global-cache` | Clean tooling caches (eslint, jest...) |
| `yarn deps:check --dep dev` | Will print what packages can be upgraded globally (see also [.ncurc.yml](https://github.com/teable-group/teable/blob/main/.ncurc.yml)) |
| `yarn deps:update --dep dev` | Apply possible updates (run `yarn install && yarn dedupe` after) |
| `yarn check:install` | Verify if there's no peer-deps missing in packages |
| `yarn dedupe` | Built-in yarn deduplication of the lock file |
| Name | Description |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `yarn g:changeset` | Add a changeset to declare a new version |
| `yarn g:typecheck` | Run typechecks in all workspaces |
| `yarn g:lint` | Display linter issues in all workspaces |
| `yarn g:lint --fix` | Attempt to run linter auto-fix in all workspaces |
| `yarn g:test-unit` | Run unit tests in all workspaces |
| `yarn g:build` | Run build in all workspaces |
| `yarn g:clean` | Clean builds in all workspaces |
| `yarn g:check-dist` | Ensure build dist files passes es2017 (run `g:build` first). |
| `yarn g:check-size` | Ensure build files are within size limit (run `g:build` first). |
| `yarn g:build-doc` | Build documentation (generally api doc) |
| `yarn clean:global-cache` | Clean tooling caches (eslint, jest...) |
| `yarn deps:check --dep dev` | Will print what packages can be upgraded globally (see also [.ncurc.yml](https://github.com/teableio/teable/blob/main/.ncurc.yml)) |
| `yarn deps:update --dep dev` | Apply possible updates (run `yarn install && yarn dedupe` after) |
| `yarn check:install` | Verify if there's no peer-deps missing in packages |
| `yarn dedupe` | Built-in yarn deduplication of the lock file |

## Git message format

This repo adheres to the [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/) convention.

Commit messages are enforced through [commitlint](https://github.com/conventional-changelog/commitlint) and [a husky](https://github.com/typicode/husky) [commit-msg](https://github.com/teable-group/teable/blob/main/.husky/commit-msg) hook.
Commit messages are enforced through [commitlint](https://github.com/conventional-changelog/commitlint) and [a husky](https://github.com/typicode/husky) [commit-msg](https://github.com/teableio/teable/blob/main/.husky/commit-msg) hook.

### Activated prefixes

Expand All @@ -62,7 +62,7 @@ Commit messages are enforced through [commitlint](https://github.com/conventiona
- **release**: All related to changeset (pre exit...)

> **Note**
> Up-to-date configuration can be found in [commitlint.config.js](https://github.com/teable-group/teable/blob/main/commitlint.config.js).
> Up-to-date configuration can be found in [commitlint.config.js](https://github.com/teableio/teable/blob/main/commitlint.config.js).
## Structure

Expand Down
18 changes: 9 additions & 9 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ If needed static resources like **images**,... can be shared by using symlinks i

```json5
{
"name": "@teable-group/teable",
"name": "@teable/teable",
// Set the directories where your apps, packages will be placed
"workspaces": ["apps/*", "packages/*"],
//...
Expand Down Expand Up @@ -144,7 +144,7 @@ Initialize a package.json with the name of your package.

```json5
{
"name": "@teable-group/magnificent-poney",
"name": "@teable/magnificent-poney",
"version": "0.0.0",
"private": true,
"scripts": {
Expand All @@ -157,7 +157,7 @@ Initialize a package.json with the name of your package.
"fix:all-files": "eslint . --ext .ts,.tsx,.js,.jsx --fix",
},
"devDependencies": {
"@teable-group/eslint-config-bases": "workspace:^",
"@teable/eslint-config-bases": "workspace:^",
},
}
```
Expand All @@ -174,7 +174,7 @@ yarn and pnpm.

```bash
cd apps/my-app
yarn add @teable-group/magnificent-poney@'workspace:^'
yarn add @teable/magnificent-poney@'workspace:^'
```

Inspiration can be found in [apps/nextjs-app/package.json](./apps/nextjs-app/package.json).
Expand All @@ -186,7 +186,7 @@ Inspiration can be found in [apps/nextjs-app/package.json](./apps/nextjs-app/pac
{
"name": "my-app",
"dependencies": {
"@teable-group/magnificient-poney": "workspace:^",
"@teable/magnificient-poney": "workspace:^",
},
}
```
Expand All @@ -211,8 +211,8 @@ Inspiration can be found in [apps/nextjs-app/tsconfig.json](./apps/nextjs-app/ts
// regular app aliases
"@/components/*": ["./components/*"],
// packages aliases, relative to app_directory/baseUrl
"@teable-group/magnificent-poney/*": ["../../../packages/magnificent-poney/src/*"],
"@teable-group/magnificent-poney": ["../../../packages/magnificent-poney/src/index"],
"@teable/magnificent-poney/*": ["../../../packages/magnificent-poney/src/*"],
"@teable/magnificent-poney": ["../../../packages/magnificent-poney/src/index"],
},
},
}
Expand All @@ -222,7 +222,7 @@ Inspiration can be found in [apps/nextjs-app/tsconfig.json](./apps/nextjs-app/ts
>
> - Don't try to set aliases in the global tsonfig.base.json to keep strict with
> graph dependencies.
> - The **star** in `@teable-group/magnificent-poney/*` allows you to import subfolders. If you use
> - The **star** in `@teable/magnificent-poney/*` allows you to import subfolders. If you use
> a barrel file (index.ts), the alias with star can be removed.
</details>
Expand Down Expand Up @@ -275,7 +275,7 @@ const nextConfig = {
#### Step 3.4: Using the package

The packages are now linked to your app, just import them like regular packages: `import { poney } from '@teable-group/magnificent-poney'`.
The packages are now linked to your app, just import them like regular packages: `import { poney } from '@teable/magnificent-poney'`.

### 4. Publishing

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ sqlite-db-migration:
@_MIGRATION_NAME=$(if $(_MIGRATION_NAME),$(_MIGRATION_NAME),`read -p "Enter name of the migration (sqlite): " migration_name; echo $$migration_name`); \
make gen-sqlite-prisma-schema; \
PRISMA_DATABASE_URL=file:../../db/.shadow/main.db \
pnpm -F @teable-group/db-main-prisma prisma-migrate dev --schema ./prisma/sqlite/schema.prisma --name $$_MIGRATION_NAME
pnpm -F @teable/db-main-prisma prisma-migrate dev --schema ./prisma/sqlite/schema.prisma --name $$_MIGRATION_NAME

postgres-db-migration:
@_MIGRATION_NAME=$(if $(_MIGRATION_NAME),$(_MIGRATION_NAME),`read -p "Enter name of the migration (postgres): " migration_name; echo $$migration_name`); \
make gen-postgres-prisma-schema; \
PRISMA_DATABASE_URL=postgresql://teable:[email protected]:5432/teable?schema=shadow \
pnpm -F @teable-group/db-main-prisma prisma-migrate dev --schema ./prisma/postgres/schema.prisma --name $$_MIGRATION_NAME
pnpm -F @teable/db-main-prisma prisma-migrate dev --schema ./prisma/postgres/schema.prisma --name $$_MIGRATION_NAME

db-migration: ## Reruns the existing migration history in the shadow database in order to detect schema drift (edited or deleted migration file, or a manual changes to the database schema)
@read -p "Enter name of the migration: " migration_name; \
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@
</div>

<p align="center">
<a aria-label="Build" href="https://github.com/teable-group/teable/actions?query=workflow%3ACI">
<img alt="build" src="https://img.shields.io/github/workflow/status/teable-group/teable/CI-nextjs-app/main?label=CI&logo=github&style=flat-quare&labelColor=000000" />
<a aria-label="Build" href="https://github.com/teableio/teable/actions?query=workflow%3ACI">
<img alt="build" src="https://img.shields.io/github/workflow/status/teableio/teable/CI-nextjs-app/main?label=CI&logo=github&style=flat-quare&labelColor=000000" />
</a>
<a aria-label="Codefactor grade" href=https://www.codefactor.io/repository/github/teable-group/teable">
<img alt="Codefactor" src="https://img.shields.io/codefactor/grade/github/teable-group/teable?label=Codefactor&logo=codefactor&style=flat-quare&labelColor=000000" />
<a aria-label="Codefactor grade" href=https://www.codefactor.io/repository/github/teableio/teable">
<img alt="Codefactor" src="https://img.shields.io/codefactor/grade/github/teableio/teable?label=Codefactor&logo=codefactor&style=flat-quare&labelColor=000000" />
</a>
<a aria-label="CodeClimate maintainability" href="https://codeclimate.com/github/teable-group/teable">
<img alt="Maintainability" src="https://img.shields.io/codeclimate/maintainability/teable-group/teable?label=Maintainability&logo=code-climate&style=flat-quare&labelColor=000000" />
<a aria-label="CodeClimate maintainability" href="https://codeclimate.com/github/teableio/teable">
<img alt="Maintainability" src="https://img.shields.io/codeclimate/maintainability/teableio/teable?label=Maintainability&logo=code-climate&style=flat-quare&labelColor=000000" />
</a>
<a aria-label="CodeClimate technical debt" href="https://codeclimate.com/github/teable-group/teable">
<img alt="Techdebt" src="https://img.shields.io/codeclimate/tech-debt/teable-group/teable?label=TechDebt&logo=code-climate&style=flat-quare&labelColor=000000" />
<a aria-label="CodeClimate technical debt" href="https://codeclimate.com/github/teableio/teable">
<img alt="Techdebt" src="https://img.shields.io/codeclimate/tech-debt/teableio/teable?label=TechDebt&logo=code-climate&style=flat-quare&labelColor=000000" />
</a>
<a aria-label="Codacy grade" href="https://www.codacy.com/gh/teable-group/teable/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=teable-group/teable&amp;utm_campaign=Badge_Grade">
<a aria-label="Codacy grade" href="https://www.codacy.com/gh/teableio/teable/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=teableio/teable&amp;utm_campaign=Badge_Grade">
<img alt="Codacy grade" src="https://img.shields.io/codacy/grade/dff9c944af284a0fad4e165eb1727467?logo=codacy&style=flat-square&labelColor=000&label=Codacy">
</a>
<a aria-label="LoC">
<img alt="LoC" src="https://img.shields.io/tokei/lines/github/teable-group/teable?style=flat-quare&labelColor=000000" />
<img alt="LoC" src="https://img.shields.io/tokei/lines/github/teableio/teable?style=flat-quare&labelColor=000000" />
</a>
<a aria-label="Top language" href="https://github.com/teable-group/teable/search?l=typescript">
<img alt="GitHub top language" src="https://img.shields.io/github/languages/top/teable-group/teable?style=flat-square&labelColor=000&color=blue">
<a aria-label="Top language" href="https://github.com/teableio/teable/search?l=typescript">
<img alt="GitHub top language" src="https://img.shields.io/github/languages/top/teableio/teable?style=flat-square&labelColor=000&color=blue">
</a>
<a aria-label="Licence" href="https://github.com/teable-group/teable/blob/main/LICENSE">
<img alt="Licence" src="https://img.shields.io/github/license/teable-group/teable?style=flat-quare&labelColor=000000" />
<a aria-label="Licence" href="https://github.com/teableio/teable/blob/main/LICENSE">
<img alt="Licence" src="https://img.shields.io/github/license/teableio/teable?style=flat-quare&labelColor=000000" />
</a>
</p>

Expand Down Expand Up @@ -165,7 +165,7 @@ Choose the Sql-database you like

# Structure

[![Open in Gitpod](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/teable-group/teable)
[![Open in Gitpod](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/teableio/teable)

```
.
Expand Down Expand Up @@ -240,7 +240,7 @@ Goto [developer readme](./DEVELOPER.md)

## Sponsors :heart:

If you are enjoying some this project in your company, I'd really appreciate a [sponsorship](https://github.com/sponsors/teable-group), a [coffee](https://ko-fi.com/teable-group) or a dropped star.
If you are enjoying some this project in your company, I'd really appreciate a [sponsorship](https://github.com/sponsors/teableio), a [coffee](https://ko-fi.com/teableio) or a dropped star.
That gives me some more time to improve it to the next level.

# License
Expand Down
2 changes: 1 addition & 1 deletion apps/electron/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @teable-group/electron
# @teable/electron

This is a repository in a monorepo project used to package applications into Electron desktop apps.

Expand Down
Loading

0 comments on commit 0a5e32a

Please sign in to comment.