How do I use this repo?
- User
How do I use this repo?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
How do I use this repo?
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
To use the Vercel repository for development or contributing, follow these steps based on the provided context:
First, clone the Vercel repository to your local machine:
git clone https://github.com/vercel/vercel.git
cd vercel
The repository uses pnpm for dependency management. Ensure you have pnpm installed, then install the dependencies:
corepack enable
pnpm install
After installing dependencies, build the project:
pnpm build
Before making any changes, run the unit tests to ensure everything is working correctly:
pnpm test-unit
You can now make changes to the codebase. The CLI source code is located in the packages/cli directory. You can test your changes locally by running the CLI directly from the source code:
cd packages/cli
pnpm vercel <cli-commands...>
For example, to test the deploy command:
pnpm vercel deploy
If you need to run integration tests locally, ensure you have the appropriate credentials sourced in your shell:
Create an access token from the Vercel dashboard.
Grab your team ID from the Vercel dashboard.
Add these to your shell environment:
echo 'export VERCEL_TOKEN=<MY-TOKEN> VERCEL_TEAM_ID=<MY-TEAM-ID>' >> ~/.zshrc
Then, you can run integration tests for specific packages, such as next:
cd packages/next
pnpm test test/fixtures/00-server-build/index.test.js
After making changes, ensure all tests still pass:
pnpm test-unit
Once you're confident in your changes, open a pull request on the main repository. The pull request will be reviewed by maintainers, and tests will be checked by the continuous integration platform.
vercel devIf you're working on the vercel dev command, you can start the development server locally:
pnpm vercel dev
You can specify a port and other options:
pnpm vercel dev --listen 8080
If you want to test your changes against an existing project, you can deploy using the CLI:
pnpm vercel deploy
You can also specify additional options like environment variables, regions, etc.:
pnpm vercel deploy -e NODE_ENV=production
By following these steps, you can effectively use and contribute to the Vercel repository.