create-peachy 0.0.4 → 0.0.6

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/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { dirname, resolve } from "node:path";
5
5
  import h from "handlebars";
6
6
 
7
7
  //#region package.json
8
- var version = "0.0.4";
8
+ var version = "0.0.6";
9
9
 
10
10
  //#endregion
11
11
  //#region src/index.ts
@@ -27,7 +27,7 @@ const files = await readdir(TEMPLATE_DIR, { recursive: true });
27
27
  for (const file of files) {
28
28
  if (!(await stat(resolve(TEMPLATE_DIR, file))).isFile()) continue;
29
29
  const inputPath = resolve(TEMPLATE_DIR, file);
30
- const outputPath = resolve(OUTDIR, file);
30
+ const outputPath = resolve(OUTDIR, file === ".npmignore" ? ".gitignore" : file);
31
31
  await mkdir(dirname(outputPath), { recursive: true });
32
32
  const fileContent = await readFile(inputPath, "utf8");
33
33
  await writeFile(outputPath, h.compile(fileContent)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-peachy",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "description": "Bootstrap a peachy application",
6
6
  "bin": "./dist/index.mjs",
@@ -6,10 +6,13 @@ export function Counter() {
6
6
  const [count, setCount] = useState(0);
7
7
 
8
8
  return (
9
- <Gtk.Box>
10
- <Gtk.Button onClicked={() => setCount(count - 1)}>-</Gtk.Button>
11
- <Gtk.Label hexpand label={count.toString()} />
12
- <Gtk.Button onClicked={() => setCount(count + 1)}>+</Gtk.Button>
13
- </Gtk.Box>
9
+ <Adw.ToolbarView>
10
+ <Adw.HeaderBar childType="top" />
11
+ <Gtk.Box>
12
+ <Gtk.Button onClicked={() => setCount(count - 1)}>-</Gtk.Button>
13
+ <Gtk.Label hexpand label={count.toString()} />
14
+ <Gtk.Button onClicked={() => setCount(count + 1)}>+</Gtk.Button>
15
+ </Gtk.Box>
16
+ </Adw.ToolbarView>
14
17
  );
15
18
  }