@ankhorage/templates 0.1.0 → 0.1.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/CHANGELOG.md +6 -0
- package/README.md +13 -89
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,94 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# templates
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Production-ready templates for React Native apps.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## 🎯 What you get
|
|
6
|
+
- Working app in minutes
|
|
7
|
+
- Preconfigured structure
|
|
8
|
+
- Clean starting point
|
|
6
9
|
|
|
7
|
-
##
|
|
10
|
+
## ✨ Features
|
|
11
|
+
- UI integration
|
|
12
|
+
- Standardized setup
|
|
8
13
|
|
|
9
|
-
|
|
10
|
-
templates
|
|
11
|
-
↓
|
|
12
|
-
zora
|
|
13
|
-
↓
|
|
14
|
-
surface
|
|
15
|
-
```
|
|
14
|
+
## 🚀 Usage
|
|
15
|
+
Use these templates to bootstrap apps quickly.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
```text
|
|
20
|
-
cli → templates
|
|
21
|
-
studio → templates
|
|
22
|
-
studio → zora
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## What it provides
|
|
26
|
-
|
|
27
|
-
- template skeletons built on ZORA-oriented node definitions
|
|
28
|
-
- category presets separated from template structure
|
|
29
|
-
- manifest generators that compose templates and presets
|
|
30
|
-
- a root-only public API with no subpath exports
|
|
31
|
-
|
|
32
|
-
## Installation
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
bun add @ankhorage/templates @ankhorage/contracts @ankhorage/zora
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Usage
|
|
39
|
-
|
|
40
|
-
```ts
|
|
41
|
-
import {
|
|
42
|
-
APP_CATEGORIES,
|
|
43
|
-
CATEGORY_PRESETS,
|
|
44
|
-
createCategoryAppManifest,
|
|
45
|
-
createStarterTemplate,
|
|
46
|
-
} from '@ankhorage/templates';
|
|
47
|
-
|
|
48
|
-
const manifest = createCategoryAppManifest('developer_tools', 'starter', {
|
|
49
|
-
metadata: {
|
|
50
|
-
name: 'Ops Console',
|
|
51
|
-
slug: 'ops-console',
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
const preset = CATEGORY_PRESETS.developer_tools;
|
|
56
|
-
const categories = APP_CATEGORIES;
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Public API
|
|
60
|
-
|
|
61
|
-
```ts
|
|
62
|
-
export { APP_CATEGORIES, type AppCategory } from '@ankhorage/contracts';
|
|
63
|
-
export { CATEGORY_PRESETS, type CategoryPreset } from './presets/category-presets';
|
|
64
|
-
export {
|
|
65
|
-
createStarterTemplate,
|
|
66
|
-
TEMPLATE_KINDS,
|
|
67
|
-
type TemplateKind,
|
|
68
|
-
} from './templates/starter.template';
|
|
69
|
-
export { createCategoryAppManifest } from './generators/create-category-app';
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Package layout
|
|
73
|
-
|
|
74
|
-
```text
|
|
75
|
-
src/
|
|
76
|
-
templates/
|
|
77
|
-
presets/
|
|
78
|
-
generators/
|
|
79
|
-
internal/
|
|
80
|
-
index.ts
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## Development
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
bun run typecheck
|
|
87
|
-
bun run build
|
|
88
|
-
bun run lint
|
|
89
|
-
bun test
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
## License
|
|
93
|
-
|
|
94
|
-
MIT
|
|
17
|
+
## 🧠 Why this exists
|
|
18
|
+
Avoid repetitive setup and ensure consistency across projects.
|