Skip to content

Commit

Permalink
Bundle and minify scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dev7355608 committed Oct 13, 2024
1 parent 3bf3660 commit 24da220
Show file tree
Hide file tree
Showing 45 changed files with 3,285 additions and 134 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.vscode
/node_modules
/module.zip
/script.js
/script.js.map
74 changes: 74 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import stylistic from "@stylistic/eslint-plugin";

export default [
{
ignores: ["script.js"],
},
pluginJs.configs.recommended,
stylistic.configs.customize({
indent: 4,
quotes: "double",
semi: true,
jsx: false,
arrowParens: "always",
braceStyle: "1tbs",
blockSpacing: true,
quoteProps: "consistent-as-needed",
commaDangle: "always-multiline",
}),
{
languageOptions: {
ecmaVersion: "latest",
globals: {
...globals.browser,
AbstractBaseFilter: "readonly",
BaseSamplerShader: "readonly",
canvas: "readonly",
ClipperLib: "readonly",
CONFIG: "readonly",
CONST: "readonly",
Color: "readonly",
ColorAdjustmentsSamplerShader: "readonly",
DetectionMode: "readonly",
dnd5e: "readonly",
foundry: "readonly",
game: "readonly",
GlowOverlayFilter: "readonly",
Hooks: "readonly",
loadTexture: "readonly",
OutlineOverlayFilter: "readonly",
PIXI: "readonly",
PointSourcePolygon: "readonly",
Roll: "readonly",
SpriteMesh: "readonly",
Token: "readonly",
VisionMode: "readonly",
},
},
rules: {
"no-unused-vars": ["error", {
vars: "all",
args: "none",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
ignoreRestSiblings: false,
reportUsedIgnorePattern: false,
}],
"@stylistic/padding-line-between-statements": [
"error",
{ blankLine: "always", prev: "*", next: ["block-like", "break", "class", "continue", "function", "return"] },
{ blankLine: "always", prev: ["block-like", "class", "function"], next: "*" },
{ blankLine: "always", prev: "expression", next: ["const", "let", "var"] },
{ blankLine: "always", prev: ["const", "let", "var"], next: "expression" },
{ blankLine: "never", prev: ["break", "continue", "return"], next: "*" },
{ blankLine: "never", prev: "*", next: "case" },
],
"@stylistic/no-mixed-operators": "off",
"@stylistic/no-multiple-empty-lines": ["error", { max: 1, maxBOF: 0, maxEOF: 0 }],
},
},
];
10 changes: 5 additions & 5 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"email": "[email protected]"
}
],
"version": "2.5.2",
"version": "2.5.3",
"compatibility": {
"minimum": "12",
"verified": "12"
},
"esmodules": [
"scripts/main.mjs"
"scripts": [
"script.js"
],
"styles": [
"style.css"
Expand Down Expand Up @@ -60,8 +60,8 @@
},
"url": "https://github.com/dev7355608/vision-5e",
"manifest": "https://github.com/dev7355608/vision-5e/releases/latest/download/module.json",
"download": "https://github.com/dev7355608/vision-5e/releases/download/v2.5.2/module.zip",
"changelog": "https://github.com/dev7355608/vision-5e/releases/tag/v2.5.2",
"download": "https://github.com/dev7355608/vision-5e/releases/download/v2.5.3/module.zip",
"changelog": "https://github.com/dev7355608/vision-5e/releases/tag/v2.5.3",
"bugs": "https://github.com/dev7355608/vision-5e/issues",
"readme": "https://raw.githubusercontent.com/dev7355608/vision-5e/main/README.md",
"license": "https://raw.githubusercontent.com/dev7355608/vision-5e/main/LICENSE"
Expand Down
Loading

0 comments on commit 24da220

Please sign in to comment.