create-spud 0.1.12 → 0.2.0

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.
@@ -24,27 +24,20 @@ build_command
24
24
  - **Game assets**
25
25
  - [itch.io game assets](https://itch.io/game-assets)
26
26
 
27
- - **Audio**
28
- - [sfxr.me sfx generator](https://pro.sfxr.me/) and [bfxr](https://www.bfxr.net/)
29
- - [OpenGameArt cc0 sound effects](https://opengameart.org/art-search-advanced?keys=&title=&field_art_tags_tid_op=or&field_art_tags_tid=&name=&field_art_type_tid%5B%5D=13&field_art_licenses_tid%5B%5D=4)
30
- - [Free sfx](https://www.freesfx.co.uk/)
31
-
32
27
  - **Animation**
33
28
  - [easings.net](https://easings.net/)
34
29
 
35
30
  - **Sprites & pixel art**
36
31
  - [Aseprite](https://www.aseprite.org/)
32
+ - [Piskel](https://www.piskelapp.com/)
37
33
  - [Pixel planet generator (itch.io)](https://deep-fold.itch.io/pixel-planet-generator)
38
34
  - [Paint of Persia](https://dunin.itch.io/ptop)
39
-
40
- - **Fonts**
41
- - [Google Fonts](https://fonts.google.com/)
42
- - [Font Squirrel](https://www.fontsquirrel.com/)
43
- - [Font Library](https://fontlibrary.org/)
35
+ - [Tiled](https://www.mapeditor.org/)
44
36
 
45
37
  - **Documentation for dev tools & APIs used in this project**
38
+ - [Handmade Web Games](https://handmade.spud.gg/docs/guides/handmade-web-games)
46
39
  - [Vite docs](https://vite.dev/)
47
- - [Bun docs](https://bun.com/docs)
40
+ bun_docs_resource
48
41
  - [TypeScript handbook](https://www.typescriptlang.org/docs/handbook/intro.html)
49
42
  - [MDN Canvas API tutorial](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial)
50
43
  - [@spud.gg/api (npm)](https://www.npmjs.com/package/@spud.gg/api)
@@ -34,8 +34,10 @@ build_command
34
34
 
35
35
  - **Sprites & pixel art**
36
36
  - [Aseprite](https://www.aseprite.org/)
37
+ - [Piskel](https://www.piskelapp.com/)
37
38
  - [Pixel planet generator (itch.io)](https://deep-fold.itch.io/pixel-planet-generator)
38
39
  - [Paint of Persia](https://dunin.itch.io/ptop)
40
+ - [Tiled](https://www.mapeditor.org/)
39
41
 
40
42
  - **Fonts**
41
43
  - [Google Fonts](https://fonts.google.com/)
@@ -43,8 +45,9 @@ build_command
43
45
  - [Font Library](https://fontlibrary.org/)
44
46
 
45
47
  - **Documentation for dev tools & APIs used in this project**
48
+ - [Handmade Web Games](https://handmade.spud.gg/docs/guides/handmade-web-games)
46
49
  - [Vite docs](https://vite.dev/)
47
- - [Bun docs](https://bun.com/docs)
50
+ bun_docs_resource
48
51
  - [TypeScript handbook](https://www.typescriptlang.org/docs/handbook/intro.html)
49
52
  - [MDN Canvas API tutorial](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial)
50
53
  - [@spud.gg/api (npm)](https://www.npmjs.com/package/@spud.gg/api)
package/index.js CHANGED
@@ -147,7 +147,9 @@ async function copyDir(sourceDir, destDir, replacements) {
147
147
  continue;
148
148
  }
149
149
  const text2 = await readFile(sourcePath, "utf8");
150
- const replaced = text2.replaceAll("game_name", replacements.gameName).replaceAll("game_slug", replacements.slug).replaceAll("dev_command", replacements.packageManager === PackageManager.Bun ? "bunx --bun vite" : "vite").replaceAll("install_command", installCommand[replacements.packageManager]).replaceAll("dev_command_readme", devCommand[replacements.packageManager]).replaceAll("build_command", buildCommand[replacements.packageManager]);
150
+ const replaced = text2.replaceAll("game_name", replacements.gameName).replaceAll("game_slug", replacements.slug).replaceAll("dev_command", replacements.packageManager === PackageManager.Bun ? "bunx --bun vite" : "vite").replaceAll("install_command", installCommand[replacements.packageManager]).replaceAll("dev_command_readme", devCommand[replacements.packageManager]).replaceAll("build_command", buildCommand[replacements.packageManager]).replaceAll(`bun_docs_resource
151
+ `, replacements.packageManager === PackageManager.Bun ? ` - [Bun docs](https://bun.com/docs)
152
+ ` : "");
151
153
  await writeFile(destPath, replaced);
152
154
  }
153
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-spud",
3
- "version": "0.1.12",
3
+ "version": "0.2.0",
4
4
  "bin": {
5
5
  "create-spud": "./index.js"
6
6
  },
@@ -9,6 +9,10 @@
9
9
  "examples"
10
10
  ],
11
11
  "type": "module",
12
+ "scripts": {
13
+ "build": "bun scripts/build.ts",
14
+ "prepack": "bun run build"
15
+ },
12
16
  "dependencies": {
13
17
  "@clack/prompts": "1.6.0",
14
18
  "lodash.kebabcase": "4.1.1"
@@ -17,8 +21,5 @@
17
21
  "@types/bun": "1.3.14",
18
22
  "@types/lodash.kebabcase": "4.1.9",
19
23
  "@types/node": "26.0.0"
20
- },
21
- "scripts": {
22
- "build": "bun scripts/build.ts"
23
24
  }
24
- }
25
+ }