Skip to content

Commit

Permalink
chore: add contributing and contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jun 21, 2018
1 parent 8078c6b commit ef5fec6
Show file tree
Hide file tree
Showing 5 changed files with 313 additions and 12 deletions.
56 changes: 56 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"projectName": "docz",
"projectOwner": "pedronauck",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md",
"CONTRIBUTING.md"
],
"imageSize": 60,
"commit": true,
"contributors": [
{
"login": "renatorib",
"name": "Renato Ribeiro",
"avatar_url": "https://avatars2.githubusercontent.com/u/3277185?v=4",
"profile": "http://twitter.com/renatorib_",
"contributions": [
"code",
"doc",
"bug",
"ideas",
"plugin",
"tool"
]
},
{
"login": "Swapnull",
"name": "Martyn Rushton",
"avatar_url": "https://avatars0.githubusercontent.com/u/4456346?v=4",
"profile": "http://swapnull.co.uk",
"contributions": [
"code"
]
},
{
"login": "marceloavf",
"name": "Marcelo Formentão",
"avatar_url": "https://avatars3.githubusercontent.com/u/5435657?v=4",
"profile": "https://github.com/marceloavf",
"contributions": [
"code",
"bug"
]
},
{
"login": "good-idea",
"name": "Joseph Thomas",
"avatar_url": "https://avatars3.githubusercontent.com/u/11514928?v=4",
"profile": "https://www.good-idea.studio",
"contributions": [
"code"
]
}
]
}
94 changes: 94 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Contributing

