Contributions are always welcome, no matter how large or small. Before contributing, please read the code of conduct.
Before starting contributing we recommend reading the following guides:
For avoiding situations than two contributors started resolving the same issue, recommending:
- Make yourself assignee at issue, or, if you haven't rights for this, write a comment at the issue about you started making.
- Move issue to "In Progress" column at next board.
Feel free to discuss any problem at the #development channel on our Spectrum.
- Install Node.js >= 8 and yarn.
- Install webpack & dependencies:
yarn global add webpack webpack-cli webpack-dev-server
- Clone repo:
git clone [email protected]:react-figma/react-figma.git
- Go to directory:
cd react-figma
- Install dependencies:
yarn
- Change directory to example directory:
cd /examples/<example dir>
- Run webpack: "npm run webpack:watch"
- Go to Figma dashboard (icon with four squares)
- Click
Plugins
- Click to plus icon beside
Development
title - Click
Click to choose a manifest.json file
button - Select
/examples/<example dir>/manifest.json
file
- Open or create new document
- Select Plugins -> Developing ->
<plugin name>
at the menu
- TypeScript:
npm run tsc
- Jest:
npm run test
Before commit pre-commit hook will be launched. It runs prettier and linting/tests.
- Check linting/tests
- Check project is can be built
npm run build
- Make Pull Request with your changes.
- Bump version in
package.json
andsrc/renderer.tsx
- Create new release/new tag on GitHub named
vx.y.z
wherex.y.z
is new version number