2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-26 11:31:43 +00:00

chore: move package json to root (#813)

* chore: move package json to root folder

* chore: also lint prettier codestyle

* chore: configure ModManUi files to use lf eof

* chore: update npm versions

* chore: update README of ModMan

* chore: adjust ci to use package json of root folder
This commit is contained in:
Jan
2026-05-25 23:41:21 +02:00
committed by GitHub
parent 98a0d2f185
commit 414ff2f8d9
10 changed files with 745 additions and 691 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
# All .sh files should be lf line endings # All .sh files should be lf line endings
*.sh text eol=cl *.sh text eol=lf
src/ModManUi/** text=auto eol=lf
+6 -6
View File
@@ -67,9 +67,9 @@ jobs:
- name: Build UI - name: Build UI
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: | run: |
npm --prefix src/ModManUi install npm install
npm --prefix src/ModManUi run lint npm run lint
npm --prefix src/ModManUi run build npm run build
- name: Build - name: Build
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
@@ -126,9 +126,9 @@ jobs:
- name: Build UI - name: Build UI
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: | run: |
npm --prefix src/ModManUi install npm install
npm --prefix src/ModManUi run lint npm run lint
npm --prefix src/ModManUi run build npm run build
- name: Build - name: Build
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
+6 -1
View File
@@ -1,6 +1,11 @@
local/ /local/
/build/ /build/
.vscode .vscode
.idea .idea
user*.* user*.*
*.aps *.aps
node_modules
/src/ModManUi/dist
npm-debug.log*
View File
File diff suppressed because it is too large Load Diff
+21
View File
@@ -0,0 +1,21 @@
{
"name": "openassettools",
"private": true,
"version": "0.1.0",
"type": "module",
"workspaces": [
"src/ModManUi"
],
"scripts": {
"dev": "npm --workspaces run dev",
"build": "npm --workspaces run build",
"lint": "npm --workspaces run lint",
"format": "npm --workspaces run format"
},
"enginesComment": {
"npm": "Required for min-release-age setting"
},
"engines": {
"npm": ">=11.10.0"
}
}
+5 -5
View File
@@ -20,13 +20,13 @@ This will require NodeJS to be installed on your machine.
```shell ```shell
# Download dependencies # Download dependencies
npm --prefix src/ModManUi install npm install
# Build frontend # Build frontend
npm --prefix src/ModManUi run build npm run build
# Optional: Dev Server for UI development # Optional: Dev Server for UI development
npm --prefix src/ModManUi run dev npm run dev
``` ```
## How does it work ## How does it work
@@ -36,6 +36,6 @@ Unlike frameworks like Electron this does not ship a browser engine alongside it
On Windows, this makes use of [WebView2](https://learn.microsoft.com/en-us/microsoft-edge/webview2), on Linux it uses [WebKitGTK](https://webkitgtk.org). On Windows, this makes use of [WebView2](https://learn.microsoft.com/en-us/microsoft-edge/webview2), on Linux it uses [WebKitGTK](https://webkitgtk.org).
This adds the following dependencies: This adds the following dependencies:
* **Windows**: An up-to-date OS with at the very least Windows10. The WebView2 library for development is downloaded by premake.
* **Linux**: Developing and using ModMan requires the following dependencies to be installed: `gtk4 webkitgtk-6.0`
- **Windows**: An up-to-date OS with at the very least Windows10. The WebView2 library for development is downloaded by premake.
- **Linux**: Developing and using ModMan requires the following dependencies to be installed: `gtk4 webkitgtk-6.0`
-24
View File
@@ -1,24 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
-1
View File
@@ -1 +0,0 @@
src-tauri
+25 -30
View File
@@ -1,52 +1,47 @@
{ {
"name": "openassettools", "name": "@openassettools/modman",
"private": true, "private": true,
"version": "0.1.0", "version": "0.1.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "run-p type-check \"build-only {@}\" --", "build": "run-p build:type-check \"build:vite {@}\" --",
"preview": "vite preview", "build:vite": "vite build",
"build-only": "vite build", "build:type-check": "vue-tsc --build",
"type-check": "vue-tsc --build", "lint": "run-p lint:eslint lint:prettier",
"lint": "eslint . --fix", "lint:eslint": "eslint .",
"format": "prettier --write **/*.{js,ts,vue,html,json,yml,yaml,md}" "lint:prettier": "prettier --check .",
"format": "prettier --write ."
}, },
"dependencies": { "dependencies": {
"@fontsource/inter": "5.2.8", "@fontsource/inter": "5.2.8",
"@primeuix/themes": "2.0.3", "@primeuix/themes": "2.0.3",
"pinia": "3.0.4", "pinia": "3.0.4",
"primevue": "4.5.5", "primevue": "4.5.5",
"vue": "3.5.32", "vue": "3.5.34",
"vue-router": "5.0.4" "vue-router": "5.0.7"
}, },
"devDependencies": { "devDependencies": {
"@tsconfig/node24": "24.0.4", "@tsconfig/node24": "24.0.4",
"@types/jsdom": "28.0.1", "@types/jsdom": "28.0.3",
"@types/node": "25.6.0", "@types/node": "25.9.1",
"@vitejs/plugin-vue": "6.0.6", "@vitejs/plugin-vue": "6.0.7",
"@vitest/eslint-plugin": "1.6.16", "@vitest/eslint-plugin": "1.6.17",
"@vue/eslint-config-prettier": "10.2.0", "@vue/eslint-config-prettier": "10.2.0",
"@vue/eslint-config-typescript": "14.7.0", "@vue/eslint-config-typescript": "14.7.0",
"@vue/test-utils": "2.4.6", "@vue/test-utils": "2.4.10",
"@vue/tsconfig": "0.9.1", "@vue/tsconfig": "0.9.1",
"eslint": "10.2.1", "eslint": "10.4.0",
"eslint-plugin-vue": "10.8.0", "eslint-plugin-vue": "10.9.1",
"jiti": "2.6.1", "jiti": "2.7.0",
"jsdom": "29.0.2", "jsdom": "29.1.1",
"npm-run-all2": "8.0.4", "npm-run-all2": "9.0.0",
"prettier": "3.8.3", "prettier": "3.8.3",
"sass": "1.99.0", "sass": "1.100.0",
"typescript": "6.0.3", "typescript": "6.0.3",
"vite": "8.0.8", "vite": "8.0.14",
"vite-plugin-vue-devtools": "8.1.1", "vite-plugin-vue-devtools": "8.1.2",
"vitest": "4.1.4", "vitest": "4.1.7",
"vue-tsc": "3.2.6" "vue-tsc": "3.3.1"
},
"enginesComment": {
"npm": "Required for min-release-age setting"
},
"engines": {
"npm": ">=11.10.0"
} }
} }