Skip to content

Commit b59a4b7

Browse files
authored
chore: devcontainer (#203)
1 parent ef42dc1 commit b59a4b7

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:18",
3+
"hostRequirements": {
4+
"memory": "8gb"
5+
},
6+
"waitFor": "onCreateCommand",
7+
"updateContentCommand": "yarn install",
8+
"postCreateCommand": "",
9+
"postAttachCommand": "yarn storybook",
10+
"customizations": {
11+
"codespaces": {
12+
"openFiles": ["CONTRIBUTING.md"]
13+
},
14+
"vscode": {
15+
"settings": {
16+
"editor.formatOnSave": true
17+
},
18+
"extensions": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
19+
}
20+
},
21+
"portsAttributes": {
22+
"6006": {
23+
"label": "Storybook server",
24+
"onAutoForward": "openPreview"
25+
}
26+
},
27+
"forwardPorts": [6006]
28+
}

CONTRIBUTING.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Contributing
2+
3+
Thanks for wanting to make a contribution and wanting to improve this library for everyone! This repository uses Typescript so please continue to do so, you can always reach out in the repo or the [discord](https://pmnd.rs/discord). This is a guideline, use your initiative, if you don't think it makes sense to do a step in here, don't bother it's normally okay. we're chill.
4+
5+
## How to Contribute
6+
7+
1. Fork and clone the repo
8+
2. Run `yarn install` to install dependencies
9+
3. Create a branch for your PR with `git checkout -b pr-type/issue-number-your-branch-name`
10+
4. Let's get cooking! 👨🏻‍🍳🥓
11+
12+
You can also just [![Open in GitHub Codespaces](https://img.shields.io/static/v1?&message=Open%20in%20%20Codespaces&style=flat&colorA=000000&colorB=000000&label=GitHub&logo=github&logoColor=ffffff)](https://github.com/codespaces/new?template_repository=pmndrs%2Freact-postprocessing).
13+
14+
## Commit Guidelines
15+
16+
Be sure your commit messages follow this specification: https://www.conventionalcommits.org/en/v1.0.0-beta.4/
17+
18+
## Storybook
19+
20+
If you're adding a brand new feature, you need to make sure you add a storybook entry, here's a few tips:
21+
22+
- Keep the story simple & show the essence of the component, remember some people may be looking at using drei for the first time & it's important the stories are clear and concise.
23+
- Keep assets minimal (3D Models, textures) to avoid bloating the repository
24+
- If you think a more involved example is necessary, you can always add a codesandbox to the main README while keeping the story minimalistic
25+
26+
## Publishing
27+
28+
We use `semantic-release` to deploy the package. Because of this only certain commits will trigger the action of creating a release:
29+
30+
- `fix:` will create a `0.0.x` version
31+
- `feat:` will create a `0.x.0` version
32+
- `BREAKING CHANGE:` will create a `x.0.0` version
33+
34+
We release on `master` branch. Any other commits will not fire a release.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Storybook](https://img.shields.io/static/v1?message=Storybook&style=flat&colorA=000000&colorB=000000&label=&logo=storybook&logoColor=ffffff)](https://pmndrs.github.io/react-postprocessing)
55
[![Downloads](https://img.shields.io/npm/dt/@react-three/postprocessing.svg?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@react-three/postprocessing)
66
[![Discord Shield](https://img.shields.io/discord/740090768164651008?style=flat&colorA=000000&colorB=000000&label=discord&logo=discord&logoColor=ffffff)](https://discord.gg/ZZjjNvJ)
7+
[![Open in GitHub Codespaces](https://img.shields.io/static/v1?&message=Open%20in%20%20Codespaces&style=flat&colorA=000000&colorB=000000&label=GitHub&logo=github&logoColor=ffffff)](https://github.com/codespaces/new?template_repository=pmndrs%2Freact-postprocessing)
78

89
`react-postprocessing` is a
910
[postprocessing](https://github.com/pmndrs/postprocessing) wrapper for

0 commit comments

Comments
 (0)