@weave-apps/sdk 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/bin/init.js +31 -0
  2. package/package.json +1 -1
package/bin/init.js CHANGED
@@ -26,6 +26,37 @@ if (fs.existsSync(sdkPackageJsonPath)) {
26
26
  const args = process.argv.slice(2);
27
27
  const appName = args[0];
28
28
 
29
+ // Help command
30
+ if (appName === '--help') {
31
+ console.log(`
32
+
33
+ 🚀 Weave Apps SDK Help
34
+
35
+ Usage:
36
+ weave-init <app-name> Create a new Weave app
37
+ weave-init --help Show this help message
38
+
39
+ Examples:
40
+ weave-init my-app
41
+ weave-init my-custom-app
42
+ weave-init dashboard
43
+
44
+ Requirements:
45
+ • App name must be in kebab-case (lowercase with hyphens)
46
+ • App name must start with a letter
47
+ • Directory with that name must not already exist
48
+
49
+ After initialization:
50
+ cd <app-name>
51
+ npm install
52
+ npm run build
53
+
54
+ Learn more:
55
+ https://www.npmjs.com/package/@weave-apps/sdk
56
+ `);
57
+ process.exit(0);
58
+ }
59
+
29
60
  if (!appName) {
30
61
  console.error('❌ Error: App name is required');
31
62
  console.log('Usage: npx weave-init <app-name>');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weave-apps/sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "SDK for building Weave Micro Apps",
5
5
  "publishConfig": {
6
6
  "access": "public"