Skip to content
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
47 changes: 47 additions & 0 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Site

on:
push:
branches:
- main
paths:
- .github/workflows/site.yml
- site/**/*
- bun.lock
- package.json
pull_request:
types:
- opened
- synchronize
- reopened
paths:
- site/**/*
- bun.lock
- package.json
- .github/workflows/site.yml

concurrency:
group: site-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read

jobs:
site:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v7

- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install
run: bun install --frozen-lockfile

- name: Lint
run: bun run --filter "@modkit/site" lint

- name: Build
run: bun run --filter "@modkit/site" build
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,18 @@ gradle-app.setting
.kotlin/
bin/

#==================================================
# Bun
#==================================================

node_modules/

#==================================================
# TypeScript
#==================================================

*.tsbuildinfo

#==================================================
# Miscellaneous
#==================================================
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bunx --no-install lint-staged
7 changes: 7 additions & 0 deletions .secretlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"rules": [
{
"id": "@secretlint/secretlint-rule-preset-recommend"
}
]
}
70 changes: 68 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
{
//==================================================
// Language-specific overrides
//==================================================

"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": true
},

//==================================================
// Java
//==================================================
Expand All @@ -7,7 +28,6 @@
// "java.import.gradle.java.home": "",

"java.compile.nullAnalysis.mode": "automatic",

"java.gradle.buildServer.enabled": "on",

//==================================================
Expand All @@ -18,10 +38,57 @@
"gradle.reuseTerminals": "task",
"gradle.javaDebug.cleanOutput": true,

//==================================================
// Package managers
//==================================================

"npm.packageManager": "bun",

//==================================================
// Linting
//==================================================

"eslint.enable": true,
"eslint.useFlatConfig": true,
"eslint.workingDirectories": [ { "mode": "auto" } ],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],

"editor.codeActionsOnSave": {
"source.formatting": "explicit",
"source.fixAll": "never",
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// ==================================================
// Formatting
// ==================================================

"editor.rulers": [
80,
180
],

"editor.tabSize": 2,
"editor.insertSpaces": true,

"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,

//==================================================
// Files
//==================================================

"files.associations": {
"tsconfig.json": "jsonc",
"tsconfig.*.json": "jsonc"
},

"files.exclude": {
"**/.gradle": true,
"**/build": true
Expand All @@ -45,5 +112,4 @@
//==================================================

"intellij.buildTool": "gradle"

}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Modkit

<a href="https://modkitmc.com/"><img alt="ghpages" height="56" src="https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/documentation/ghpages_vector.svg"></a>
<!-- TODO: Plugin portal badge. -->
<a href="https://discord.com/invite/WzcXYYbcr7"><img alt="discord-singular" height="56" src="https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy-minimal/social/discord-singular_vector.svg"></a>
<a href="https://github.com/sponsors/oliveryasuna"><img alt="kofi-plural" height="56" src="https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy-minimal/donate/kofi-plural_vector.svg"></a>

Modkit is a suite of Gradle plugins that simplifies the tooling for Minecraft mod development. You describe your mod once, including its identity, target versions, dependencies, and metadata, and Modkit automatically generates builds for multiple loaders (such as Fabric and NeoForge) based on that single description.

**Status: beta.** Expect some churn before `1.0.0`. Found a bug or have feedback? [Open an issue](https://github.com/oliveryasuna/modkit/issues).
Expand Down
Loading
Loading