Skip to content

Commit 83c4728

Browse files
authored
Change code structure to turborepo (#39)
* refactor: change structure to turborepo * ci: checkout needs to be done before composite actions * chore: staged chagnes * fix: package needs to be built first before test * fix: same goes for type checking * fix: configure turbo * fix: base branch
1 parent cd97658 commit 83c4728

Some content is hidden

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

67 files changed

+4079
-15894
lines changed

.actions/setup/action.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: setup
2+
description: clone repository, and start turbo cache server locally
3+
4+
inputs:
5+
cache-key:
6+
description: cache key for turbo cache server
7+
required: true
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- name: turbo
13+
uses: dtinth/setup-github-actions-caching-for-turbo@v1
14+
15+
- name: pnpm
16+
uses: pnpm/action-setup@v4
17+
18+
- name: node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22
22+
cache: pnpm
23+
24+
- name: install
25+
shell: bash
26+
run: pnpm install --frozen-lockfile

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/changeset.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Changeset
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
concurrency:
9+
group: changeset
10+
cancel-in-progress: true
11+
12+
env:
13+
TURBO_TELEMETRY_DISABLED: 1
14+
15+
jobs:
16+
changeset:
17+
name: changeset
18+
runs-on: ubuntu-latest
19+
permissions:
20+
id-token: write
21+
contents: write
22+
packages: write
23+
pull-requests: write
24+
issues: read
25+
steps:
26+
- name: checkout
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 2
30+
- name: setup
31+
uses: ./.actions/setup
32+
with:
33+
cache-key: changeset
34+
- name: build
35+
run: pnpm build --filter='./packages/*'
36+
- name: changesets
37+
id: changesets
38+
uses: changesets/action@v1
39+
with:
40+
publish: pnpm changeset publish
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.npm_token }}
44+
NPM_CONFIG_PROVENANCE: true

.github/workflows/checks.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
env:
10+
TURBO_TELEMETRY_DISABLED: 1
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 2
20+
- name: setup
21+
uses: ./.actions/setup
22+
with:
23+
cache-key: ci-build
24+
- name: build
25+
run: pnpm build
26+
27+
test:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: checkout
31+
uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 2
34+
- name: setup
35+
uses: ./.actions/setup
36+
with:
37+
cache-key: ci-test
38+
- name: test
39+
run: pnpm test
40+
41+
types:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: checkout
45+
uses: actions/checkout@v4
46+
with:
47+
fetch-depth: 2
48+
- name: setup
49+
uses: ./.actions/setup
50+
with:
51+
cache-key: ci-types
52+
- name: types
53+
run: pnpm check-types

.github/workflows/npm-build-test.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.gitignore

Lines changed: 36 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,42 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3-
# compiled output
3+
# Dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
7+
8+
# Local env files
9+
.env
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
14+
15+
# Testing
16+
coverage
17+
18+
# Turbo
19+
.turbo
20+
21+
# Vercel
22+
.vercel
23+
24+
# Build Outputs
25+
.next/
26+
out/
27+
build
428
dist
5-
tmp
6-
out-tsc
729

8-
# dependencies
9-
node_modules
1030

11-
# IDEs and editors
12-
/.idea
13-
.project
14-
.classpath
15-
.c9/
16-
*.launch
17-
.settings/
18-
*.sublime-workspace
19-
20-
# IDE - VSCode
21-
.vscode/*
22-
!.vscode/settings.json
23-
!.vscode/tasks.json
24-
!.vscode/launch.json
25-
!.vscode/extensions.json
26-
27-
# misc
28-
/.sass-cache
29-
/connect.lock
30-
/coverage
31-
/libpeerconnection.log
32-
npm-debug.log
33-
yarn-error.log
34-
testem.log
35-
/typings
36-
37-
# System Files
38-
.DS_Store
39-
Thumbs.db
31+
# Debug
32+
npm-debug.log*
33+
yarn-debug.log*
34+
yarn-error.log*
4035

41-
.nx/cache
42-
.nx/workspace-data
36+
# Misc
37+
.DS_Store
38+
*.pem
4339

44-
vite.config.*.timestamp*
45-
vitest.config.*.timestamp*
40+
tsconfig.tsbuildinfo
41+
.idea
42+
.vscode
File renamed without changes.

.prettierignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.verdaccio/config.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)