Skip to content

Commit 90db7df

Browse files
committed
chore: add CONTRIBUTING.md
1 parent 71bc4fb commit 90db7df

File tree

3 files changed

+60
-92
lines changed

3 files changed

+60
-92
lines changed

CONTRIBUTING.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
## How to contribute to Rocketact
2+
3+
### Do you find a bug?
4+
5+
- **Ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/jdf2e/rocketact/issues).
6+
- If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/jdf2e/rocketact/issues/new/choose). **Be sure to include a title and clear description, as much relevant information as possible.**
7+
8+
### Do you want to contribute to the source code?
9+
10+
Use Node >= 10 version as **development environment**.
11+
12+
#### Prepare workspace
13+
14+
```bash
15+
git clone https://github.com/jdf2e/rocketact.git
16+
cd rocketact
17+
yarn && yarn bootstrap
18+
cd packages/rocketact-scripts/test/fixture/simple/ && yarn && cd -
19+
```
20+
21+
#### Build
22+
23+
```bash
24+
yarn build
25+
# or build a specific package
26+
yarn build -- --scope rockeatct
27+
```
28+
29+
#### Running tests
30+
31+
```bash
32+
yarn test
33+
# or start watch mode
34+
yarn test -- --watch
35+
```
36+
37+
#### Commit changes
38+
39+
```bash
40+
yarn commit
41+
```
42+
43+
### Do you want to contribute to the Rocketact documentation?
44+
45+
Rocketact uses [Docusaurus](https://docusaurus.io/) to maintain its [documentation](https://rocketact.js.org).
46+
47+
If you want to preview the website locally, you can:
48+
49+
```bash
50+
cd docusaurus/website
51+
yarn
52+
yarn start
53+
```
54+
55+
Changes made to the documentation files will be reloaded into browser.
56+
57+
-----
58+
<p align="center">❤️❤️❤️ Thanks! ❤️❤️❤️</p>

README.md

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -81,49 +81,4 @@ npm run build
8181

8282
## Contributing
8383

84-
Use Node >= 10 version as **development environment**.
85-
86-
### Prepare
87-
88-
```bash
89-
git clone https://github.com/jdf2e/rocketact.git
90-
cd rocketact
91-
yarn && yarn bootstrap
92-
cd packages/rocketact-scripts/test/fixture/simple/ && yarn && cd -
93-
```
94-
95-
### Build
96-
97-
```bash
98-
yarn build
99-
```
100-
101-
### Testing
102-
103-
```bash
104-
yarn test
105-
```
106-
107-
While developing, you can start `jest` in watch mode:
108-
109-
```bash
110-
yarn test -- --watch
111-
```
112-
113-
### Commit Changes
114-
115-
```bash
116-
yarn commit
117-
```
118-
119-
## Preview Website Locally
120-
121-
We use [Docusaurus](https://docusaurus.io/) maintain our website.
122-
123-
If you want to preview the website locally, you can:
124-
125-
```bash
126-
cd docusaurus/website
127-
yarn
128-
yarn start
129-
```
84+
Please read our [contributing guide](https://github.com/jdf2e/rocketact/blob/master/CONTRIBUTING.md).

packages/rocketact/README.md

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -81,49 +81,4 @@ npm run build
8181

8282
## Contributing
8383

84-
Use Node >= 10 version as **development environment**.
85-
86-
### Prepare
87-
88-
```bash
89-
git clone https://github.com/jdf2e/rocketact.git
90-
cd rocketact
91-
yarn && yarn bootstrap
92-
cd packages/rocketact-scripts/test/fixture/simple/ && yarn && cd -
93-
```
94-
95-
### Build
96-
97-
```bash
98-
yarn build
99-
```
100-
101-
### Testing
102-
103-
```bash
104-
yarn test
105-
```
106-
107-
While developing, you can start `jest` in watch mode:
108-
109-
```bash
110-
yarn test -- --watch
111-
```
112-
113-
### Commit Changes
114-
115-
```bash
116-
yarn commit
117-
```
118-
119-
## Preview Website Locally
120-
121-
We use [Docusaurus](https://docusaurus.io/) maintain our website.
122-
123-
If you want to preview the website locally, you can:
124-
125-
```bash
126-
cd docusaurus/website
127-
yarn
128-
yarn start
129-
```
84+
Please read our [contributing guide](https://github.com/jdf2e/rocketact/blob/master/CONTRIBUTING.md).

0 commit comments

Comments
 (0)