@farbenmeer/bunny 0.1.1 → 0.1.2

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.
Binary file
@@ -0,0 +1,2 @@
1
+ export declare const gitignoreTemplate = "\n# dependencies (bun install)\nnode_modules\n\n# output\nout\ndist\n*.tgz\n\n# code coverage\ncoverage\n*.lcov\n\n# logs\nlogs\n_.log\nreport.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json\n\n# dotenv environment variable files\n.env\n.env.development.local\n.env.test.local\n.env.production.local\n.env.local\n\n# caches\n.eslintcache\n.cache\n*.tsbuildinfo\n\n# IntelliJ based IDEs\n.idea\n\n# Finder (MacOS) folder config\n.DS_Store\n\n# Bunny database file and build output\ndb.sqlite\n.bunny\n";
2
+ //# sourceMappingURL=gitignore-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitignore-template.d.ts","sourceRoot":"","sources":["../../src/cli/gitignore-template.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,0eAuC7B,CAAC"}
@@ -0,0 +1,40 @@
1
+ export const gitignoreTemplate = `
2
+ # dependencies (bun install)
3
+ node_modules
4
+
5
+ # output
6
+ out
7
+ dist
8
+ *.tgz
9
+
10
+ # code coverage
11
+ coverage
12
+ *.lcov
13
+
14
+ # logs
15
+ logs
16
+ _.log
17
+ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
18
+
19
+ # dotenv environment variable files
20
+ .env
21
+ .env.development.local
22
+ .env.test.local
23
+ .env.production.local
24
+ .env.local
25
+
26
+ # caches
27
+ .eslintcache
28
+ .cache
29
+ *.tsbuildinfo
30
+
31
+ # IntelliJ based IDEs
32
+ .idea
33
+
34
+ # Finder (MacOS) folder config
35
+ .DS_Store
36
+
37
+ # Bunny database file and build output
38
+ db.sqlite
39
+ .bunny
40
+ `;
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,eAAO,MAAM,IAAI,SAoCb,CAAC"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,eAAO,MAAM,IAAI,SAwCb,CAAC"}
package/dist/cli/init.js CHANGED
@@ -2,6 +2,7 @@ import { Command } from "commander";
2
2
  import { exists, mkdir, readdir } from "node:fs/promises";
3
3
  import { $ } from "bun";
4
4
  import path from "node:path";
5
+ import { gitignoreTemplate } from "./gitignore-template";
5
6
  export const init = new Command()
6
7
  .name("init")
7
8
  .description("Initialize a new project")
@@ -32,5 +33,7 @@ export const init = new Command()
32
33
  // Extract the tarball to the current directory
33
34
  await $ `tar -xzf ${tarBall} --strip-components=1`;
34
35
  await $ `bun pm pkg set name=${name ?? path.basename(process.cwd())}`;
36
+ await Bun.write(path.join(process.cwd(), ".gitignore"), gitignoreTemplate);
37
+ await $ `git init`;
35
38
  console.log("Project initialized successfully!");
36
39
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farbenmeer/bunny",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "author": {
5
5
  "name": "Michel Smola",
6
6
  "email": "michel.smola@farbenmeer.de"