feat(tools): new badge for recently created tools

This commit is contained in:
Corentin Thomasset 2022-06-01 23:52:21 +02:00
parent ac89490794
commit 11720e6cde
No known key found for this signature in database
GPG key ID: DBD997E935996158
33 changed files with 320 additions and 100 deletions

View file

@ -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');