create-jst 0.4.17 → 0.4.19

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/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # create-jst
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/create-jst?style=flat-square)](https://www.npmjs.com/package/create-jst)
4
+ [![CI](https://img.shields.io/github/actions/workflow/status/jst-stack/create-jst/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/jst-stack/create-jst/actions/workflows/ci.yml)
5
+ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/jst-stack/create-jst/badge)](https://scorecard.dev/viewer/?uri=github.com/jst-stack/create-jst)
6
+
3
7
  Create a web application from the [JST](https://github.com/jst-stack/jst) template.
4
8
 
5
9
  ```bash
@@ -27,3 +31,7 @@ npx --package=create-jst jst migrate --from 0.3.0 --to 0.4.0
27
31
  ```
28
32
 
29
33
  Migrations reject unsupported paths and customized source shapes before writing. Applied files are restored if the project quality gate fails.
34
+
35
+ ## Contributing and support
36
+
37
+ Use [JST Discussions](https://github.com/jst-stack/jst/discussions) for usage questions. Report reproducible CLI defects through this repository's issue form. Contributions follow the organization [contribution guide](https://github.com/jst-stack/.github/blob/main/CONTRIBUTING.md) and [governance](https://github.com/jst-stack/.github/blob/main/GOVERNANCE.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jst",
3
- "version": "0.4.17",
3
+ "version": "0.4.19",
4
4
  "description": "Create a web application from the JST template.",
5
5
  "type": "module",
6
6
  "packageManager": "npm@11.6.2",
@@ -31,6 +31,14 @@
31
31
  "url": "https://github.com/jst-stack/create-jst/issues"
32
32
  },
33
33
  "homepage": "https://github.com/jst-stack/jst#readme",
34
+ "keywords": [
35
+ "architecture",
36
+ "create-app",
37
+ "react",
38
+ "ssr",
39
+ "starter",
40
+ "typescript"
41
+ ],
34
42
  "license": "MIT",
35
43
  "dependencies": {
36
44
  "@clack/prompts": "^1.8.1",
@@ -3,7 +3,7 @@ export const PRIMARY_COLORS = ['dark', 'gray', 'red', 'pink', 'grape', 'violet',
3
3
  export const PACKAGE_MANAGERS = ['npm', 'pnpm']
4
4
  export const STYLE_LANGUAGES = ['css', 'scss']
5
5
  export const EXAMPLES = ['clean', 'showcase']
6
- export const TEMPLATE_SOURCE = 'jst-stack/jst#v0.4.15'
6
+ export const TEMPLATE_SOURCE = 'jst-stack/jst#v0.4.18'
7
7
  export const SHOWCASE_SOURCE = 'jst-stack/jst-showcase#0956075b116abc85d0ad9aacc2f964d0d2672968'
8
8
 
9
9
  export function buildProjectSpecification(input) {
@@ -54,7 +54,7 @@ export function validateProjectSpecification(specification) {
54
54
  }
55
55
 
56
56
  export function normalizePackageName(value) {
57
- return value.toLowerCase().replace(/[^a-z0-9._-]+/g, '-').replace(/^-+|-+$/g, '') || 'jst-app'
57
+ return value.toLowerCase().replace(/[^a-z0-9._-]+/g, '-').replace(/^[^a-z0-9]+|[^a-z0-9]+$/g, '') || 'jst-app'
58
58
  }
59
59
 
60
60
  export function toTitle(value) {