mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-24 02:02:35 -04:00
docs: added new tool creation procedure
This commit is contained in:
parent
668625c6da
commit
81778834e6
15
README.md
15
README.md
@ -14,6 +14,12 @@ You have an idea of a tool? Submit a [feature request](https://github.com/Corent
|
||||
|
||||
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin).
|
||||
|
||||
### Node version
|
||||
Ensure you have the correct node/npm version
|
||||
```sh
|
||||
nvm use
|
||||
```
|
||||
|
||||
### Project Setup
|
||||
|
||||
```sh
|
||||
@ -44,6 +50,15 @@ npm run test
|
||||
npm run lint
|
||||
```
|
||||
|
||||
### Create a new tool
|
||||
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
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
## Credits
|
||||
|
||||
Coded with ❤️ by [Corentin Thomasset](//corentin-thomasset.fr).
|
||||
|
Loading…
x
Reference in New Issue
Block a user