cuHacking logocuHacking DevDocs

template

Template documentation page for creating new libraries.

📦 Overview

What it does

Provide a clear, concise overview of the purpose and capabilities of the library.

Key Features

Highlight the main features of the library in bullet points or brief descriptions.

How to use

Basic Usage Example

Show a minimal example of how to set up and use the library.


📖 API Reference

myAction Function

  • Description:
  • Parameters:
  • Return Type:

myThing Object

  • Properties
    • FirstProperty:

Error Handling

Explain how errors are thrown during validation and show example outputs for invalid variables.


🛠️ Commands

View all commands

To view all commands from the library's project.json, package.json and inheritted:

Terminal
pnpm nx show project <lib>

Focus library usage

To view/focus on all the apps & libraries which use this library:

Terminal
pnpm nx graph --focus <lib>

📝 Contributing

Best Practices

Code Formatting

Include instructions or links to code style guides, like Prettier/ESLint.

The library should be linted without any errors:

Terminal
pnpm nx run <lib>:lint

Testing

To run tests for this library:

Terminal
pnpm nx run <lib>:test

❓ FAQs

What happens if ...?

Provide an answer along with an example error message.

Can I add ...?

Show an example of adding more to the library.


🛑 Troubleshooting

Common Errors

Invalidity

Describe a common invalidity issue and how to fix it, along with an example error output.

Last updated on

On this page

Edit on GitHubMade with 🩶 for Hackers by Hackers