bottenderjs.github.io
bottenderjs.github.io copied to clipboard
The Bottender website
Bottender
This repo contains the source code and documentation for Bottender.
Getting started
Installation
- clone this repo to your local machine
-
yarn
to install the website's npm dependencies.
Running locally
-
yarn run dev
to start the dev server (powered by Gatsby) -
open http://localhost:8000
to open the site
Contributing
Create a branch
-
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 replacethe-name-of-my-branch
with a suitable name)
Make the change
- 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.
Test the change
- 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.
Push it
-
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 changes -
git push my-fork-name the-name-of-my-branch
- Make a pull-request
Troubleshooting
-
yarn reset
to clear the local cache -
rm -rf node_modules && yarn
to reinstall the dependencies