@planningcenter/tapestry-migration-cli 2.1.0-rc.3

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/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # tapestry-migration-cli
2
+
3
+ A simple cli tool used to help to migration Tapestry React components to formats that match Planning Center specs (usually to `@planningcenter/tapestry` components).
4
+
5
+ ## Quick Use
6
+
7
+ ```bash
8
+ # For help
9
+ npx @planningcenter/tapestry-migration-cli
10
+ # Run a migration with autofixing
11
+ npx @planningcenter/tapestry-migration-cli run ComponentName -p ./path/to/files -f
12
+ ```
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+ import { Command } from "commander";
3
+ const program = new Command();
4
+ program
5
+ .name("tapestry-migration-cli")
6
+ .description("CLI tool for Tapestry migrations");
7
+ program
8
+ .command("run")
9
+ .description("Run a migration of a component from Tapestry React to Tapestry")
10
+ .argument("<component-name>", "The name of the component to migrate")
11
+ .option("-f, --fix", "Write the changes")
12
+ .option("-p, --path", "The path to the folder/file to migrate")
13
+ .option("-v, --verbose", "Verbose output")
14
+ .action(() => {
15
+ console.log("Hello from Tapestry Migration CLI! 🎨");
16
+ console.log("This CLI is currently in development.");
17
+ console.log("More features coming soon!");
18
+ });
19
+ program
20
+ .command("help")
21
+ .description("Show help information")
22
+ .action(() => {
23
+ program.help();
24
+ });
25
+ program.parse();
26
+ if (!process.argv.slice(2).length) {
27
+ program.outputHelp();
28
+ }
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@planningcenter/tapestry-migration-cli",
3
+ "version": "2.1.0-rc.3",
4
+ "description": "CLI tool for Tapestry migrations",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "tapestry-migration-cli": "./dist/index.js"
9
+ },
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "dev": "tsc --watch",
13
+ "test": "echo \"No tests yet\"",
14
+ "prepublishOnly": "npm run build"
15
+ },
16
+ "keywords": [
17
+ "cli",
18
+ "tapestry",
19
+ "migration",
20
+ "planningcenter"
21
+ ],
22
+ "author": "Planning Center",
23
+ "license": "MIT",
24
+ "engines": {
25
+ "node": ">=18.0.0"
26
+ },
27
+ "dependencies": {
28
+ "commander": "^11.0.0"
29
+ },
30
+ "devDependencies": {
31
+ "@types/node": "^20.0.0",
32
+ "typescript": "^5.8.3"
33
+ },
34
+ "files": [
35
+ "dist/**/*"
36
+ ],
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/planningcenter/tapestry.git",
40
+ "directory": "packages/tapestry-migration-cli"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "gitHead": "d7b78476834434e6f6e823f82aa832ad85db74b2"
46
+ }