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 repogit pull origin source
to ensure you have the latest main codegit checkout -b the-name-of-my-branch
to create a branch (remember to replacethe-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"
(replacingMy message
with a commit message, such asFixed header logo on Android
) to stage and commit your changesgit push my-fork-name the-name-of-my-branch
- Make a pull-request
yarn reset
to clear the local cacherm -rf node_modules && yarn
to reinstall the dependencies