Skip to content

Commit

Permalink
fix issue template (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
shtyr-maxim committed Oct 25, 2023
1 parent e2b04fb commit c8b7d1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/controllers/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion template/.github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- BUGS: Please use this template -->
<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/%PACKAGE_NAME% -->
<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/%PACKAGE_NAME_SHORT% -->

**%PACKAGE_NAME% Version:** xxxxx

Expand Down
2 changes: 1 addition & 1 deletion template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c8b7d1c

Please sign in to comment.