Welcome, and thank you for taking time in contributing to esm.sh project!
You will need Golang(1.22+) and Deno(1.45+) installed on a macOS or Linux-based machine.
- Fork this repository to your own GitHub account.
- Clone the repository to your local device.
- Create a new branch (
git checkout -b BRANCH_NAME). - Change code then run tests
- Push your branch to GitHub after all tests passed.
- Make a pull request.
- Merge to master branch by our maintainers.
Create a config.json file in the project root directory following the example below:
More server options please check config.exmaple.jsonc.
make run/serverThen you can import React from "http://localhost:8080/react"
We use Deno to run all the integration testing cases. Make sure you have Deno installed on your computer.
# Run all tests
make test/server
# Run a specific test
make test/server dir=react-18To add a new integration test case, copy the test/.template directory and rename it to your case name.
# copy the testing template
cp -r test/.template test/test-case-name
# edit the test code
vi test/test-case-name/test.ts
# run the test
make test/server dir=test-case-name