Skip to content

Commit

Permalink
Set up project as monorepo, rename project (#37)
Browse files Browse the repository at this point in the history
* refactor: migrate to monorepo, reband project

* ci: switch to yarn

* ci: use corepack

* fix: run build for packages sequentially

* build: use lefthook to lint on pre-commit

* chore: update assets
  • Loading branch information
paradoxuum authored Jul 7, 2024
1 parent 180984b commit 327db77
Show file tree
Hide file tree
Showing 128 changed files with 8,551 additions and 7,291 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 9
- name: Enable Corepack
run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: ./docs/pnpm-lock.yaml
cache: "yarn"

- name: Install dependencies
working-directory: ./docs
run: pnpm install
run: yarn install

- name: Test build website
working-directory: ./docs
run: pnpm build
- name: Build website
run: yarn workspace docs build
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 9
- name: Enable Corepack
run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: ./pnpm-lock.yaml
cache: "yarn"

- name: Install dependencies
run: pnpm install
run: yarn install

- name: Run Biome
run: pnpm biome ci .
run: yarn biome ci

- name: Build project
run: pnpm build --verbose
run: yarn packages:build
28 changes: 23 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
/node_modules
/out
/include
/test/out
/test/include
node_modules/

# roblox-ts
out/
include/
*.tsbuildinfo

# docs
dist/
.astro/

# Yarn
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
yarn-debug.log*
yarn-error.log*

# macOS-specific files
.DS_Store
894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
yarnPath: .yarn/releases/yarn-4.3.1.cjs
nodeLinker: node-modules
nmHoistingLimits: workspaces
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<img src="docs/src/assets/logo.webp" width="150" />
</a>

<h1>Commander</h1>
<h1>Centurion</h1>

<p>
<strong>A flexible and extensible command framework for roblox-ts</strong>
Expand All @@ -28,7 +28,7 @@

## About

Commander is a command framework built for roblox-ts.
Centurion is a command framework built for roblox-ts.

- Commands are defined using decorators in an easy and readable manner.
- Custom argument types can be created, allowing for a great deal of flexibility for your commands.
Expand Down
15 changes: 7 additions & 8 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@
},
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/starlight": "^0.23.2",
"@astrojs/starlight": "^0.25.0",
"@astrojs/starlight-tailwind": "^2.0.3",
"@astrojs/tailwind": "^5.1.0",
"@fontsource-variable/jetbrains-mono": "^5.0.21",
"astro": "^4.8.6",
"sharp": "^0.32.5",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
"astro": "^4.11.5",
"sharp": "^0.33.4",
"tailwindcss": "^3.4.4",
"typescript": "^5.5.3"
},
"devDependencies": {
"@biomejs/biome": "1.8.1",
"sass": "^1.77.4"
"sass": "^1.77.6"
}
}
}
Loading

0 comments on commit 327db77

Please sign in to comment.