@temir.ra/create-workspace 0.2.0 → 0.2.2

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Version 0
2
2
 
3
+ ## 0.2.2
4
+
5
+ 1. Updated `README.md` to reflect the change in `create-hono-server@0.3.1` template.
6
+
7
+ ## 0.2.1
8
+
9
+ 1. Updated files from `ts-lib@0.6.3` template.
10
+
3
11
  ## 0.2.0
4
12
 
5
13
  1. Removed **AI Assistant Context** section from the `README.md` files.
package/README.md CHANGED
@@ -33,23 +33,23 @@ The following templates are available in this ecosystem:
33
33
 
34
34
  ```bash
35
35
  # placeholder:
36
- # <PACKAGE: <PACKAGE>
36
+ # <NEW_PACKAGE: <NEW_PACKAGE>
37
37
  # <@_VERSION: <@_VERSION>
38
38
 
39
39
  # identify the latest version of the template package as <@_VERSION.
40
40
  bun info "@temir.ra/create-workspace" version
41
41
  # create a new package from the template version
42
- bun create --no-install --no-git "@temir.ra/create-workspace<@_VERSION>" <PACKAGE>
42
+ bun create --no-install --no-git "@temir.ra/create-workspace<@_VERSION>" <NEW_PACKAGE>
43
43
 
44
44
  # or
45
45
 
46
46
  # clear package manager cache to ensure the latest template version is used
47
47
  bun pm cache rm
48
48
  # create a new package from the latest template version
49
- bun create --no-install --no-git "@temir.ra/create-workspace" <PACKAGE>
49
+ bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
50
50
 
51
51
  # dependencies must be installed manually
52
- cd <PACKAGE>
52
+ cd <NEW_PACKAGE>
53
53
  bun install
54
54
  ```
55
55
 
@@ -115,7 +115,7 @@ To extend the package into a monorepo, add a `workspaces` field to `package.json
115
115
  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
116
 
117
117
  ```
118
- <PACKAGE>/
118
+ <NEW_PACKAGE>/
119
119
  ├── package.json ← root
120
120
  └── packages/
121
121
  ├── pkg-a/
@@ -153,14 +153,14 @@ Scaffold the package first, add `workspaces` to `package.json`, then scaffold wo
153
153
  #### Library
154
154
 
155
155
  ```
156
- <package>/
156
+ <NEW_PACKAGE>/
157
157
  └── packages/
158
158
  └── my-lib/ ← create-ts-lib
159
159
  ```
160
160
 
161
161
  ```bash
162
- bun create --no-install --no-git "@temir.ra/create-workspace" <package>
163
- cd <package>
162
+ bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
163
+ cd <NEW_PACKAGE>
164
164
  bun create --no-install --no-git "@temir.ra/ts-lib" packages/my-lib
165
165
  bun install
166
166
  ```
@@ -180,14 +180,14 @@ Starting point for any package distributed via a registry. See the full document
180
180
  #### Server
181
181
 
182
182
  ```
183
- <package>/
183
+ <NEW_PACKAGE>/
184
184
  └── packages/
185
185
  └── server/ ← create-hono-server
186
186
  ```
187
187
 
188
188
  ```bash
189
- bun create --no-install --no-git "@temir.ra/create-workspace" <package>
190
- cd <package>
189
+ bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
190
+ cd <NEW_PACKAGE>
191
191
  bun create --no-install --no-git "@temir.ra/hono-server" packages/server
192
192
  bun install
193
193
  ```
@@ -201,20 +201,20 @@ Starting point for any HTTP backend. See the full documentation at [`@temir.ra/c
201
201
  - Built-in endpoints: `/health`, `/buildinfo`, OpenAPI spec, Scalar UI
202
202
  - `endpointGroups` - mounts additional `Hono` sub-apps; integration point for SPA packages
203
203
  - `AppEnv` - exported, extensible context type; extend it to carry custom variables through the context
204
- - `startServerHost(options)` - wraps `Bun.serve()`, default port 7200, graceful shutdown on SIGINT/SIGTERM
204
+ - `startServerHost(options)` - wraps `Bun.serve()`, graceful shutdown on `SIGINT`/`SIGTERM`
205
205
 
206
206
  #### Server + SPA
207
207
 
208
208
  ```
209
- <package>/
209
+ <NEW_PACKAGE>/
210
210
  └── packages/
211
211
  ├── server/ ← create-hono-server
212
212
  └── spa/ ← create-hono-spa
213
213
  ```
214
214
 
215
215
  ```bash
216
- bun create --no-install --no-git "@temir.ra/create-workspace" <package>
217
- cd <package>
216
+ bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
217
+ cd <NEW_PACKAGE>
218
218
  bun create --no-install --no-git "@temir.ra/hono-server" packages/server
219
219
  bun create --no-install --no-git "@temir.ra/hono-spa" packages/spa
220
220
  bun install
@@ -248,7 +248,7 @@ Starting point for a frontend SPA distributed as a Hono sub-app library. See the
248
248
  #### Full-Stack with Shared Types
249
249
 
250
250
  ```
251
- <package>/
251
+ <NEW_PACKAGE>/
252
252
  └── packages/
253
253
  ├── server/ ← create-hono-server
254
254
  ├── spa/ ← create-hono-spa
@@ -256,8 +256,8 @@ Starting point for a frontend SPA distributed as a Hono sub-app library. See the
256
256
  ```
257
257
 
258
258
  ```bash
259
- bun create --no-install --no-git "@temir.ra/create-workspace" <package>
260
- cd <package>
259
+ bun create --no-install --no-git "@temir.ra/create-workspace" <NEW_PACKAGE>
260
+ cd <NEW_PACKAGE>
261
261
  bun create --no-install --no-git "@temir.ra/hono-server" packages/server
262
262
  bun create --no-install --no-git "@temir.ra/hono-spa" packages/spa
263
263
  bun create --no-install --no-git "@temir.ra/ts-lib" packages/types
package/buildinfo.txt CHANGED
@@ -1 +1 @@
1
- 0.2.0+19ecc29
1
+ 0.2.2+181fb6a
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, basename } from 'path';
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.2.0",
3
+ "version": "0.2.2",
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",
@@ -1 +0,0 @@
1
- 0.0.0