diff options
author | 2022-06-01 23:52:21 +0200 | |
---|---|---|
committer | 2022-06-02 00:11:49 +0200 | |
commit | 11720e6cdefc1da4bdd638415813b609840f8462 (patch) | |
tree | b647d77a2fe3cec6af3b81bf02ceb17e636d80b7 /scripts/create-tool.mjs | |
parent | ac89490794ee3c1c033859ffea31a962a13cc96d (diff) | |
download | it-tools-11720e6cdefc1da4bdd638415813b609840f8462.tar.gz it-tools-11720e6cdefc1da4bdd638415813b609840f8462.tar.zst it-tools-11720e6cdefc1da4bdd638415813b609840f8462.zip |
feat(tools): new badge for recently created tools
Diffstat (limited to 'scripts/create-tool.mjs')
-rw-r--r-- | scripts/create-tool.mjs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/create-tool.mjs b/scripts/create-tool.mjs index ecbd8c3..97b99b2 100644 --- a/scripts/create-tool.mjs +++ b/scripts/create-tool.mjs @@ -39,16 +39,16 @@ createToolFile( <style lang="less" scoped> </style> -` +`, ); createToolFile( `index.ts`, ` import { ArrowsShuffle } from '@vicons/tabler'; -import type { ITool } from './../Tool'; +import { defineTool } from '../tool'; -export const tool: ITool = { +export const tool = defineTool({ name: '${toolNameTitleCase}', path: '/${toolName}', description: '', @@ -56,7 +56,7 @@ export const tool: ITool = { component: () => import('./${toolName}.vue'), icon: ArrowsShuffle, }; -` +`, ); createToolFile(`${toolName}.service.ts`, ``); @@ -69,7 +69,7 @@ import { expect, describe, it } from 'vitest'; // describe('${toolName}', () => { // // }) -` +`, ); const toolsIndex = join(toolsDir, 'index.ts'); |