create-hugoblox 0.1.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.
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ import { bootstrap } from 'hugoblox';
3
+
4
+ var args = [
5
+ process.argv[0],
6
+ process.argv[1],
7
+ "create",
8
+ ...process.argv.slice(2)
9
+ ];
10
+ bootstrap(args).catch((err) => {
11
+ console.error(err);
12
+ process.exit(1);
13
+ });
14
+ //# sourceMappingURL=out.js.map
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,SAAS,iBAAiB;AAK1B,IAAM,OAAO;AAAA,EACZ,QAAQ,KAAK,CAAC;AAAA,EACd,QAAQ,KAAK,CAAC;AAAA,EACd;AAAA,EACA,GAAG,QAAQ,KAAK,MAAM,CAAC;AACxB;AAGA,UAAU,IAAI,EAAE,MAAM,CAAC,QAAQ;AAC9B,UAAQ,MAAM,GAAG;AACjB,UAAQ,KAAK,CAAC;AACf,CAAC","sourcesContent":["import { bootstrap } from \"hugoblox\";\n\n// Construct the arguments to simulate \"hbx create ...\"\n// process.argv contains [nodePath, scriptPath, ...userArgs]\n// We want to pass [nodePath, scriptPath, \"create\", ...userArgs]\nconst args = [\n\tprocess.argv[0],\n\tprocess.argv[1],\n\t\"create\",\n\t...process.argv.slice(2),\n];\n\n// Invoke the main CLI's bootstrap function\nbootstrap(args).catch((err) => {\n\tconsole.error(err);\n\tprocess.exit(1);\n});\n\n"]}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "create-hugoblox",
3
+ "version": "0.1.0",
4
+ "description": "Create a new HugoBlox site",
5
+ "type": "module",
6
+ "bin": {
7
+ "create-hugoblox": "dist/index.js",
8
+ "create-hbx": "dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
16
+ "dependencies": {
17
+ "hugoblox": "0.1.1"
18
+ },
19
+ "devDependencies": {
20
+ "@biomejs/biome": "1.6.4",
21
+ "@types/node": "20.11.20",
22
+ "tsup": "8.0.1",
23
+ "typescript": "5.3.3"
24
+ },
25
+ "scripts": {
26
+ "build": "tsup",
27
+ "lint": "biome check .",
28
+ "format": "biome format --write ."
29
+ }
30
+ }