whs.js/.github/CONTRIBUTING.md
codetriage-readme-bot 0f1c1a5df7 Add CodeTriage badge to whitestormjs/whitestorm.js
Adds a badge showing the number of people helping this repo on CodeTriage.

[![Open Source Helpers](https://www.codetriage.com/whitestormjs/whitestorm.js/badges/users.svg)](https://www.codetriage.com/whitestormjs/whitestorm.js)

## What is CodeTriage?

CodeTriage is an Open Source app that is designed to make contributing to Open Source projects easier. It works by sending subscribers a few open issues in their inbox. If subscribers get busy, there is an algorithm that backs off issue load so they do not get overwhelmed

[Read more about the CodeTriage project](https://www.codetriage.com/what).

## Why am I getting this PR?

Your project was picked by the human, @schneems. They selected it from the projects submitted to https://www.codetriage.com and hand edited the PR. How did your project get added to [CodeTriage](https://www.codetriage.com/what)? Roughly over 1 year ago, [Samueljoli](https://github.com/Samueljoli) added this project to CodeTriage in order to start contributing. Since then, 2 people have subscribed to help this repo.

## What does adding a badge accomplish?

Adding a badge invites people to help contribute to your project. It also lets developers know that others are invested in the longterm success and maintainability of the project.

You can see an example of a CodeTriage badge on these popular OSS READMEs:

- [![Email clients like GMAIL do not render SVG images](https://www.codetriage.com/rails/rails/badges/users.svg)](https://www.codetriage.com/rails/rails) https://github.com/rails/rails
- [![Email clients like GMAIL do not render SVG images](https://www.codetriage.com/crystal-lang/crystal/badges/users.svg)](https://www.codetriage.com/crystal-lang/crystal) https://github.com/crystal-lang/crystal

## Have a question or comment?

While I am a bot, this PR was manually reviewed and monitored by a human - @schneems. My job is writing commit messages and handling PR logistics.

If you have any questions, you can reply back to this PR and they will be answered by @schneems. If you do not want a badge right now, no worries, close the PR, you will not hear from me again.

Thanks for making your project Open Source! Any feedback is greatly appreciated.


Former-commit-id: 045baad0c8a5c37233a60cb9416a82c2c297cfea
2018-03-05 14:10:42 -06:00

5.2 KiB
Raw Permalink Blame History

Contributing to WhitestormJS

Contributions to WhitestormJS are welcome; to make things easier, we've included a Getting Started section.

We look forward to your contributions to WhitestormJS.

😎 Getting Started

🐞 Reporting Bugs

If you've found a reproduceable bug, submit an issue! If you're sure that the issue is caused by WhitestormJS, submitting an issue will help us fix the problem.

Don't forget to check "bug" in issue type

You're welcome to fix things for us, and submit pull requests; it frees up time for us to implement useful new features.

Triage Issues Open Source Helpers

You can triage issues which may include reproducing bug reports or asking for vital information, such as version numbers or reproduction instructions. If you would like to start triaging issues, one easy way to get started is to subscribe to whitestorm.js on CodeTriage.

Adding Features

If you've added a new feature to WhitestormJS and would like for it to be included, submit a pull request. We'll take a look at it.

Want to help us? Take a task!

We have a task board where we keep all TODOs sorted by it's priority.

Before starting contributing it's better to contact us in discord:

✏️ How to make a PR (Pull Request)

  1. 🔭 First of all you should check if there is an issue that you will fix with your PR.
  2. 🛡 Then you should go and make a new branch with name #xxx (Issue number)
  3. 🛠 Make changes
  4. ✏️ Submit a PR!
    • If PR is related to an issue - 📌 refer to that issue in PR description.

🌪 Building WhitestormJS

WhitestormJS can be built by installing Node.js, and the gulp package through npm.

After that, clone the repository anywhere you'd like (git clone https://github.com/WhitestormJS/whitestorm.js.git).

Open the new directory (./WhitestormJS/ by default) using whatever terminal emulator you'd like.

You can build WhitestormJS with the following command: npm run build

WhitestormJS will be built, and written to build/whitestorm.js, and build/whitestorm.compact.js.

$ git clone https://github.com/WhitestormJS/whitestorm.js.git
$ cd whitestorm.js
$ npm install
$ npm run build

🖥 CLI

npm start - Development mode

  • Starts webpack-dev-server for whs sources.
  • Starts webpack-dev-server for each example located in ./examples
  • Starts gulp less:watch
    • Watches each .less in ./examples/assets/less
    • Compiles to ./examples/assets/css

npm run build - Build all

  • Runs gulp build - build sources
  • Runs gulp examples:build - build examples

npm test - Unit testing, coverage, snyk

Runs all testing suites. Used in Travis CI for this project.

npm run deploy - Deploy examples

Only for those, who are in dev team and have write acess on surge.sh for examples domain


Committing

All engine code is in the src/ folder. Modules are in the modules/, each having their own build.

We still in the process of moving all remaining modules from src/ to modules. If you create a new module, please put it in the modules folder.

*Do not edit files in build/ folder!!!

* Commit names.

Codes.

  • CSF - Code style fix. (Comes with file name.)
  • TU - Temporary update. (Will be changed later.)
  • README - You changed README.md file.
  • LICENSE - You changed LICENSE.md file.
  • CONTRIBUTING. - You changed CONTRIBUTING.md file.

Fixed Issue.

If your commit fixes for an issue on github, you must add Fixed #25. Where #25 is ID of the issue.

Syntax.

  • Code - e.g CSF. or TU. (If your commit matches one of them.)
  • Comment - Your comment to commit. (optional, unless you have no code.)
  • Fix - Example: Fixed #25. (If you fixed issue #25)

code must be UPPCERCASE, comment must be be Capitalized

If you have CSF your comment must be the name of the file you fixed. No dot after filename

Examples.

Good:

  • CSF: ShaderTerrain.js Fixed #25
  • Edited core module

Poor:

  • Changes..
  • Fixed #25
  • Fixed code style. (Use "CSF")
  • WIPSHADEERTERRAINJSFIXES####2017!!!!

* Code style guidelines:

  • Follow code style guides:
    • XO
    • Wrap logical blocks* with newlines.

logical blocks* - lines that have something in common.