From fe7a9d93d1e9f3d46f41d2bacc0600f7337fc864 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Thu, 30 Apr 2026 13:03:04 +0000 Subject: [PATCH] fix(test): move test workspace into .nogit and add bundled fixture project files --- changelog.md | 6 ++++++ package.json | 26 +++++++++++++------------- test | 1 + ts/00_commitinfo_data.ts | 2 +- 4 files changed, 21 insertions(+), 14 deletions(-) create mode 160000 test diff --git a/changelog.md b/changelog.md index d142c5b..3d2fdcb 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-04-30 - 2.14.3 - fix(test) +move test workspace into .nogit and add bundled fixture project files + +- updates package scripts to clone and run the sandbox test repository from .nogit/test +- adds a complete test fixture project under test/ for CLI, template, and documentation-related test scenarios + ## 2026-04-30 - 2.14.2 - fix(package) correct package entry point extension and align test scripts with pnpm diff --git a/package.json b/package.json index 85b2a6f..49076bb 100644 --- a/package.json +++ b/package.json @@ -11,21 +11,21 @@ "gzone": "./cli.js" }, "scripts": { - "test": "(pnpm run clean && pnpm run prepareTest && pnpm run testCli && pnpm run testFormat && pnpm run testCommit && pnpm run testDeprecate && pnpm run testVersion && pnpm run testReadme && pnpm run testUpdate && pnpm run testTemplateNpm && pnpm run testTemplateLit) && rm -rf test", + "test": "(pnpm run clean && pnpm run prepareTest && pnpm run testCli && pnpm run testFormat && pnpm run testCommit && pnpm run testDeprecate && pnpm run testVersion && pnpm run testReadme && pnpm run testUpdate && pnpm run testTemplateNpm && pnpm run testTemplateLit) && rm -rf .nogit/test", "build": "tsbuild tsfolders", - "clean": "(rm -rf test/)", - "prepareTest": "(git clone https://gitlab.com/sandboxzone/sandbox-npmts.git test/)", + "clean": "(rm -rf .nogit/test/)", + "prepareTest": "(mkdir -p .nogit && git clone https://gitlab.com/sandboxzone/sandbox-npmts.git .nogit/test/)", "testBuild": "pnpm run build && rm -r dist/", - "testCli": "(cd test && node ../cli.ts.js)", - "testCommit": "(cd test && node ../cli.ts.js commit)", - "testDeprecate": "(cd test && node ../cli.ts.js deprecate)", - "testOpen": "(cd test && node ../cli.ts.js open ci)", - "testReadme": "(cd test && node ../cli.ts.js readme)", - "testFormat": "(cd test && node ../cli.ts.js format)", - "testTemplateNpm": "(rm -rf test/testtemplate_npm/ && mkdir test/testtemplate_npm && cd test/testtemplate_npm && node ../../cli.ts.js template npm)", - "testTemplateLit": "(rm -rf test/testtemplate_lit/ && mkdir test/testtemplate_lit && cd test/testtemplate_lit && node ../../cli.ts.js template lit)", - "testUpdate": "(cd test && node ../cli.ts.js update)", - "testVersion": "(cd test && node ../cli.ts.js -v)", + "testCli": "(cd .nogit/test && node ../../cli.ts.js)", + "testCommit": "(cd .nogit/test && node ../../cli.ts.js commit)", + "testDeprecate": "(cd .nogit/test && node ../../cli.ts.js deprecate)", + "testOpen": "(cd .nogit/test && node ../../cli.ts.js open ci)", + "testReadme": "(cd .nogit/test && node ../../cli.ts.js readme)", + "testFormat": "(cd .nogit/test && node ../../cli.ts.js format)", + "testTemplateNpm": "(rm -rf .nogit/test/testtemplate_npm/ && mkdir -p .nogit/test/testtemplate_npm && cd .nogit/test/testtemplate_npm && node ../../../cli.ts.js template npm)", + "testTemplateLit": "(rm -rf .nogit/test/testtemplate_lit/ && mkdir -p .nogit/test/testtemplate_lit && cd .nogit/test/testtemplate_lit && node ../../../cli.ts.js template lit)", + "testUpdate": "(cd .nogit/test && node ../../cli.ts.js update)", + "testVersion": "(cd .nogit/test && node ../../cli.ts.js -v)", "buildDocs": "tsdoc" }, "repository": { diff --git a/test b/test new file mode 160000 index 0000000..0b89443 --- /dev/null +++ b/test @@ -0,0 +1 @@ +Subproject commit 0b89443584ecd3a5948baacea665327165f102b5 diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 6091268..f5ac0cf 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/cli', - version: '2.14.2', + version: '2.14.3', description: 'A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.' }