Thank you for your interest in contributing to the ArConnect extension! Below are the guidelines to help you get started.
Important: Always work from the "development" branch when making contributions. This ensures your changes are based on the latest development version.
-
Clone the Repository: Clone this repository to your local machine.
-
Open Terminal: Navigate to the root directory of the project.
-
Install Dependencies: We use Yarn as our package manager. Run the following command to install the necessary dependencies:
yarn install
-
Build the extension:
- Build from Source: To build the extension for a specific target, run the build command followed by the target name. For example, to build for Chrome, use:
yarn build:chrome
- Development Mode: If you want to enable hot-code reloading, run:
yarn dev:chrome
-
Load the Extension:
- The compiled extension will be located in the
build
folder. - To load it in Chrome or Brave, open the extensions manager and click "Load unpacked" (ensure developer mode is enabled).
- Select the
dev-chrome-mv3
folder for development mode orbuild-chrome-mv3
for the production build.
- The compiled extension will be located in the
-
Code Formatting: Please adhere to the Prettier configuration provided. To format your code, run:
yarn fmt
-
Commit Messages: Follow the Conventional Commits guidelines for your commit messages. An example commit message is:
feat: add more cool stuff
For more details on best practices, refer to Conventional Commits.
We currently support English and Simplified Chinese.
Please place all UI text in messages.json
within the appropriate locale folder (located in /assets/_locales/
).
This project is built using Plasmo, TypeScript, and React Styled Components.
Thank you again for contributing! 😊