Skip to content

Commit

Permalink
Remove unused files and update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunomiac committed May 3, 2024
1 parent e1beed8 commit 733612a
Show file tree
Hide file tree
Showing 9 changed files with 397 additions and 298 deletions.
638 changes: 383 additions & 255 deletions dist/blades.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style.css

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions dist/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@
{
"id": "tidy-ui_game-settings",
"type": "module"
},
{
"id": "city-of-knives",
"type": "world",
"manifest": "https://raw.githubusercontent.com/Eunomiac/eunos-blades/master/city-of-knives/world.json"
}
]
},
Expand Down
14 changes: 0 additions & 14 deletions public/index.html

This file was deleted.

6 changes: 0 additions & 6 deletions public/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions public/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@
{
"id": "tidy-ui_game-settings",
"type": "module"
},
{
"id": "city-of-knives",
"type": "world",
"manifest": "https://raw.githubusercontent.com/Eunomiac/eunos-blades/master/city-of-knives/world.json"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion stats.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
"paths": {
"*": [
"*",
"D:/Users/Ryan/Documents/Projects/.CODING/FoundryVTT/FoundryDevData/Data/modules/*",
"D:/LTSC Programs/FoundryVTT/resources/app/*"
"D:/Projects/.CODING/FoundryVTT/FoundryV11DistData/Data/modules/*",
"D:/Projects/.CODING/FoundryVTT/FoundryV11DevData/Data/modules/*",
"C:/FoundryVTT/v11/Foundry Virtual Tabletop/resources/app/*"
]
},
"plugins": [
Expand Down
18 changes: 9 additions & 9 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Importing necessary functions and types from the Vite package and the path module from Node.js
import { defineConfig, type UserConfig, type Plugin } from "vite";
import {defineConfig, type UserConfig, type Plugin} from "vite";
import path from "path";
import fs from "fs";
import checker from 'vite-plugin-checker';
import checker from "vite-plugin-checker";
import {visualizer} from "rollup-plugin-visualizer";
import { exec } from "child_process";
import {exec} from "child_process";

/** *** CHECK: *** https://vitejs.dev/guide/performance
*
Expand Down Expand Up @@ -40,7 +40,7 @@ function openChromePlugin(): Plugin {
}
});
}
},
}
};
}

Expand Down Expand Up @@ -72,10 +72,10 @@ function scssVariablesToJsPlugin(): Plugin {
.replace(/^--blades-/, "")
.replace(/-nums$/, "")
.replace(/-/g, "_");
let [hue, brightness] = varName.split(/_/);
brightness ??= "normal";
const [hue, brightness] = varName.split(/_/);
const brightnessValue = brightness || "normal";
colorDefs[hue] ??= {};
colorDefs[hue][brightness] = [parseInt(match[2], 10), parseInt(match[3], 10), parseInt(match[4], 10)];
colorDefs[hue][brightnessValue] = [parseInt(match[2], 10), parseInt(match[3], 10), parseInt(match[4], 10)];
}

return {
Expand Down Expand Up @@ -135,7 +135,7 @@ function foundryPlugin(): Plugin {
// Defining the Vite configuration object with specific settings for this project
const config: UserConfig = defineConfig({
// Setting the root directory for the project to the "src" folder
root: "src/",
root: "src",
// Setting the base URL for the project when deployed
base: "/systems/eunos-blades/",
// Specifying the directory where static assets are located
Expand Down Expand Up @@ -190,7 +190,7 @@ const config: UserConfig = defineConfig({
},
plugins: [
foundryPlugin(),
checker({ typescript: true }),
checker({typescript: true}),
scssVariablesToJsPlugin(),
visualizer({
gzipSize: true,
Expand Down

0 comments on commit 733612a

Please sign in to comment.