feat(templates): Updated and added new TypeScript template files for npm projects
This commit is contained in:
parent
08e9849116
commit
68546939ca
8
assets/templates/npm/ts/paths.ts
Normal file
8
assets/templates/npm/ts/paths.ts
Normal file
@ -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),
|
||||||
|
'../'
|
||||||
|
);
|
12
assets/templates/npm/ts/plugins.ts
Normal file
12
assets/templates/npm/ts/plugins.ts
Normal file
@ -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 };
|
@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
fileName: {{module.name}}.plugins.ts
|
|
||||||
---
|
|
||||||
const removeme = {};
|
|
||||||
export {
|
|
||||||
removeme
|
|
||||||
}
|
|
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# 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)
|
## 2025-02-25 - 1.12.8 - fix(metadata)
|
||||||
Updated package and npmextra json description and keywords for enhanced development workflow clarity
|
Updated package and npmextra json description and keywords for enhanced development workflow clarity
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/cli',
|
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.'
|
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.'
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user