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 +10 -0
- package/package.json +21 -0
- package/src/index.ts +18 -0
- package/tsconfig.json +12 -0
- package/tsup.config.ts +8 -0
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