Skip to content

Change code structure to turborepo #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: setup
description: clone repository, and start turbo cache server locally

inputs:
cache-key:
description: cache key for turbo cache server
required: true

runs:
using: composite
steps:
- name: turbo
uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: pnpm
uses: pnpm/action-setup@v4

- name: node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

- name: install
shell: bash
run: pnpm install --frozen-lockfile
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
44 changes: 44 additions & 0 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Changeset

on:
push:
branches:
- master

concurrency:
group: changeset
cancel-in-progress: true

env:
TURBO_TELEMETRY_DISABLED: 1

jobs:
changeset:
name: changeset
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
pull-requests: write
issues: read
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: setup
uses: ./.actions/setup
with:
cache-key: changeset
- name: build
run: pnpm build --filter='./packages/*'
- name: changesets
id: changesets
uses: changesets/action@v1
with:
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.npm_token }}
NPM_CONFIG_PROVENANCE: true
53 changes: 53 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches:
- master
pull_request:

env:
TURBO_TELEMETRY_DISABLED: 1

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: setup
uses: ./.actions/setup
with:
cache-key: ci-build
- name: build
run: pnpm build

test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: setup
uses: ./.actions/setup
with:
cache-key: ci-test
- name: test
run: pnpm test

types:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: setup
uses: ./.actions/setup
with:
cache-key: ci-types
- name: types
run: pnpm check-types
48 changes: 0 additions & 48 deletions .github/workflows/npm-build-test.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/npm-publish.yml

This file was deleted.

75 changes: 36 additions & 39 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,45 +1,42 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# compiled output
# Dependencies
node_modules
.pnp
.pnp.js

# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Testing
coverage

# Turbo
.turbo

# Vercel
.vercel

# Build Outputs
.next/
out/
build
dist
tmp
out-tsc

# dependencies
node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.nx/cache
.nx/workspace-data
# Misc
.DS_Store
*.pem

vite.config.*.timestamp*
vitest.config.*.timestamp*
tsconfig.tsbuildinfo
.idea
.vscode
File renamed without changes.
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

28 changes: 0 additions & 28 deletions .verdaccio/config.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .vscode/extensions.json

This file was deleted.

13 changes: 0 additions & 13 deletions .vscode/settings.json

This file was deleted.

Loading