-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Contributing to Synpress | ||
|
||
This guide will help you set up Synpress for local development. | ||
|
||
## Prerequisites | ||
|
||
Before you begin, ensure you have: | ||
- Node.js (v20 or higher) | ||
- pnpm (v9 or higher) | ||
- Git | ||
|
||
## First Setup | ||
|
||
1. Clone the repository: | ||
```bash | ||
git clone https://github.com/Synthetixio/synpress.git | ||
cd synpress | ||
``` | ||
|
||
2. Install dependencies: | ||
```bash | ||
pnpm install | ||
``` | ||
|
||
3. Build the project: | ||
```bash | ||
pnpm build | ||
``` | ||
|
||
## Development Workflow | ||
|
||
1. Create a new branch for your changes: | ||
```bash | ||
git checkout -b feature/your-feature-name | ||
``` | ||
|
||
2. Make your changes and add tests (e2e and unit tests if needed): | ||
```bash | ||
pnpm test | ||
``` | ||
|
||
3. Format and lint your code: | ||
```bash | ||
pnpm lint | ||
``` | ||
|
||
4. Commit your changes using [gitmoji](https://gitmoji.dev/) convention: | ||
```bash | ||
git add . | ||
git commit -m "✨ feat: Add new feature" | ||
``` | ||
|
||
5. Push your changes and create a pull request: | ||
```bash | ||
git push origin feature/your-feature-name | ||
``` | ||
|
||
## Project Structure | ||
|
||
- `release/` - Main Synpress package | ||
- `packages/` - Core packages | ||
- `cache/` - Browser state caching functionality | ||
- `core/` - Core functionality | ||
- `tsconfig/` - Shared TypeScript configuration | ||
- `wallets/` - Wallet integrations | ||
- `metamask/` - MetaMask integration | ||
- `ethereum-wallet-mock/` - Ethereum Wallet Mock integration | ||
- `docs/` - Documentation website | ||
- `examples/` - Example projects | ||
|
||
## Need Help? | ||
|
||
Join our [Discord](https://discord.gg/XhZKSRGtWc) community for support and discussions. |