From 77bb8bf22e44110c16951e0f0849d8691327fa48 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 15 Apr 2025 15:53:34 +0000 Subject: [PATCH] feat(config/template): Add assetbrokerUrl and legalUrl fields to module config and update website template to supply these values --- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- ts/classes.gitzoneconfig.ts | 2 ++ ts/mod_format/format.templates.ts | 6 +++++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index bc908e9..f1695db 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-04-15 - 1.15.0 - feat(config/template) +Add assetbrokerUrl and legalUrl fields to module config and update website template to supply these values + +- Added assetbrokerUrl and legalUrl properties in ts/classes.gitzoneconfig.ts +- Updated ts/mod_format/format.templates.ts to pass assetbrokerUrl and legalUrl to website template + ## 2025-04-15 - 1.14.1 - fix(package.json) Add packageManager field to specify pnpm version for consistent package management diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 36d1217..c0773c8 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: '1.14.1', + version: '1.15.0', 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.' } diff --git a/ts/classes.gitzoneconfig.ts b/ts/classes.gitzoneconfig.ts index c93715b..2ee3257 100644 --- a/ts/classes.gitzoneconfig.ts +++ b/ts/classes.gitzoneconfig.ts @@ -16,6 +16,8 @@ export interface IGitzoneConfigData { npmPackageName: string; license: string; projectDomain: string; + assetbrokerUrl: string; + legalUrl: string; }; copy: { [key: string]: string }; npmciOptions: { diff --git a/ts/mod_format/format.templates.ts b/ts/mod_format/format.templates.ts index 0d63694..2e02fce 100644 --- a/ts/mod_format/format.templates.ts +++ b/ts/mod_format/format.templates.ts @@ -38,7 +38,7 @@ export const run = async (project: Project) => { case 'website': const ciTemplateDocker = await templateModule.getTemplate('ci_docker'); await ciTemplateDocker.writeToDisk(paths.cwd); - logger.log('info', 'Updated .gitlabci.yml!'); + logger.log('info', 'Updated CI/CD config files!'); // lets care about docker const dockerTemplate = await templateModule.getTemplate('dockerfile_service'); @@ -57,6 +57,10 @@ export const run = async (project: Project) => { // update html if (project.gitzoneConfig.data.projectType === 'website') { const websiteUpdateTemplate = await templateModule.getTemplate('website_update'); + websiteUpdateTemplate.supplyVariables({ + assetbrokerUrl: project.gitzoneConfig.data.module.assetbrokerUrl, + legalUrl: project.gitzoneConfig.data.module.legalUrl, + }) await websiteUpdateTemplate.writeToDisk(paths.cwd); logger.log('info', `Updated html for website!`); } else if (project.gitzoneConfig.data.projectType === 'service') {