@temir.ra/create-workspace 0.2.2 → 0.3.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 +9 -0
- package/README.md +28 -2
- package/buildinfo.txt +1 -1
- package/dist/cli.bundle.js +4 -0
- package/dist/cli.bundle.js.map +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Version 0
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
1. Fixed create commands in the **Quick Start** section of the `README.md` to reflect the create-template conventions.
|
|
6
|
+
2. Fixed published package contents.
|
|
7
|
+
|
|
8
|
+
## 0.3.0
|
|
9
|
+
|
|
10
|
+
1. Added `create-skill` template as part of the templates ecosystem.
|
|
11
|
+
|
|
3
12
|
## 0.2.2
|
|
4
13
|
|
|
5
14
|
1. Updated `README.md` to reflect the change in `create-hono-server@0.3.1` template.
|
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)
|
|
@@ -39,14 +41,14 @@ The following templates are available in this ecosystem:
|
|
|
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/
|
|
44
|
+
bun create --no-install --no-git "@temir.ra/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/
|
|
51
|
+
bun create --no-install --no-git "@temir.ra/workspace" <NEW_PACKAGE>
|
|
50
52
|
|
|
51
53
|
# dependencies must be installed manually
|
|
52
54
|
cd <NEW_PACKAGE>
|
|
@@ -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.1+96a0e4d
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{cpSync as s,readFileSync as f,renameSync as u,writeFileSync as P}from"fs";import{resolve as t}from"path";import{resolve as o}from"path";import{fileURLToPath as h}from"url";var d=new URL("../",import.meta.url),n=o(h(d)),m=o(n,"template/"),p=o(n,"CHANGELOG.md"),g=o(n,"buildinfo.txt"),l=o(n,"README.md");try{let r=process.argv[2];if(!r)throw Error("Package name argument is required. Usage: `create-workspace <package-name>`");let a=r.replace(/\\/g,"/"),e=t(process.cwd(),a);s(m,e,{recursive:!0}),s(p,t(e,"CHANGELOG-template.md")),s(g,t(e,"buildinfo-template.txt")),s(l,t(e,"README-template.md"));let c=t(e,"package.json"),i=JSON.parse(f(c,"utf-8"));i.name=a,P(c,JSON.stringify(i,null,2)),u(t(e,"gitignore"),t(e,".gitignore")),console.log(`Template has been successfully instantiated at '${e}' with package name '${a}'.`)}catch(r){let a=r instanceof Error?r:Error(String(r));console.error("Error:",a.message),process.exit(1)}
|
|
3
|
+
|
|
4
|
+
//# debugId=33D8671BE383296E64756E2164756E21
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["..\\src\\cli.ts", "..\\src\\constants.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"#!/usr/bin/env node\r\n\r\nimport { cpSync, readFileSync, renameSync, writeFileSync } from 'fs';\r\nimport { resolve } from 'path';\r\nimport {\r\n templatePath,\r\n changelogPath,\r\n buildinfoPath,\r\n readmePath\r\n} from './constants.js';\r\n\r\n\r\ntry {\r\n\r\n const packageNameArgument = process.argv[2];\r\n if (!packageNameArgument) throw new Error('Package name argument is required. Usage: `create-workspace <package-name>`');\r\n const packageName = packageNameArgument.replace(/\\\\/g, '/');\r\n\r\n const destinationPath = resolve(process.cwd(), packageName);\r\n\r\n cpSync(templatePath, destinationPath, { recursive: true });\r\n cpSync(changelogPath, resolve(destinationPath, 'CHANGELOG-template.md'));\r\n cpSync(buildinfoPath, resolve(destinationPath, 'buildinfo-template.txt'));\r\n cpSync(readmePath, resolve(destinationPath, 'README-template.md'));\r\n\r\n const packageJsonPath = resolve(destinationPath, 'package.json');\r\n const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));\r\n packageJson.name = packageName;\r\n writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));\r\n\r\n renameSync(resolve(destinationPath, 'gitignore'), resolve(destinationPath, '.gitignore'));\r\n\r\n console.log(`Template has been successfully instantiated at '${destinationPath}' with package name '${packageName}'.`);\r\n\r\n}\r\ncatch (error) {\r\n const err = error instanceof Error ? error : new Error(String(error));\r\n console.error('Error:', err.message);\r\n process.exit(1);\r\n}\r\n",
|
|
6
|
+
"import { resolve } from 'path';\r\nimport { fileURLToPath } from 'url';\r\n\r\n\r\nexport const packageUrl: URL = new URL('../', import.meta.url);\r\nexport const packagePath: string = resolve(fileURLToPath(packageUrl));\r\n\r\nexport const templatePath: string = resolve(packagePath, 'template/');\r\n\r\nexport const changelogPath: string = resolve(packagePath, 'CHANGELOG.md');\r\nexport const buildinfoPath: string = resolve(packagePath, 'buildinfo.txt');\r\nexport const readmePath: string = resolve(packagePath, 'README.md');\r\n"
|
|
7
|
+
],
|
|
8
|
+
"mappings": ";AAEA,iBAAS,kBAAQ,gBAAc,mBAAY,WAC3C,kBAAS,aCHT,kBAAS,aACT,wBAAS,YAGF,IAAM,EAAkB,IAAI,IAAI,MAAO,YAAY,GAAG,EAChD,EAA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