This repo contains the source code and documentation for Bottender.
- clone this repo to your local machine
- yarn to install the website's npm dependencies.
- yarn run dev to start the dev server (powered by Gatsby)
- open http://localhost:8000 to open the site
- git checkout source in your local repo
- git pull origin source to ensure you have the latest main code
- git checkout -b the-name-of-my-branch to create a branch (remember to replace the-name-of-my-branch with a suitable name)
- Changes to React components in src will hot-reload
- Changes to markdown files in content will hot-reload
- If working with plugins, you may need to remove the .cache directory and restart the server.
- Run yarn run lint from the project root. Make sure it pass the check.
- If possible, test any visual changes in all latest version of common browsers, on both desktop and mobile.
- git add -A && git commit -m "My message" (replacing My message with a commit message, such as Fixed header logo on Android) to stage and commit your changes
- git push my-fork-name the-name-of-my-branch
- Make a pull-request
- yarn reset to clear the local cache
- rm -rf node_modules && yarn to reinstall the dependencies