Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Latest commit

 

History

History
68 lines (45 loc) · 2.09 KB

CONTRIBUTING.md

File metadata and controls

68 lines (45 loc) · 2.09 KB

Contributing

Thank you for your interest in contributing to Peeky! 🐈 Please read this guide to help you get started.

Local setup

Before contributing code, you need to setup Peeky locally on your computer.

  1. Clone this repo
  2. Peeky uses pnpm as package mananger, so make sure you have it installed
  3. Install dependencies with pnpm i

It's recommended to use Node 16+.

There is playground folder to test your changes in the ./examples/demo folder.

Watch mode

This script will build and watch all the peeky packages:

pnpm run watch

Build

This script will build all peeky packages:

pnpm run build

Tests & Linting

Before creating a pull request, make sure everything checks!

pnpm run lint
pnpm run test

Peeky uses Peeky for unit tests! You can create tests by adding *.spec.ts files in the source code.

Docs

The Peeky documentation uses Vitepress. You can run the docs site locally with this script:

pnpm run docs:dev

You can edit docs files in the ./docs folder.

Packages

This repo is a monorepo with multiple packages located in the ./packages folder.

Package Description Folder
@peeky/cli Terminal Commands packages/peeky-cli
@peeky/client-dist Built client files served by the server packages/peeky-client-dist
@peeky/client Client Vue 3 app (source) packages/peeky-client
@peeky/config Config types & utils packages/peeky-config
@peeky/eslint-plugin ESLint plugin to lint test files packages/peeky-eslint-plugin
@peeky/runner Core test runner (includes Vite) packages/peeky-runner
@peeky/server GraphQL API server packages/peeky-server
@peeky/test Main package to install by the user packages/peeky-test
@peeky/utils Common utils packages/peeky-utils