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
yarnto install the website's npm dependencies.
Running locally
yarn run devto start the dev server (powered by Gatsby)open http://localhost:8000to open the site
Contributing
Create a branch
git checkout sourcein your local repogit pull origin sourceto ensure you have the latest main codegit checkout -b the-name-of-my-branchto create a branch (remember to replacethe-name-of-my-branchwith a suitable name)
Make the change
- Changes to React components in
srcwill hot-reload - Changes to markdown files in
contentwill hot-reload - If working with plugins, you may need to remove the
.cachedirectory and restart the server.
Test the change
- Run
yarn run lintfrom 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 messagewith 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
Troubleshooting
yarn resetto clear the local cacherm -rf node_modules && yarnto reinstall the dependencies