@temir.ra/create-workspace 0.2.0 → 0.3.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 +12 -0
- package/README.md +44 -18
- package/buildinfo.txt +1 -1
- package/dist/cli.js +1 -1
- package/package.json +3 -4
- package/template/buildinfo.txt +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Version 0
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
1. Added `create-skill` template as part of the templates ecosystem.
|
|
6
|
+
|
|
7
|
+
## 0.2.2
|
|
8
|
+
|
|
9
|
+
1. Updated `README.md` to reflect the change in `create-hono-server@0.3.1` template.
|
|
10
|
+
|
|
11
|
+
## 0.2.1
|
|
12
|
+
|
|
13
|
+
1. Updated files from `ts-lib@0.6.3` template.
|
|
14
|
+
|
|
3
15
|
## 0.2.0
|
|
4
16
|
|
|
5
17
|
1. Removed **AI Assistant Context** section from the `README.md` files.
|
package/README.md
CHANGED
|
@@ -9,6 +9,7 @@ The following templates are available in this ecosystem:
|
|
|
9
9
|
| [`create-ts-lib`](#create-ts-lib) | TypeScript library distributed via registry |
|
|
10
10
|
| [`create-hono-server`](#create-hono-server) | Bun/Hono HTTP server |
|
|
11
11
|
| [`create-hono-spa`](#create-hono-spa) | Frontend SPA as a Hono sub-app library |
|
|
12
|
+
| [`create-skill`](#create-skill) | LLM skill package |
|
|
12
13
|
| [`create-workspace`](#packagejson) | Package with workspace support *(this template)* |
|
|
13
14
|
|
|
14
15
|
## Table of Contents
|
|
@@ -23,6 +24,7 @@ The following templates are available in this ecosystem:
|
|
|
23
24
|
2. [Server](#server)
|
|
24
25
|
3. [Server + SPA](#server--spa)
|
|
25
26
|
4. [Full-Stack with Shared Types](#full-stack-with-shared-types)
|
|
27
|
+
5. [Skill](#skill)
|
|
26
28
|
3. [DevOps](#devops)
|
|
27
29
|
1. [Change Management](#change-management)
|
|
28
30
|
2. [Publish](#publish)
|
|
@@ -33,23 +35,23 @@ The following templates are available in this ecosystem:
|
|
|
33
35
|
|
|
34
36
|
```bash
|
|
35
37
|
# placeholder:
|
|
36
|
-
# <
|
|
38
|
+
# <NEW_PACKAGE: <NEW_PACKAGE>
|
|
37
39
|
# <@_VERSION: <@_VERSION>
|
|
38
40
|
|
|
39
41
|
# identify the latest version of the template package as <@_VERSION.
|
|
40
42
|
bun info "@temir.ra/create-workspace" version
|
|
41
43
|
# create a new package from the template version
|
|
42
|
-
bun create --no-install --no-git "@temir.ra/create-workspace<@_VERSION>" <
|
|
44
|
+
bun create --no-install --no-git "@temir.ra/create-workspace<@_VERSION>" <NEW_PACKAGE>
|
|
43
45
|
|
|
44
46
|
# or
|
|
45
47
|
|
|
46
48
|
# clear package manager cache to ensure the latest template version is used
|
|
47
49
|
bun pm cache rm
|
|
48
50
|
# create a new package from the latest template version
|
|
49
|
-
bun create --no-install --no-git "@temir.ra/create-workspace" <
|
|
51
|
+
bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
|
|
50
52
|
|
|
51
53
|
# dependencies must be installed manually
|
|
52
|
-
cd <
|
|
54
|
+
cd <NEW_PACKAGE>
|
|
53
55
|
bun install
|
|
54
56
|
```
|
|
55
57
|
|
|
@@ -115,7 +117,7 @@ To extend the package into a monorepo, add a `workspaces` field to `package.json
|
|
|
115
117
|
The execution environment installs all workspace dependencies into a single shared `node_modules/` at the root and symlinks each workspace package by its `name` field. Cross-workspace imports resolve by package name without path aliases or module mapping.
|
|
116
118
|
|
|
117
119
|
```
|
|
118
|
-
<
|
|
120
|
+
<NEW_PACKAGE>/
|
|
119
121
|
├── package.json ← root
|
|
120
122
|
└── packages/
|
|
121
123
|
├── pkg-a/
|
|
@@ -153,14 +155,14 @@ Scaffold the package first, add `workspaces` to `package.json`, then scaffold wo
|
|
|
153
155
|
#### Library
|
|
154
156
|
|
|
155
157
|
```
|
|
156
|
-
<
|
|
158
|
+
<NEW_PACKAGE>/
|
|
157
159
|
└── packages/
|
|
158
160
|
└── my-lib/ ← create-ts-lib
|
|
159
161
|
```
|
|
160
162
|
|
|
161
163
|
```bash
|
|
162
|
-
bun create --no-install --no-git "@temir.ra/create-workspace" <
|
|
163
|
-
cd <
|
|
164
|
+
bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
|
|
165
|
+
cd <NEW_PACKAGE>
|
|
164
166
|
bun create --no-install --no-git "@temir.ra/ts-lib" packages/my-lib
|
|
165
167
|
bun install
|
|
166
168
|
```
|
|
@@ -180,14 +182,14 @@ Starting point for any package distributed via a registry. See the full document
|
|
|
180
182
|
#### Server
|
|
181
183
|
|
|
182
184
|
```
|
|
183
|
-
<
|
|
185
|
+
<NEW_PACKAGE>/
|
|
184
186
|
└── packages/
|
|
185
187
|
└── server/ ← create-hono-server
|
|
186
188
|
```
|
|
187
189
|
|
|
188
190
|
```bash
|
|
189
|
-
bun create --no-install --no-git "@temir.ra/create-workspace" <
|
|
190
|
-
cd <
|
|
191
|
+
bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
|
|
192
|
+
cd <NEW_PACKAGE>
|
|
191
193
|
bun create --no-install --no-git "@temir.ra/hono-server" packages/server
|
|
192
194
|
bun install
|
|
193
195
|
```
|
|
@@ -201,20 +203,20 @@ Starting point for any HTTP backend. See the full documentation at [`@temir.ra/c
|
|
|
201
203
|
- Built-in endpoints: `/health`, `/buildinfo`, OpenAPI spec, Scalar UI
|
|
202
204
|
- `endpointGroups` - mounts additional `Hono` sub-apps; integration point for SPA packages
|
|
203
205
|
- `AppEnv` - exported, extensible context type; extend it to carry custom variables through the context
|
|
204
|
-
- `startServerHost(options)` - wraps `Bun.serve()`,
|
|
206
|
+
- `startServerHost(options)` - wraps `Bun.serve()`, graceful shutdown on `SIGINT`/`SIGTERM`
|
|
205
207
|
|
|
206
208
|
#### Server + SPA
|
|
207
209
|
|
|
208
210
|
```
|
|
209
|
-
<
|
|
211
|
+
<NEW_PACKAGE>/
|
|
210
212
|
└── packages/
|
|
211
213
|
├── server/ ← create-hono-server
|
|
212
214
|
└── spa/ ← create-hono-spa
|
|
213
215
|
```
|
|
214
216
|
|
|
215
217
|
```bash
|
|
216
|
-
bun create --no-install --no-git "@temir.ra/create-workspace" <
|
|
217
|
-
cd <
|
|
218
|
+
bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
|
|
219
|
+
cd <NEW_PACKAGE>
|
|
218
220
|
bun create --no-install --no-git "@temir.ra/hono-server" packages/server
|
|
219
221
|
bun create --no-install --no-git "@temir.ra/hono-spa" packages/spa
|
|
220
222
|
bun install
|
|
@@ -248,7 +250,7 @@ Starting point for a frontend SPA distributed as a Hono sub-app library. See the
|
|
|
248
250
|
#### Full-Stack with Shared Types
|
|
249
251
|
|
|
250
252
|
```
|
|
251
|
-
<
|
|
253
|
+
<NEW_PACKAGE>/
|
|
252
254
|
└── packages/
|
|
253
255
|
├── server/ ← create-hono-server
|
|
254
256
|
├── spa/ ← create-hono-spa
|
|
@@ -256,8 +258,8 @@ Starting point for a frontend SPA distributed as a Hono sub-app library. See the
|
|
|
256
258
|
```
|
|
257
259
|
|
|
258
260
|
```bash
|
|
259
|
-
bun create --no-install --no-git "@temir.ra/create-workspace" <
|
|
260
|
-
cd <
|
|
261
|
+
bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
|
|
262
|
+
cd <NEW_PACKAGE>
|
|
261
263
|
bun create --no-install --no-git "@temir.ra/hono-server" packages/server
|
|
262
264
|
bun create --no-install --no-git "@temir.ra/hono-spa" packages/spa
|
|
263
265
|
bun create --no-install --no-git "@temir.ra/ts-lib" packages/types
|
|
@@ -279,6 +281,30 @@ Add the types package as a dependency of both the server and the SPA, then reins
|
|
|
279
281
|
bun install
|
|
280
282
|
```
|
|
281
283
|
|
|
284
|
+
#### Skill
|
|
285
|
+
|
|
286
|
+
```
|
|
287
|
+
<NEW_PACKAGE>/
|
|
288
|
+
└── packages/
|
|
289
|
+
└── my-skill/ ← create-skill
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
|
|
294
|
+
cd <NEW_PACKAGE>
|
|
295
|
+
bun create --no-install --no-git "@temir.ra/skill" packages/my-skill
|
|
296
|
+
bun install
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
##### `create-skill`
|
|
300
|
+
|
|
301
|
+
Starting point for any LLM skill package. See the full documentation at [`@temir.ra/create-skill`](https://www.npmjs.com/package/@temir.ra/create-skill).
|
|
302
|
+
|
|
303
|
+
- `skill/skill.json` — the skill definition: `frontmatter` (slug, description) and `body` (name, purpose, activation conditions, instructions, examples, sections)
|
|
304
|
+
- `skill/` — typed schema, render helpers, and companion files (`assets/`, `references/`)
|
|
305
|
+
- `scripts/` — one build script per target platform; ships builders for Claude and OpenCode
|
|
306
|
+
- `dist/` — generated artifacts, one subdirectory per platform; deploy by copying `dist/<platform>/<slug>/` into the target AI tool's skill directory
|
|
307
|
+
|
|
282
308
|
# DevOps
|
|
283
309
|
|
|
284
310
|
```bash
|
package/buildinfo.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.3.0+1ee1e45
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { cpSync, readFileSync, renameSync, writeFileSync } from 'fs';
|
|
3
|
-
import { resolve
|
|
3
|
+
import { resolve } from 'path';
|
|
4
4
|
import { templatePath, changelogPath, buildinfoPath, readmePath } from './constants.js';
|
|
5
5
|
try {
|
|
6
6
|
const packageNameArgument = process.argv[2];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temir.ra/create-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Package scaffold with workspace support",
|
|
5
5
|
"author": "temir.ra",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,15 +27,14 @@
|
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"clean:dist": "rm -rf dist/",
|
|
30
|
-
"clean:tsbuildinfo": "rm -f tsconfig.build.tsbuildinfo",
|
|
30
|
+
"clean:tsbuildinfo": "rm -f tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
|
|
31
31
|
"clean": "bun run clean:dist && bun run clean:tsbuildinfo",
|
|
32
32
|
"prebuild": "bun run scripts/buildinfo.ts",
|
|
33
33
|
"tests": "bun test",
|
|
34
34
|
"build": "bun run build:lib && bun run build:cli-bundle",
|
|
35
35
|
"build:lib": "tsc --project tsconfig.build.json",
|
|
36
36
|
"build:cli-bundle": "bun build src/cli.ts --entry-naming \"[dir]/[name].bundle.[ext]\" --outdir dist --target node --format esm --minify --sourcemap=external",
|
|
37
|
-
"typecheck": "tsc --noEmit"
|
|
38
|
-
"dev": "bun run --watch src/dev.ts"
|
|
37
|
+
"typecheck": "tsc --noEmit"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
40
|
"@types/bun": "latest",
|
package/template/buildinfo.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.0.0
|