Skip to content

Commit 529bea1

Browse files
authored
Merge pull request zheksoon#8 from itsjavi/yarn-workspaces
refactor: restructure project in workspaces
2 parents ee0e0cc + 42a53ce commit 529bea1

Some content is hidden

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

55 files changed

+3991
-2833
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'Setup project'
2+
description: 'Sets up project and its dependencies'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- uses: actions/setup-node@v4
7+
with:
8+
node-version: ${{ env.NODE_VERSION }}
9+
cache: 'yarn'
10+
cache-dependency-path: './yarn.lock'
11+
12+
- shell: bash
13+
run: |
14+
corepack enable
15+
corepack prepare yarn@${{ env.YARN_VERSION }} --activate
16+
yarn install --frozen-lockfile

.github/workflows/quality-check.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Check code quality
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
env:
13+
APP_CI: true
14+
APP_ENV: development
15+
NODE_VERSION: 22.15.0
16+
YARN_VERSION: 4.9.1
17+
18+
concurrency:
19+
group: qualityCheck-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
qualityCheck:
24+
name: Check code quality
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: "Setup project"
30+
uses: ./.github/actions/setup-project
31+
32+
- name: "Lint"
33+
run: yarn lint
34+
35+
- name: "Test"
36+
run: yarn test
37+
38+
- name: "Build project"
39+
run: yarn build

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
build/
22

3+
.yarn/
34
.yarn/*
45
!.yarn/patches
56
!.yarn/plugins
@@ -141,4 +142,4 @@ dist
141142
.yarn/unplugged
142143
.yarn/build-state.yml
143144
.yarn/install-state.gz
144-
.pnp.*
145+
.pnp.*

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# .yarnrc.yml
2+
nodeLinker: node-modules

README.md

Lines changed: 79 additions & 71 deletions
Large diffs are not rendered by default.

core/package.json

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

core/tsconfig.json

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

core/vite.config.js

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

core/yarn.lock

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

0 commit comments

Comments
 (0)