create-lt-adventure 0.0.12 → 0.0.13

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/README.md CHANGED
@@ -9,7 +9,7 @@ A CLI scaffolding tool for creating Foundry VTT modules.
9
9
  Once published to npm, you can run the script via Bun:
10
10
 
11
11
  ```bash
12
- bunx create-lt-adventure
12
+ bunx create-lt-adventure
13
13
  ```
14
14
 
15
15
  Then run it from anywhere:
@@ -18,6 +18,12 @@ Then run it from anywhere:
18
18
  create-lt-adventure
19
19
  ```
20
20
 
21
+ Update the package using
22
+
23
+ ```bash
24
+ bun update create-lt-adventure -g --latest
25
+ ```
26
+
21
27
  ### Development Installation
22
28
 
23
29
  For development purposes:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lt-adventure",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "A CLI tool to scaffold Foundry VTT modules",
5
5
  "keywords": [
6
6
  "foundry-vtt",
@@ -0,0 +1,27 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto eol=lf
3
+
4
+ # Specific filetypes
5
+ *.md text diff=markdown
6
+
7
+ # Overrides
8
+ *.lockb binary diff=lockb
9
+ assets/**/*.gif binary
10
+ assets/**/*.jpeg binary
11
+ assets/**/*.jpg binary
12
+ assets/**/*.mp3 binary
13
+ assets/**/*.mp4 binary
14
+ assets/**/*.ogg binary
15
+ assets/**/*.opus binary
16
+ assets/**/*.png binary
17
+ assets/**/*.webm binary
18
+ assets/**/*.webp binary
19
+ packs/** binary
20
+
21
+ # Prevent dud-files being bundled into archives
22
+ .gitattributes export-ignore
23
+ .gitignore export-ignore
24
+ .gitkeep export-ignore
25
+
26
+ # GitHub UI fine-tuning
27
+ .vscode/*.json linguist-language=JSON-with-Comments
@@ -0,0 +1,37 @@
1
+ packs
2
+
3
+ # dependencies (bun install)
4
+ node_modules
5
+
6
+ # output
7
+ out
8
+ dist
9
+ *.tgz
10
+
11
+ # code coverage
12
+ coverage
13
+ *.lcov
14
+
15
+ # logs
16
+ logs
17
+ _.log
18
+ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
19
+
20
+ # dotenv environment variable files
21
+ .env
22
+ .env.development.local
23
+ .env.test.local
24
+ .env.production.local
25
+ .env.local
26
+
27
+ # caches
28
+ .eslintcache
29
+ .cache
30
+ *.tsbuildinfo
31
+ .vite-cache
32
+
33
+ # IntelliJ based IDEs
34
+ .idea
35
+
36
+ # Finder (MacOS) folder config
37
+ .DS_Store
@@ -1,14 +1,27 @@
1
- const mod = (await Bun.file("../module.json").json());
2
- const pack = (await Bun.file("../package.json").json());
3
-
4
- // Module
5
- mod.esmodules = [`dist/${mod.id}.js`];
6
- mod.styles = [`dist/${mod.id}.css`];
7
-
8
- // Package
9
- pack.name = mod.id;
10
-
11
- await Bun.write("../module.json", JSON.stringify(mod, null, "\t"));
12
- await Bun.write("../package.json", JSON.stringify(pack, null, "\t"));
13
-
14
- export { };
1
+ import { rename } from "fs";
2
+
3
+ const mod = (await Bun.file("../module.json").json());
4
+ const pack = (await Bun.file("../package.json").json());
5
+
6
+ // Module
7
+ mod.esmodules = [`dist/${mod.id}.js`];
8
+ mod.styles = [`dist/${mod.id}.css`];
9
+
10
+ // Package
11
+ pack.name = mod.id;
12
+
13
+ mod.media = [
14
+ {
15
+ "auto": true,
16
+ "type": "setup",
17
+ "url": `modules/${mod.id}/assets/setup.webp`
18
+ }
19
+ ];
20
+
21
+ await Bun.write("../module.json", JSON.stringify(mod, null, "\t"));
22
+ await Bun.write("../package.json", JSON.stringify(pack, null, "\t"));
23
+
24
+ // Rename gitignore to .gitignore
25
+ rename("../gitignore", "../.gitignore");
26
+
27
+ export { };