Skip to content

Commit c0f5379

Browse files
committed
refactor: migration to turborepo monorepo
1 parent 86c39a6 commit c0f5379

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+130
-148
lines changed

.changeset/eight-states-hear.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
"@calycode/core": patch
3-
"@calycode/cli": patch
2+
'@calycode/core': patch
3+
'@calycode/cli': patch
44
---
55

66
feat: improvements to the documentation generation, added changelog links, full-text search, pagination plugin, terminaly plugin, flexible callouts plugin, dark mode support and mermaid support plugins
7+
refactor: rearranged the repo to be more like a proper turbo powered monorepo. Build times are much faster as before...
8+
refactor: adjustments to the github workflows to match turborepo (without remote cache)

.github/workflows/add-docs-to-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424
- uses: actions/setup-node@v4
2525
with:
2626
node-version: 20.x
27+
cache: 'pnpm'
2728

2829
- name: Install packages
29-
run: pnpm install
30+
run: pnpm install --frozen-lockfile
3031

3132
- name: Build packages
32-
run: pnpm build:packages
33+
run: pnpm build
3334

3435
- name: Build Docs
3536
run: pnpm build:docs

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,26 @@ jobs:
2626
uses: actions/setup-node@v4
2727
with:
2828
node-version: 20.x
29+
cache: 'pnpm'
2930
registry-url: 'https://registry.npmjs.org'
3031
scope: '@calycode'
3132
always-auth: true
3233
env:
3334
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3435

3536
- name: Install dependencies
36-
run: pnpm install
37+
run: pnpm install --frozen-lockfile
3738

3839
- name: Build packages
39-
run: pnpm build:packages
40+
run: pnpm build
4041

4142
- name: Publish to npm
4243
id: changesets
4344
uses: changesets/action@v1
4445
with:
4546
commit: 'changeset-release'
4647
title: 'Release Version'
47-
publish: pnpm -r publish --access restricted
48+
publish: pnpm -r publish
4849
env:
4950
GITHUB_TOKEN: ${{ secrets.CHANGESETS_GH_TOKEN }}
5051
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/upload-docs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,15 @@ jobs:
2222
uses: actions/setup-node@v4
2323
with:
2424
node-version: 20.x
25+
cache: 'pnpm'
2526
registry-url: 'https://registry.npmjs.org'
2627
scope: '@calycode'
2728
always-auth: true
2829
env:
2930
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3031

3132
- name: Install dependencies
32-
run: pnpm install
33-
34-
- name: Build packages
35-
run: pnpm build:packages
33+
run: pnpm install --frozen-lockfile
3634

3735
- name: Update the docs
3836
run: pnpm build:docs

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ project-plan.md
3030
*.tsbuildinfo
3131
calyInstance.config.js
3232
calyInstance.test.setup.json
33+
34+
**/.turbo/

docs/commands/export-backup.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@ Usage: xano export-backup [options]
2424
Backup Xano Workspace via Metadata API
2525
2626
Options:
27-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
28-
provided at the setup command.
29-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
30-
Xano interface.
31-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano
32-
Interface.
27+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
28+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano interface.
29+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
3330
--print-output-dir Expose usable output path for further reuse.
3431
-h, --help display help for command
3532
```

docs/commands/generate-code.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,17 @@ $ xano generate-code [options]
3131
$ xano generate-code --help
3232
Usage: xano generate-code [options]
3333
34-
Create a library based on the OpenAPI specification. If the openapi specification has not yet been generated,
35-
this will generate that as well as the first step.
34+
Create a library based on the OpenAPI specification. If the openapi specification has not yet been generated, this will generate that as well as the first step.
3635
3736
Options:
38-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
39-
provided at the setup command.
40-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
41-
Xano interface.
42-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano
43-
Interface.
37+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
38+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano interface.
39+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
4440
--group <name> API group name. Same as on Xano Interface.
4541
--all Regenerate for all API groups in the workspace / branch of the current context.
4642
--print-output-dir Expose usable output path for further reuse.
47-
--generator <generator> Generator to use, see all options at:
48-
https://openapi-generator.tech/docs/generators
49-
--args <args> Additional arguments to pass to the generator. See
50-
https://openapi-generator.tech/docs/usage#generate
51-
--debug Specify this flag in order to allow logging. Logs will appear in output/_logs.
52-
Default: false
43+
--generator <generator> Generator to use, see all options at: https://openapi-generator.tech/docs/generators
44+
--args <args> Additional arguments to pass to the generator. See https://openapi-generator.tech/docs/usage#generate
45+
--debug Specify this flag in order to allow logging. Logs will appear in output/_logs. Default: false
5346
-h, --help display help for command
5447
```

docs/commands/generate-oas.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@ Usage: xano generate-oas [options]
2828
Update and generate OpenAPI spec(s) for the current context.
2929
3030
Options:
31-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
32-
provided at the setup command.
33-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
34-
Xano interface.
35-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano
36-
Interface.
31+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
32+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano interface.
33+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
3734
--group <name> API group name. Same as on Xano Interface.
3835
--all Regenerate for all API groups in the workspace / branch of the current context.
3936
--print-output-dir Expose usable output path for further reuse.

docs/commands/generate-repo.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,9 @@ Process Xano workspace into repo structure
3232
Options:
3333
--input <file> workspace yaml file
3434
--output <dir> output directory (overrides config)
35-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
36-
provided at the setup command.
37-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
38-
Xano interface.
39-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano
40-
Interface.
35+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
36+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano interface.
37+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
4138
--print-output-dir Expose usable output path for further reuse.
4239
--fetch Specify this if you want to fetch the workspace schema from Xano
4340
-h, --help display help for command

docs/commands/generate-xs-repo.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@ Usage: xano generate-xs-repo [options]
2424
Process Xano workspace into repo structure
2525
2626
Options:
27-
--instance <instance> The instance name. This is used to fetch the instance configuration. The value
28-
provided at the setup command.
29-
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on
30-
Xano interface.
31-
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano
32-
Interface.
27+
--instance <instance> The instance name. This is used to fetch the instance configuration. The value provided at the setup command.
28+
--workspace <workspace> The workspace name. This is used to fetch the workspace configuration. Same as on Xano interface.
29+
--branch <branch> The branch name. This is used to select the branch configuration. Same as on Xano Interface.
3330
--print-output-dir Expose usable output path for further reuse.
3431
-h, --help display help for command
3532
```

0 commit comments

Comments
 (0)