Skip to content

Commit 92abd7f

Browse files
Replace Rokit with Mise (#251)
1 parent cbbc918 commit 92abd7f

File tree

18 files changed

+1569
-1420
lines changed

18 files changed

+1569
-1420
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export ASPHALT_API_KEY=

.github/commit-instructions.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# <type>(<scope>): <subject>
2+
#
3+
# <body>
4+
#
5+
# <footer>
6+
7+
# Type should be one of the following:
8+
# * feat: a new feature
9+
# * fix: a bug fix
10+
# * docs: documentation only changes
11+
# * style: changes that do not affect the meaning of the code
12+
# * refactor: a code change that neither fixes a bug nor adds a feature
13+
# * perf: a code change that improves performance
14+
# * test: adding missing tests or correcting existing tests
15+
# * build: changes that affect the build system or external dependencies
16+
# * ci: changes to our ci configuration files and scripts
17+
# * chore: other changes that don't modify src or test files
18+
# * revert: reverts a previous commit
19+
#
20+
# Scope is optional, but should be one of the following:
21+
# * assets: changes to assets (images, fonts, etc.)
22+
# * audio: changes relating to sound or music
23+
# * core: changes to the core game functionality
24+
# * deps: changes to dependencies
25+
# * dev: changes to the development environment
26+
# * lint: changes that only affect linting such as auto-formatting
27+
# * mtx: changes to monetization or in-game purchases
28+
#
29+
# Subject line rules:
30+
# * Use imperative mood: "change" not "changed" nor "changes"
31+
# * No dot (.) at the end
32+
# * Limit to 72 characters
33+
# * No capitilization in the subject aside from issue references
34+
#
35+
# Body rules:
36+
# * Wrap at 72 characters
37+
# * Use imperative mood
38+
# * Explain what and why vs. how
39+
#
40+
# Footer rules:
41+
# * Reference issues and pull requests liberally
42+
# * Use "Fixes #123" or "Closes #123" for issues
43+
# * Use "BREAKING CHANGE:" for breaking changes

.github/workflows/ci.yaml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,15 @@ env:
1818
jobs:
1919
build:
2020
runs-on: ubuntu-latest
21-
strategy:
22-
matrix:
23-
node-version: [20]
2421

2522
steps:
2623
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2724

28-
- name: Install pnpm
29-
uses: pnpm/action-setup@v3
30-
31-
- name: Use Node.js ${{ matrix.node-version }}
32-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
33-
with:
34-
node-version: ${{ matrix.node-version }}
35-
cache: pnpm
25+
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2
3626

3727
- name: Install dependencies
3828
run: pnpm install
3929

40-
- name: Setup Rokit
41-
uses: CompeyDev/setup-rokit@d49be92bd9502180218c3f43e7988faa945217b0 # v0.1.2
42-
4330
- name: Lint
4431
run: pnpm lint
4532

.github/workflows/release-development.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,19 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2828

29-
- name: Install pnpm
30-
uses: pnpm/action-setup@v3
31-
32-
- name: Use Node.js 20
33-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
34-
with:
35-
node-version: 20
36-
cache: pnpm
29+
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2
3730

3831
- name: Install dependencies
39-
run: pnpm install
32+
run: corepack pnpm install
4033

4134
- name: Install roblox-ts
42-
run: pnpm add roblox-ts
35+
run: corepack pnpm add roblox-ts
4336

4437
- name: Setup Rokit
4538
uses: CompeyDev/setup-rokit@d49be92bd9502180218c3f43e7988faa945217b0 # v0.1.2
4639

4740
- name: Compile
48-
run: npx rbxtsc --verbose
41+
run: nlx rbxtsc --verbose
4942

5043
- name: Build project
5144
run: rojo build ./default.project.json --output place.rbxlx
@@ -65,8 +58,7 @@ jobs:
6558
steps:
6659
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
6760

68-
- name: Setup Rokit
69-
uses: CompeyDev/setup-rokit@d49be92bd9502180218c3f43e7988faa945217b0 # v0.1.2
61+
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2
7062

7163
- name: Download place artifact
7264
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4

.github/workflows/release.yaml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,16 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3131

32-
- name: Install pnpm
33-
uses: pnpm/action-setup@v3
34-
35-
- name: Use Node.js 20
36-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
37-
with:
38-
node-version: 20
39-
cache: pnpm
32+
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2
4033

4134
- name: Install dependencies
42-
run: pnpm install
35+
run: corepack pnpm install
4336

4437
- name: Install roblox-ts
45-
run: pnpm add roblox-ts
46-
47-
- name: Setup Rokit
48-
uses: CompeyDev/setup-rokit@d49be92bd9502180218c3f43e7988faa945217b0 # v0.1.2
38+
run: corepack pnpm add roblox-ts
4939

5040
- name: Compile
51-
run: pnpm prod:build --verbose
41+
run: corepack pnpm prod:build --verbose
5242

5343
- name: Build project
5444
run: rojo build ./build.project.json --output place.rbxlx
@@ -68,8 +58,7 @@ jobs:
6858
steps:
6959
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7060

71-
- name: Setup Rokit
72-
uses: CompeyDev/setup-rokit@d49be92bd9502180218c3f43e7988faa945217b0 # v0.1.2
61+
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2
7362

7463
- name: Download place artifact
7564
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ sourcemap.json
1313
*.rbxl
1414
*.rbxlx
1515

16-
# Bundled eslint config
17-
*.mjs
16+
.env
1817

19-
.env
18+
.vscode/mise-tools/

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm dlx commitlint --edit \
1+
corepack pnpm dlx commitlint --edit "$1"

.husky/post-merge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
# matches only the package-lock.json inside project directory
5-
npx git-pull-run --pattern "pnpm-lock.yaml" --command "pnpm install"
5+
npx git-pull-run --pattern "pnpm-lock.yaml" --command "corepack pnpm install"

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm lint-staged
1+
corepack pnpm lint-staged

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ enable-pre-post-scripts=true
22
ignore-workspace-root-check=true
33
save-exact=true
44
shell-emulator=true
5-
strict-peer-dependencies=false
5+
strict-peer-dependencies=false
6+
public-hoist-pattern[]=*@rbxts*

0 commit comments

Comments
 (0)