@ganxing/utils
v0.0.4
Published
A comprehensive collection of personal programming utilities by Gan-Xing.
Downloads
7
Readme
Utils
Welcome to utils, a comprehensive collection of personal programming utilities by Gan-Xing. This project is designed to be a versatile toolkit for various development needs, encompassing testing, linting, formatting, and documentation generation.
Getting Started
1.Clone the repository
git clone <https://github.com/Gan-Xing/utils.git>
cd utils
2.Set up for standalone use
If you plan to use utils outside the Turborepo environment, you'll need to replace the existing package.json with package.jsonc, which includes the necessary development dependencies.
pnpm run setup
This will rename package.jsonc to package.json, ensuring that all development dependencies are available.
3.Install the dependencies
Make sure you have Node.js (v18.0.0 or newer) and npm (v8.0.0 or newer) installed. This project recommends using pnpm for managing dependencies, although npm or yarn would work just fine.
pnpm install
Scripts
Here are some scripts provided to help you manage the project:
- Testing: Run tests using Jest.
pnpm run test
- Linting: Check your code for stylistic and programming errors with ESLint.
pnpm run lint
- Formatting: Format your code with Prettier.
pnpm run format
- Check Formatting: Check if your code is well formatted.
pnpm run check-format
- Cleaning: Delete the `dist` directory to clean old build outputs.
pnpm run clean
- Documentation: Generate documentation for your code with TypeDoc.
pnpm run docs
- Building: Build your project with Vite.
pnpm run build
- Committing Changes: We use Commitizen for formatted commit messages.
pnpm run commit
This command will prompt you for details about the commit which will then be formatted according to conventional commit standards.
Committing Guidelines
We follow the Conventional Commits guidelines for commit messages. When you're ready to commit your changes, run `pnpm run commit` and follow the prompts to generate a formatted commit message.
Documentation
The generated documentation will be placed in the `./docs` directory, which you can browse locally or host it on a web server.
Issues and Feedback
For bugs reporting, feature requests or any other feedback, please visit GitHub Issues.
License
This project is licensed under the ISC license. For more information, see the LICENSE file in the repository.
Thank you for checking out utils. Happy coding!