Commit Graph

10 Commits

Author SHA1 Message Date
hykocx ca0fafe6ff docs: rewrite DEV.md with security guidelines and structure
Expand the development guide from a minimal overview into a
comprehensive reference covering:

- Code standards: single responsibility, control flow, input
  validation, promise handling, and variable scoping
- Security section: treat all external input as malicious, use
  path.join over string concatenation, no secrets in code
- Reorganize publication steps to include version bump before
  build/publish for a logical workflow
- Add project context note clarifying the scaffolding role of
  @zen/start
2026-04-13 15:19:41 -04:00
hykocx 59a33380df feat(icons): support PNG as fallback source for favicon generation
Add PNG source file detection in `make-favicon.js` so the script can
use either `favicon.svg` or `favicon.png` as input. Previously, only
SVG was supported, causing failures when no SVG was present.

- Introduce `detectSourceFile()` to check for SVG first, then PNG
- Rename variables to avoid shadowing (`pngPath` → `outPath`, loop var)
- Log detected source type for better visibility during generation
- Update generated `favicon.ico` accordingly
2026-04-13 13:23:05 -04:00
hykocx 3df841897d chore: remove deprecated instrumentationHook config and bump to v1.3.2
Remove the `experimental.instrumentationHook` option from the generated
`next.config.mjs` template, as it is no longer needed in newer versions
of Next.js. Bump package version from 1.3.1 to 1.3.2.
2026-04-12 19:02:13 -04:00
hykocx c4e23ae31d fix: remove screenshot reference from README template
Remove the screenshot image link from the generated README.md
template as it references a non-existent asset path that would
cause broken image links in new projects. Bump version to 1.3.1.
2026-04-12 17:03:47 -04:00
hykocx 7779f529ea docs: update README with scoped registry configuration
Separate the registry setup step from the CLI usage command,
making it clearer that the `@zen` registry only needs to be
configured once via `npm config set` before running `npx @zen/start`.
2026-04-12 17:01:21 -04:00
hykocx dd4abeda85 docs: add usage instructions with npx command to README 2026-04-12 16:59:53 -04:00
hykocx 4b02e5d51a chore: bump version from 1.0.0 to 1.3.0 2026-04-12 16:57:42 -04:00
hykocx e9d2f4d5d1 refactor(cli): improve output formatting and simplify init logic
Replace step-numbered logging with minimal ANSI-styled output
using `step`, `done`, and `fail` helpers. Consolidate redundant
README and package.json updates into a single block, remove
verbose inline comments, and simplify file creation by eliminating
unnecessary variable assignments.
2026-04-12 16:57:21 -04:00
hykocx fe84ec6a43 Initial commit 2026-04-12 16:53:58 -04:00
hykocx 48c2356383 Initial commit 2026-04-12 16:45:57 -04:00