From 2cf0844404c9027ab2d6bd8642e5bbaf82cf347d Mon Sep 17 00:00:00 2001 From: Maksim Shtyr Date: Wed, 25 Oct 2023 17:37:53 +0300 Subject: [PATCH] fix issue template --- src/controllers/create.ts | 3 ++- template/.github/ISSUE_TEMPLATE.md | 2 +- template/README.md | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/controllers/create.ts b/src/controllers/create.ts index 78cbf97..66d1289 100644 --- a/src/controllers/create.ts +++ b/src/controllers/create.ts @@ -26,7 +26,8 @@ export async function create() { UTILS_VERSION: require('../../package.json').version, PACKAGE_VERSION: '0.0.1-beta.1', PACKAGE_NAME: packageName, - PACKAGE_NAME_ENCODED: encodeURIComponent(packageName) + PACKAGE_NAME_ENCODED: encodeURIComponent(packageName), + PACKAGE_NAME_SHORT: packageName.split('/').slice(-1)[0] }; copyTemplateFiles(TEMPLATE_DIR, TARGET, true, macros); diff --git a/template/.github/ISSUE_TEMPLATE.md b/template/.github/ISSUE_TEMPLATE.md index 1af8427..9657362 100644 --- a/template/.github/ISSUE_TEMPLATE.md +++ b/template/.github/ISSUE_TEMPLATE.md @@ -1,5 +1,5 @@ - + **%PACKAGE_NAME% Version:** xxxxx diff --git a/template/README.md b/template/README.md index 75cd811..b317271 100644 --- a/template/README.md +++ b/template/README.md @@ -43,7 +43,7 @@ You can use CDN with module loading handler in JS API on your page. Just use `mappable.import`: ```js -const pkg = await mappable.import('%PACKAGE_NAME%') +const pkg = await mappable.import('%PACKAGE_NAME%'); ``` By default `mappable.import` can load self modules.