Contributions, issues and feature requests are very welcome. If you are using this package and fixed a bug for yourself, please consider submitting a PR! Also you can ping me at [Twitter](https://twitter.com/pedronauck)

## Guidelines

If you will develop some pull request, it's very important follow these basic rules:

### Commit messages

Commit messages should follow the [commit message convention](https://conventionalcommits.org/) so that changelogs can be automatically generated. Commit messages will be automatically validated upon commit. If you are not familiar with the commit message convention, you can use `yarn commit` instead of `git commit`, which provides an interactive CLI for generating proper commit messages.

### General guidelines

- The master branch is basically just a snapshot of the latest stable release. All development should be done in dedicated branch. **Do not submit PRs against the master branch.**
- Checkout a topic branch from the relevant branch, e.g. `dev`, and merge back against that branch.
- Work in the **src** folder of respective package and **DO NOT** checkin dist in the commits.
- It's OK - and a very nice thing - to have multiple small commits as you work on the PR - we will let GitHub automatically squash it before merging.

### If adding new feature:

- Make sure that [all examples](https://github.com/pedronauck/docz/tree/master/examples) are running as expected
- Provide convincing reason to add this feature. Ideally you should open a suggestion issue first and have it greenlighted before working on it.

## Setup

### Pre-requisites

- *Node:* `^9.0.0`
- *Yarn:* `^1.7.0`

### Install

Check out the code and go into the docz directory:

```bash
git clone https://github.com/pedronauck/docz.git
cd docz
```

Then run yarn install and bootstrap all packages:

```bash
$ yarn install
$ yarn bs
```

After that, just run `packages` script to format, build and lint all packages:

```bash
$ yarn packages
```

## Developing

There just few things that you need to know if you want to start to develop on docz

### Project structure

There's a lot of packages on [packages](https://github.com/pedronauck/docz/tree/master/packages) folder that are so necessary to docz run, but basically has just two packages that you need to know more about:

#### **[docz-core](https://github.com/pedronauck/docz/tree/master/packages/docz)**
- This is the core of docz, all build process, server process and parses belongs to here!
- If you break this package, you'll break all packages! Please, be carefull.
- All cli commands are built here and imported on `docz` package on `./bin` script
- Do not create and use not relative to client here, just node scripts!

#### **[docz](https://github.com/pedronauck/docz/tree/master/packages/docz)**
- Main and top level package.
- It's not have any node script unless the `./bin` script using `docz-core` and `yargs` to build the cli tool.
- Just built-ins components are built in this package
- This package shouldn't have any component style, just logic!

### Watching projects

To speed up your develop process, you can split your terminal by open the packages that you need to develop and run `yarn dev` in each window. This will build the package in dev mode. So, after that, you can use any splitted window to run `yarn dev` too in some example package to see it in action, like that:

![](https://cdn-std.dprcdn.net/files/acc_649651/MdH4FL)

Above you watching `docz`, `docz-core` and `docz-theme-default` and running `docz-example-basic`. So, any modification that is made on any package will reflect on basic example on the fly!

### Creating plugins

If you see that has some plugin that you can create and don't have this plugin on `packages/` folder, please contact-me before to we talk about make this plugin official!

## Contributors

Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
| [<img src="https://avatars2.githubusercontent.com/u/3277185?v=4" width="60px;"/><br /><sub><b>Renato Ribeiro</b></sub>](http://twitter.com/renatorib_)<br />[💻](https://github.com/pedronauck/docz/commits?author=renatorib "Code") [📖](https://github.com/pedronauck/docz/commits?author=renatorib "Documentation") [🐛](https://github.com/pedronauck/docz/issues?q=author%3Arenatorib "Bug reports") [🤔](#ideas-renatorib "Ideas, Planning, & Feedback") [🔌](#plugin-renatorib "Plugin/utility libraries") [🔧](#tool-renatorib "Tools") | [<img src="https://avatars0.githubusercontent.com/u/4456346?v=4" width="60px;"/><br /><sub><b>Martyn Rushton</b></sub>](http://swapnull.co.uk)<br />[💻](https://github.com/pedronauck/docz/commits?author=Swapnull "Code") | [<img src="https://avatars3.githubusercontent.com/u/5435657?v=4" width="60px;"/><br /><sub><b>Marcelo Formentão</b></sub>](https://github.com/marceloavf)<br />[💻](https://github.com/pedronauck/docz/commits?author=marceloavf "Code") [🐛](https://github.com/pedronauck/docz/issues?q=author%3Amarceloavf "Bug reports") | [<img src="https://avatars3.githubusercontent.com/u/11514928?v=4" width="60px;"/><br /><sub><b>Joseph Thomas</b></sub>](https://www.good-idea.studio)<br />[💻](https://github.com/pedronauck/docz/commits?author=good-idea "Code") |
| :---: | :---: | :---: | :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<p align="center">
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors)
<img src="https://img.shields.io/npm/v/docz.svg" alt="">
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="">
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="">
Expand Down Expand Up @@ -105,5 +106,15 @@ Any doubt? Check [our docs](http://docz.site) to see more about Docz!

## 🤝 &nbsp; Contributions

Contributions, issues and feature requests are very welcome. If you are using this package and fixed a bug for yourself, please consider submitting a PR!
Also you can ping me at [Twitter](https://twitter.com/pedronauck)
Contributions, issues and feature requests are very welcome.
Please make sure to read the [Contributing Guide](/CONTRIBUTING.md) before making a pull request.

## Contributors

Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
| [<img src="https://avatars2.githubusercontent.com/u/3277185?v=4" width="60px;"/><br /><sub><b>Renato Ribeiro</b></sub>](http://twitter.com/renatorib_)<br />[💻](https://github.com/pedronauck/docz/commits?author=renatorib "Code") [📖](https://github.com/pedronauck/docz/commits?author=renatorib "Documentation") [🐛](https://github.com/pedronauck/docz/issues?q=author%3Arenatorib "Bug reports") [🤔](#ideas-renatorib "Ideas, Planning, & Feedback") [🔌](#plugin-renatorib "Plugin/utility libraries") [🔧](#tool-renatorib "Tools") | [<img src="https://avatars0.githubusercontent.com/u/4456346?v=4" width="60px;"/><br /><sub><b>Martyn Rushton</b></sub>](http://swapnull.co.uk)<br />[💻](https://github.com/pedronauck/docz/commits?author=Swapnull "Code") | [<img src="https://avatars3.githubusercontent.com/u/5435657?v=4" width="60px;"/><br /><sub><b>Marcelo Formentão</b></sub>](https://github.com/marceloavf)<br />[💻](https://github.com/pedronauck/docz/commits?author=marceloavf "Code") [🐛](https://github.com/pedronauck/docz/issues?q=author%3Amarceloavf "Bug reports") | [<img src="https://avatars3.githubusercontent.com/u/11514928?v=4" width="60px;"/><br /><sub><b>Joseph Thomas</b></sub>](https://www.good-idea.studio)<br />[💻](https://github.com/pedronauck/docz/commits?author=good-idea "Code") |
| :---: | :---: | :---: | :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->
18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{
"private": true,
"license": "MIT",
"author": {
"name": "Pedro Nauck",
"email": "[email protected]",
"url": "https://github.com/pedronauck"
},
"homepage": "https://docz.site",
"bugs": {
"url": "https://github.com/pedronauck/docz/issues"
},
"repository":{
"type" : "git",
"url" : "https://github.com/pedronauck/docz.git"
},
"scripts": {
"clean": "lerna clean",
"bs": "lerna bootstrap",
Expand All @@ -12,12 +25,15 @@
"release": "lerna publish --conventional-commits",
"release:beta": "yarn release --npm-tag=beta --preid=beta",
"precommit": "lint-staged",
"commit": "git-cz"
"commit": "git-cz",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate"
},
"devDependencies": {
"@commitlint/cli": "^7.0.0",
"@commitlint/config-conventional": "^7.0.1",
"@commitlint/config-lerna-scopes": "^7.0.0",
"all-contributors-cli": "^5.2.0",
"commitizen": "^2.10.1",
"del": "^3.0.0",
"husky": "^1.0.0-rc.9",
Expand Down
Loading

0 comments on commit ef5fec6

Please sign in to comment.