From 863c8d0f6a7e23dbafaca69e6702870957488e8f Mon Sep 17 00:00:00 2001 From: Corentin Thomasset Date: Wed, 29 Mar 2023 22:43:51 +0200 Subject: [PATCH] refactor(new-tool-script): added new tool creation script in package.json --- README.md | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 98784fd1..bc731489 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index e725473e..db22c78a 100644 --- a/package.json +++ b/package.json @@ -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": {