create-lt-adventure 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "create-lt-adventure",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "A CLI tool to scaffold Foundry VTT modules",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"foundry-vtt",
|
|
7
|
-
"module",
|
|
8
|
-
"scaffold",
|
|
9
|
-
"cli"
|
|
10
|
-
],
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"author": "mrvauxs",
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "https://github.com/MrVauxs/create-lt-adventure"
|
|
16
|
-
},
|
|
17
|
-
"homepage": "https://github.com/MrVauxs/create-lt-adventure#readme",
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/MrVauxs/create-lt-adventure/issues"
|
|
20
|
-
},
|
|
21
|
-
"type": "module",
|
|
22
|
-
"main": "./dist/index.js",
|
|
23
|
-
"exports": {
|
|
24
|
-
".": {
|
|
25
|
-
"import": "./dist/index.js",
|
|
26
|
-
"types": "./dist/index.d.ts"
|
|
27
|
-
},
|
|
28
|
-
"./bin": {
|
|
29
|
-
"import": "./dist/bin.js",
|
|
30
|
-
"types": "./dist/bin.d.ts"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"bin": {
|
|
34
|
-
"create-lt-adventure": "./dist/bin.js"
|
|
35
|
-
},
|
|
36
|
-
"files": [
|
|
37
|
-
"dist/",
|
|
38
|
-
"templates/",
|
|
39
|
-
"addons/",
|
|
40
|
-
"LICENSE",
|
|
41
|
-
"README.md"
|
|
42
|
-
],
|
|
43
|
-
"scripts": {
|
|
44
|
-
"create": "bun src/bin.ts",
|
|
45
|
-
"build": "tsc",
|
|
46
|
-
"build:watch": "tsc --watch",
|
|
47
|
-
"prepublishOnly": "npm run build",
|
|
48
|
-
"prepack": "npm run build",
|
|
49
|
-
"dev": "bun src/bin.ts \"My New Module\" --auto-id"
|
|
50
|
-
},
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"kolorist": "^1.8.0",
|
|
53
|
-
"@clack/prompts": "^1.0.0-alpha.9"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@types/bun": "latest",
|
|
57
|
-
"@types/node": "^20",
|
|
58
|
-
"typescript": "^5"
|
|
59
|
-
},
|
|
60
|
-
"peerDependencies": {
|
|
61
|
-
"typescript": "^5"
|
|
62
|
-
},
|
|
63
|
-
"engines": {
|
|
64
|
-
"node": ">=18.0.0"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "create-lt-adventure",
|
|
3
|
+
"version": "0.0.15",
|
|
4
|
+
"description": "A CLI tool to scaffold Foundry VTT modules",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"foundry-vtt",
|
|
7
|
+
"module",
|
|
8
|
+
"scaffold",
|
|
9
|
+
"cli"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "mrvauxs",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/MrVauxs/create-lt-adventure"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://github.com/MrVauxs/create-lt-adventure#readme",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/MrVauxs/create-lt-adventure/issues"
|
|
20
|
+
},
|
|
21
|
+
"type": "module",
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"./bin": {
|
|
29
|
+
"import": "./dist/bin.js",
|
|
30
|
+
"types": "./dist/bin.d.ts"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"bin": {
|
|
34
|
+
"create-lt-adventure": "./dist/bin.js"
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist/",
|
|
38
|
+
"templates/",
|
|
39
|
+
"addons/",
|
|
40
|
+
"LICENSE",
|
|
41
|
+
"README.md"
|
|
42
|
+
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"create": "bun src/bin.ts",
|
|
45
|
+
"build": "tsc",
|
|
46
|
+
"build:watch": "tsc --watch",
|
|
47
|
+
"prepublishOnly": "npm run build",
|
|
48
|
+
"prepack": "npm run build",
|
|
49
|
+
"dev": "bun src/bin.ts \"My New Module\" --auto-id"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"kolorist": "^1.8.0",
|
|
53
|
+
"@clack/prompts": "^1.0.0-alpha.9"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/bun": "latest",
|
|
57
|
+
"@types/node": "^20",
|
|
58
|
+
"typescript": "^5"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"typescript": "^5"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=18.0.0"
|
|
65
|
+
}
|
|
66
|
+
}
|
package/templates/vite/bun.lock
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"kolorist": "^1.8.0",
|
|
15
15
|
"postcss-preset-env": "^10.6.0",
|
|
16
16
|
"postcss-replace": "^2.0.1",
|
|
17
|
+
"terser": "^5.46.0",
|
|
17
18
|
"typescript": "^5.9.3",
|
|
18
19
|
"vite": "^7.3.0",
|
|
19
20
|
},
|
|
@@ -226,6 +227,8 @@
|
|
|
226
227
|
|
|
227
228
|
"@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],
|
|
228
229
|
|
|
230
|
+
"@jridgewell/source-map": ["@jridgewell/source-map@0.3.11", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25" } }, "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA=="],
|
|
231
|
+
|
|
229
232
|
"@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],
|
|
230
233
|
|
|
231
234
|
"@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],
|
|
@@ -446,6 +449,8 @@
|
|
|
446
449
|
|
|
447
450
|
"buffer": ["buffer@6.0.3", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.2.1" } }, "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA=="],
|
|
448
451
|
|
|
452
|
+
"buffer-from": ["buffer-from@1.1.2", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="],
|
|
453
|
+
|
|
449
454
|
"call-bind": ["call-bind@1.0.8", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", "get-intrinsic": "^1.2.4", "set-function-length": "^1.2.2" } }, "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww=="],
|
|
450
455
|
|
|
451
456
|
"call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
|
|
@@ -472,7 +477,7 @@
|
|
|
472
477
|
|
|
473
478
|
"color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],
|
|
474
479
|
|
|
475
|
-
"commander": ["commander@
|
|
480
|
+
"commander": ["commander@2.20.3", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="],
|
|
476
481
|
|
|
477
482
|
"concat-map": ["concat-map@0.0.1", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="],
|
|
478
483
|
|
|
@@ -908,6 +913,8 @@
|
|
|
908
913
|
|
|
909
914
|
"source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
|
|
910
915
|
|
|
916
|
+
"source-map-support": ["source-map-support@0.5.21", "", { "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="],
|
|
917
|
+
|
|
911
918
|
"string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
|
|
912
919
|
|
|
913
920
|
"strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
|
|
@@ -922,6 +929,8 @@
|
|
|
922
929
|
|
|
923
930
|
"synckit": ["synckit@0.11.11", "", { "dependencies": { "@pkgr/core": "^0.2.9" } }, "sha512-MeQTA1r0litLUf0Rp/iisCaL8761lKAZHaimlbGK4j0HysC4PLfqygQj9srcs0m2RdtDYnF8UuYyKpbjHYp7Jw=="],
|
|
924
931
|
|
|
932
|
+
"terser": ["terser@5.46.0", "", { "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.15.0", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, "bin": { "terser": "bin/terser" } }, "sha512-jTwoImyr/QbOWFFso3YoU3ik0jBBDJ6JTOQiy/J2YxVJdZCc+5u7skhNwiOR3FQIygFqVUPHl7qbbxtjW2K3Qg=="],
|
|
933
|
+
|
|
925
934
|
"tinyglobby": ["tinyglobby@0.2.15", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="],
|
|
926
935
|
|
|
927
936
|
"type-check": ["type-check@0.4.0", "", { "dependencies": { "prelude-ls": "^1.2.1" } }, "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew=="],
|
|
@@ -978,6 +987,8 @@
|
|
|
978
987
|
|
|
979
988
|
"foundryvtt-sync/@foundryvtt/foundryvtt-cli": ["@foundryvtt/foundryvtt-cli@1.1.0", "", { "dependencies": { "chalk": "^5.4.1", "classic-level": "^1.4.1", "esm": "^3.2.25", "js-yaml": "^4.1.0", "mkdirp": "^3.0.1", "nedb-promises": "^6.2.3", "yargs": "^17.7.2" }, "bin": { "fvtt": "fvtt.mjs" } }, "sha512-ergKZDUSgQ79168r38ORyN4v/UTliA40rxElaUh5iS27Qw9H8Ep/ll8j3/HfiikO3XUDwYxZLfDJfbcyj2i9TQ=="],
|
|
980
989
|
|
|
990
|
+
"peggy/commander": ["commander@14.0.2", "", {}, "sha512-TywoWNNRbhoD0BXs1P3ZEScW8W5iKrnbithIl0YH+uCmBd0QpPOA8yc82DS3BIE5Ma6FnBVUsJ7wVUDz4dvOWQ=="],
|
|
991
|
+
|
|
981
992
|
"uri-js/punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],
|
|
982
993
|
}
|
|
983
994
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { renameSync } from "fs";
|
|
2
2
|
|
|
3
3
|
const mod = (await Bun.file("../module.json").json());
|
|
4
4
|
const pack = (await Bun.file("../package.json").json());
|
|
@@ -22,6 +22,6 @@ await Bun.write("../module.json", JSON.stringify(mod, null, "\t"));
|
|
|
22
22
|
await Bun.write("../package.json", JSON.stringify(pack, null, "\t"));
|
|
23
23
|
|
|
24
24
|
// Rename gitignore to .gitignore
|
|
25
|
-
|
|
25
|
+
renameSync("../gitignore", "../.gitignore");
|
|
26
26
|
|
|
27
27
|
export { };
|
|
@@ -55,13 +55,12 @@ body.theme-dark .((moduleId)).Checks-and-Saves {
|
|
|
55
55
|
& h2,
|
|
56
56
|
& h3,
|
|
57
57
|
& h4 {
|
|
58
|
-
|
|
59
|
-
.theme-light
|
|
60
|
-
.themed.theme-light & {
|
|
58
|
+
.themed.theme-light &,
|
|
59
|
+
body.theme-light & {
|
|
61
60
|
color: hsl(179, 100%, 10%);
|
|
62
61
|
}
|
|
63
|
-
.theme-dark &,
|
|
64
|
-
.
|
|
62
|
+
.themed.theme-dark &,
|
|
63
|
+
body.theme-dark & {
|
|
65
64
|
color: hsl(120, 25%, 90%);
|
|
66
65
|
}
|
|
67
66
|
font-family: "Modesto Condensed";
|
|
@@ -31,7 +31,6 @@ const postcss = {
|
|
|
31
31
|
|
|
32
32
|
const PACKAGE_ID = `modules/${moduleJSON.id}`;
|
|
33
33
|
|
|
34
|
-
|
|
35
34
|
export default defineConfig(({ mode: _mode }) => {
|
|
36
35
|
if (_mode === "serve") console.log(`Running foundry port ${foundryPort} -> dev port ${devPort}`);
|
|
37
36
|
return {
|
|
@@ -74,9 +73,13 @@ export default defineConfig(({ mode: _mode }) => {
|
|
|
74
73
|
},
|
|
75
74
|
build: {
|
|
76
75
|
outDir: "../dist", // The output directory.
|
|
77
|
-
emptyOutDir:
|
|
76
|
+
emptyOutDir: true,
|
|
78
77
|
sourcemap: true, // Provide a publicly available sourcemap for debuggin purposes.
|
|
79
78
|
target,
|
|
79
|
+
minify: "terser",
|
|
80
|
+
terserOptions: {
|
|
81
|
+
keep_classnames: true, // Don't mangle class names since Foundry relies on them
|
|
82
|
+
},
|
|
80
83
|
lib: {
|
|
81
84
|
entry: `./${libEntry}`,
|
|
82
85
|
formats: ["es"],
|