@tailor-platform/create-sdk 0.16.2 → 0.17.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.
- package/CHANGELOG.md +8 -0
- package/README.md +55 -0
- package/package.json +1 -1
- package/templates/hello-world/README.md +1 -1
- package/templates/hello-world/package.json +2 -2
- package/templates/inventory-management/README.md +2 -2
- package/templates/inventory-management/package.json +2 -2
- package/templates/multi-application/package.json +2 -2
- package/templates/testing/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @tailor-platform/create-sdk
|
|
2
2
|
|
|
3
|
+
## 0.17.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#182](https://github.com/tailor-platform/sdk/pull/182) [`a74af85`](https://github.com/tailor-platform/sdk/commit/a74af854b796cfdb701a1f8f78dbabcdfbd3fe02) Thanks [@toiroakr](https://github.com/toiroakr)! - chore: Add comprehensive documentation
|
|
8
|
+
|
|
9
|
+
## 0.16.3
|
|
10
|
+
|
|
3
11
|
## 0.16.2
|
|
4
12
|
|
|
5
13
|
## 0.16.1
|
package/README.md
CHANGED
|
@@ -20,6 +20,57 @@ pnpm create @tailor-platform/sdk [OPTIONS] [NAME]
|
|
|
20
20
|
|
|
21
21
|
- `--template <template-name>`: (Optional) Specify a template to use for your project. If not provided, you'll be prompted to select one from a list of available templates.
|
|
22
22
|
|
|
23
|
+
## Available Templates
|
|
24
|
+
|
|
25
|
+
| Template | Description | Features |
|
|
26
|
+
| ---------------------- | -------------------------------- | ----------------------------------------- |
|
|
27
|
+
| `hello-world` | Minimal starter project | Simple resolver example |
|
|
28
|
+
| `inventory-management` | Full-featured sample application | TailorDB, Resolver, Executor, Permissions |
|
|
29
|
+
| `testing` | Testing patterns guide | Unit tests, E2E tests, Vitest setup |
|
|
30
|
+
| `multi-application` | Multi-app architecture | Shared databases, multiple applications |
|
|
31
|
+
|
|
32
|
+
### hello-world
|
|
33
|
+
|
|
34
|
+
A minimal starter project with a single resolver. Best for learning the basics of the SDK.
|
|
35
|
+
|
|
36
|
+
**Includes:**
|
|
37
|
+
|
|
38
|
+
- Simple "hello" query resolver
|
|
39
|
+
- Basic project configuration
|
|
40
|
+
|
|
41
|
+
### inventory-management
|
|
42
|
+
|
|
43
|
+
A complete inventory management system demonstrating real-world patterns.
|
|
44
|
+
|
|
45
|
+
**Includes:**
|
|
46
|
+
|
|
47
|
+
- TailorDB types: User, Product, Category, Order, Inventory, Contact, Notification
|
|
48
|
+
- Role-based permissions (Manager, Staff)
|
|
49
|
+
- Custom resolver for order registration with inventory updates
|
|
50
|
+
- Executor for inventory threshold monitoring
|
|
51
|
+
- Machine users for API access
|
|
52
|
+
|
|
53
|
+
### testing
|
|
54
|
+
|
|
55
|
+
A comprehensive guide to testing patterns with Vitest.
|
|
56
|
+
|
|
57
|
+
**Includes:**
|
|
58
|
+
|
|
59
|
+
- Unit test examples (simple resolver, mock TailorDB, dependency injection)
|
|
60
|
+
- E2E test setup with deployed application
|
|
61
|
+
- CI/CD integration patterns
|
|
62
|
+
- Global setup for test credentials
|
|
63
|
+
|
|
64
|
+
### multi-application
|
|
65
|
+
|
|
66
|
+
Demonstrates multiple applications sharing databases within a workspace.
|
|
67
|
+
|
|
68
|
+
**Includes:**
|
|
69
|
+
|
|
70
|
+
- User application (owns shared database)
|
|
71
|
+
- Admin application (references shared database as external)
|
|
72
|
+
- Coordinated deployment scripts
|
|
73
|
+
|
|
23
74
|
## What it does
|
|
24
75
|
|
|
25
76
|
This tool will:
|
|
@@ -33,3 +84,7 @@ This tool will:
|
|
|
33
84
|
|
|
34
85
|
- If none of the supported package managers (npm, yarn, pnpm) are found, dependency installation will be skipped.
|
|
35
86
|
- If the project already exists within a git repository, git initialization will be skipped.
|
|
87
|
+
|
|
88
|
+
## Documentation
|
|
89
|
+
|
|
90
|
+
For complete SDK documentation, see the [SDK documentation](https://github.com/tailor-platform/sdk/blob/main/packages/sdk/docs/quickstart.md).
|
package/package.json
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@eslint/js": "9.39.1",
|
|
15
|
-
"@tailor-platform/sdk": "0.
|
|
15
|
+
"@tailor-platform/sdk": "0.17.0",
|
|
16
16
|
"@types/node": "22.19.2",
|
|
17
17
|
"eslint": "9.39.1",
|
|
18
|
-
"prettier": "3.7.
|
|
18
|
+
"prettier": "3.7.4",
|
|
19
19
|
"typescript": "5.9.3",
|
|
20
20
|
"typescript-eslint": "8.49.0"
|
|
21
21
|
}
|
|
@@ -34,9 +34,9 @@ npm run deploy -- --workspace-id <your-workspace-id>
|
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
36
|
# Get Manager's token
|
|
37
|
-
npx tailor-sdk machineuser token
|
|
37
|
+
npx tailor-sdk machineuser token manager --workspace-id <your-workspace-id>
|
|
38
38
|
# Get Staff's token
|
|
39
|
-
npx tailor-sdk machineuser token
|
|
39
|
+
npx tailor-sdk machineuser token staff --workspace-id <your-workspace-id>
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Features
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@eslint/js": "9.39.1",
|
|
20
20
|
"@tailor-platform/function-types": "0.8.0",
|
|
21
|
-
"@tailor-platform/sdk": "0.
|
|
21
|
+
"@tailor-platform/sdk": "0.17.0",
|
|
22
22
|
"@types/node": "22.19.2",
|
|
23
23
|
"eslint": "9.39.1",
|
|
24
|
-
"prettier": "3.7.
|
|
24
|
+
"prettier": "3.7.4",
|
|
25
25
|
"typescript": "5.9.3",
|
|
26
26
|
"typescript-eslint": "8.49.0"
|
|
27
27
|
}
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@eslint/js": "9.39.1",
|
|
17
|
-
"@tailor-platform/sdk": "0.
|
|
17
|
+
"@tailor-platform/sdk": "0.17.0",
|
|
18
18
|
"@types/node": "22.19.2",
|
|
19
19
|
"eslint": "9.39.1",
|
|
20
|
-
"prettier": "3.7.
|
|
20
|
+
"prettier": "3.7.4",
|
|
21
21
|
"typescript": "5.9.3",
|
|
22
22
|
"typescript-eslint": "8.49.0"
|
|
23
23
|
}
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@eslint/js": "9.39.1",
|
|
23
23
|
"@tailor-platform/function-types": "0.8.0",
|
|
24
|
-
"@tailor-platform/sdk": "0.
|
|
24
|
+
"@tailor-platform/sdk": "0.17.0",
|
|
25
25
|
"@types/node": "22.19.2",
|
|
26
26
|
"eslint": "9.39.1",
|
|
27
27
|
"graphql-request": "7.3.5",
|
|
28
|
-
"prettier": "3.7.
|
|
28
|
+
"prettier": "3.7.4",
|
|
29
29
|
"typescript": "5.9.3",
|
|
30
30
|
"typescript-eslint": "8.49.0",
|
|
31
|
-
"vitest": "4.0.
|
|
31
|
+
"vitest": "4.0.15"
|
|
32
32
|
}
|
|
33
33
|
}
|