blockstudio 0.0.1

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.js ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/index.ts
4
+ import { Command } from "commander";
5
+ var program = new Command();
6
+ program.name("blockstudio").description("Add WordPress blocks from the Blockstudio registry.").version("0.0.1");
7
+ program.command("add").argument("<block>", "Block to add").description("Add a block to your project").action((block) => {
8
+ console.log(`Adding block: ${block}`);
9
+ });
10
+ program.parse();
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "blockstudio",
3
+ "version": "0.0.1",
4
+ "description": "CLI for adding WordPress blocks from the Blockstudio registry.",
5
+ "license": "MIT",
6
+ "bin": {
7
+ "blockstudio": "./dist/index.js"
8
+ },
9
+ "type": "module",
10
+ "scripts": {
11
+ "build": "tsup",
12
+ "dev": "tsup --watch"
13
+ },
14
+ "devDependencies": {
15
+ "tsup": "^8.0.0",
16
+ "typescript": "^5.0.0"
17
+ },
18
+ "dependencies": {
19
+ "commander": "^13.0.0"
20
+ }
21
+ }
package/src/index.ts ADDED
@@ -0,0 +1,18 @@
1
+ import { Command } from "commander";
2
+
3
+ const program = new Command();
4
+
5
+ program
6
+ .name("blockstudio")
7
+ .description("Add WordPress blocks from the Blockstudio registry.")
8
+ .version("0.0.1");
9
+
10
+ program
11
+ .command("add")
12
+ .argument("<block>", "Block to add")
13
+ .description("Add a block to your project")
14
+ .action((block: string) => {
15
+ console.log(`Adding block: ${block}`);
16
+ });
17
+
18
+ program.parse();
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "strict": true,
7
+ "esModuleInterop": true,
8
+ "outDir": "dist",
9
+ "rootDir": "src"
10
+ },
11
+ "include": ["src"]
12
+ }
package/tsup.config.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from "tsup";
2
+
3
+ export default defineConfig({
4
+ entry: ["src/index.ts"],
5
+ format: ["esm"],
6
+ clean: true,
7
+ banner: { js: "#!/usr/bin/env node" },
8
+ });