Skip to content

Commit

Permalink
Lint & fix rp generation
Browse files Browse the repository at this point in the history
  • Loading branch information
spartacus04 committed Mar 25, 2024
1 parent 6edaa31 commit d1856b7
Show file tree
Hide file tree
Showing 57 changed files with 4,045 additions and 3,052 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock

/src-tauri/target/**/*
8 changes: 4 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ module.exports = {
}
],
rules: {
"@typescript-eslint/no-unused-vars": [
'@typescript-eslint/no-unused-vars': [
warn,
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_"
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ jobs:
with:
name: Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64_en-US.msi
path: src-tauri/target/release/bundle/msi/Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64_en-US.msi

- name: Upload .exe installer
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v2
with:
name: Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64-setup.exe
path: src-tauri/target/release/bundle/nsis/Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64-setup.exe
path: src-tauri/target/release/bundle/nsis/Jext Plugin Manager_${{ steps.tauri.outputs.appVersion }}_x64-setup.exe
14 changes: 7 additions & 7 deletions .github/workflows/cleanup-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Cleanup Artifacts
# This workflow removes the artifacts from the previous builds of build-tauri

on:
workflow_run:
workflows: ["build-tauri"]
workflow_run:
workflows: ['build-tauri']
types:
- completed

jobs:
cleanup:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -18,8 +18,8 @@ jobs:

- name: Run script
run: |
cd scripts/cleanup-artifacts
bun install
bun run index.ts
cd scripts/cleanup-artifacts
bun install
bun run index.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
pnpm-lock.yaml
package-lock.json
yarn.lock

/src-tauri/target/**/*
6 changes: 2 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"prettier.documentSelectors": [
"**/*.svelte"
],
"prettier.documentSelectors": ["**/*.svelte"],
"tailwindCSS.classAttributes": [
"class",
"accent",
Expand Down Expand Up @@ -117,4 +115,4 @@
"width",
"zIndex"
]
}
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Jukebox Extended Reborn | Web UI

>The webui allows the user to configure the plugin in the browser with ease
> The webui allows the user to configure the plugin in the browser with ease
### Features

Expand Down Expand Up @@ -33,4 +33,3 @@ bun install
You can run a live preview by running `bun run dev` or you can build the website by running `bun run build`

You can run a live preview of the desktop app by running `bun run tauri dev` (note: this requires rust), or you can build it by running `bun run tauri build`

Binary file modified bun.lockb
Binary file not shown.
120 changes: 60 additions & 60 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
{
"name": "jext-tool",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"postbuild": "svelte-sitemap --domain https://spartacus04.github.io/jext-reborn/",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"tauri": "tauri"
},
"devDependencies": {
"@skeletonlabs/skeleton": "2.7.1",
"@skeletonlabs/tw-plugin": "0.3.1",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@tailwindcss/forms": "0.5.7",
"@tailwindcss/typography": "0.5.10",
"@tauri-apps/cli": "^1.5.10",
"@types/node": "20.11.5",
"@types/three": "^0.162.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"autoprefixer": "10.4.17",
"eslint": "^8.28.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.30.0",
"postcss": "8.4.33",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"svelte-sitemap": "^2.6.0",
"tailwindcss": "3.4.1",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^5.0.3",
"vite-plugin-tailwind-purgecss": "0.2.0"
},
"type": "module",
"dependencies": {
"@ffmpeg/core": "^0.12.6",
"@ffmpeg/ffmpeg": "^0.12.10",
"@ffmpeg/util": "^0.12.1",
"@floating-ui/dom": "1.5.4",
"@tauri-apps/api": "^1.5.3",
"ajv": "^8.12.0",
"highlight.js": "11.9.0",
"jszip": "^3.10.1",
"marked": "latest",
"minecraft-text-js": "^1.1.3",
"svelte-gestures": "^4.0.0",
"three": "^0.162.0"
}
}
"name": "jext-tool",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"postbuild": "svelte-sitemap --domain https://spartacus04.github.io/jext-reborn/",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"tauri": "tauri"
},
"devDependencies": {
"@skeletonlabs/skeleton": "2.7.1",
"@skeletonlabs/tw-plugin": "0.3.1",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@tailwindcss/forms": "0.5.7",
"@tailwindcss/typography": "0.5.10",
"@tauri-apps/cli": "^1.5.10",
"@types/node": "20.11.5",
"@types/three": "^0.162.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"autoprefixer": "10.4.17",
"eslint": "^8.28.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.30.0",
"postcss": "8.4.33",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"svelte-sitemap": "^2.6.0",
"tailwindcss": "3.4.1",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "5.1.6",
"vite-plugin-tailwind-purgecss": "0.2.0"
},
"type": "module",
"dependencies": {
"@ffmpeg/core": "^0.12.6",
"@ffmpeg/ffmpeg": "^0.12.10",
"@ffmpeg/util": "^0.12.1",
"@floating-ui/dom": "1.5.4",
"@tauri-apps/api": "^1.5.3",
"ajv": "^8.12.0",
"highlight.js": "11.9.0",
"jszip": "^3.10.1",
"marked": "latest",
"minecraft-text-js": "^1.1.3",
"svelte-gestures": "^4.0.0",
"three": "^0.162.0"
}
}
6 changes: 3 additions & 3 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module.exports = {
plugins: {
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
},
}
autoprefixer: {}
}
};
26 changes: 13 additions & 13 deletions scripts/cleanup-artifacts/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "cleanup-artifacts",
"module": "index.ts",
"type": "module",
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@octokit/rest": "^20.0.2"
}
}
"name": "cleanup-artifacts",
"module": "index.ts",
"type": "module",
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@octokit/rest": "^20.0.2"
}
}
44 changes: 22 additions & 22 deletions scripts/cleanup-artifacts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"compilerOptions": {
// Enable latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
"compilerOptions": {
// Enable latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,

// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,

// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,

// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
}
Loading

0 comments on commit d1856b7

Please sign in to comment.