From 68546939ca820d415e5cacb6487710d22b92cf1c Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 28 Feb 2025 18:00:11 +0000 Subject: [PATCH] feat(templates): Updated and added new TypeScript template files for npm projects --- assets/templates/npm/ts/paths.ts | 8 ++++++++ assets/templates/npm/ts/plugins.ts | 12 ++++++++++++ assets/templates/npm/ts/some.plugins.ts | 7 ------- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- 5 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 assets/templates/npm/ts/paths.ts create mode 100644 assets/templates/npm/ts/plugins.ts delete mode 100644 assets/templates/npm/ts/some.plugins.ts diff --git a/assets/templates/npm/ts/paths.ts b/assets/templates/npm/ts/paths.ts new file mode 100644 index 0000000..d7ddaeb --- /dev/null +++ b/assets/templates/npm/ts/paths.ts @@ -0,0 +1,8 @@ +--- +fileName: paths.ts +--- +import * as plugins from './plugins.js'; +export const packageDir = plugins.path.join( + plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), + '../' +); \ No newline at end of file diff --git a/assets/templates/npm/ts/plugins.ts b/assets/templates/npm/ts/plugins.ts new file mode 100644 index 0000000..6a4c2a1 --- /dev/null +++ b/assets/templates/npm/ts/plugins.ts @@ -0,0 +1,12 @@ +--- +fileName: plugins.ts +--- +// native scope +import * as path from 'path'; + +export { path }; + +// @push.rocks scope +import * as smartpath from '@push.rocks/smartpath'; + +export { smartpath }; diff --git a/assets/templates/npm/ts/some.plugins.ts b/assets/templates/npm/ts/some.plugins.ts deleted file mode 100644 index 73cb960..0000000 --- a/assets/templates/npm/ts/some.plugins.ts +++ /dev/null @@ -1,7 +0,0 @@ ---- -fileName: {{module.name}}.plugins.ts ---- -const removeme = {}; -export { - removeme -} diff --git a/changelog.md b/changelog.md index 69679ad..de44fcb 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-02-28 - 1.13.0 - feat(templates) +Updated and added new TypeScript template files for npm projects + +- Added new paths.ts and plugins.ts template files for npm projects. +- Removed outdated some.plugins.ts template file. + ## 2025-02-25 - 1.12.8 - fix(metadata) Updated package and npmextra json description and keywords for enhanced development workflow clarity diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index b4825c5..aed1090 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.12.8', + version: '1.13.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.' }