diff options
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'); |