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.