refactor(new-tool-script): added new tool creation script in package.json

This commit is contained in:
Corentin Thomasset 2023-03-29 22:43:51 +02:00
parent 9b4f7727f2
commit 863c8d0f6a
No known key found for this signature in database
GPG key ID: DBD997E935996158
2 changed files with 2 additions and 1 deletions

View file

@ -69,7 +69,7 @@ pnpm lint
To create a new tool, there is a script that generate the boilerplate of the new tool, simply run:
```sh
node scripts/create-tool.mjs my-tool-name
pnpm run script:create-new-tool my-tool-name
```
It will create a directory in `src/tools` with the correct files, and a the import in `src/tools/index.ts`. You will just need to add the inported tool in the proper category and develop the tool.

View file

@ -28,6 +28,7 @@
"coverage": "vitest run --coverage",
"typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore",
"script:create-new-tool": "node scripts/create-tool.mjs",
"release": "standard-version"
},
"dependencies": {