|
| 1 | +# Template: SolidJS Library |
| 2 | + |
| 3 | +Template for [SolidJS](https://www.solidjs.com/) library package. Bundling of the library is managed by [tsup](https://tsup.egoist.dev/). |
| 4 | + |
| 5 | +Other things configured include: |
| 6 | + |
| 7 | +- Bun (for dependency management and running scripts) |
| 8 | +- TypeScript |
| 9 | +- ESLint / Prettier |
| 10 | +- Solid Testing Library + Vitest (for testing) |
| 11 | +- Playground app using library |
| 12 | +- GitHub Actions (for all CI/CD) |
| 13 | + |
| 14 | +## Getting Started |
| 15 | + |
| 16 | +Some pre-requisites before install dependencies: |
| 17 | + |
| 18 | +- Install Node Version Manager (NVM) |
| 19 | + ```bash |
| 20 | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash |
| 21 | + ``` |
| 22 | +- Install Bun |
| 23 | + ```bash |
| 24 | + curl -fsSL https://bun.sh/install | bash |
| 25 | + ``` |
| 26 | + |
| 27 | +### Installing Dependencies |
| 28 | + |
| 29 | +```bash |
| 30 | +nvm use |
| 31 | +bun install |
| 32 | +``` |
| 33 | + |
| 34 | +### Local Development Build |
| 35 | + |
| 36 | +```bash |
| 37 | +bun start |
| 38 | +``` |
| 39 | + |
| 40 | +### Linting & Formatting |
| 41 | + |
| 42 | +```bash |
| 43 | +bun run lint # checks source for lint violations |
| 44 | +bun run format # checks source for format violations |
| 45 | + |
| 46 | +bun run lint:fix # fixes lint violations |
| 47 | +bun run format:fix # fixes format violations |
| 48 | +``` |
| 49 | + |
| 50 | +### Contributing |
| 51 | + |
| 52 | +The only requirements when contributing are: |
| 53 | + |
| 54 | +- You keep a clean git history in your branch |
| 55 | + - rebasing `main` instead of making merge commits. |
| 56 | +- Using proper commit message formats that adhere to [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) |
| 57 | + - Additionally, squashing (via rebase) commits that are not [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) |
| 58 | +- CI checks pass before merging into `main` |
0 commit comments