Contributions to WhitestormJS are welcome; to make things easier, we've included a Getting Started section.
We look forward to your contributions to WhitestormJS.
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.
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.
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:
- @sasha240100 (
@alex2401#9076in discord) - @hirako2000 (
@Hirako#4563in discord) - @thejmazz (
@thejmazz#3954in discord)
- 🔭 First of all you should check if there is an issue that you will fix with your PR.
- 🛡 Then you should go and make a new branch with name
#xxx(Issue number) - 🛠 Make changes
- ✏️ Submit a PR!
- If PR is related to an issue - 📌 refer to that issue in PR description.
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- Starts
webpack-dev-serverfor whs sources. - Starts
webpack-dev-serverfor each example located in./examples - Starts
gulp less:watch- Watches each
.lessin./examples/assets/less - Compiles to
./examples/assets/css
- Watches each
- Runs
gulp build- build sources - Runs
gulp examples:build- build examples
Runs all testing suites. Used in Travis CI for this project.
Only for those, who are in dev team and have write acess on surge.sh for examples domain
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!!!
- 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.
If your commit fixes for an issue on github, you must add Fixed #25. Where #25 is ID of the issue.
- Code - e.g
CSF.orTU.(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
CSFyour comment must be the name of the file you fixed. No dot after filename
Good:
CSF: ShaderTerrain.js Fixed #25Edited core module
Poor:
Changes..Fixed #25Fixed code style.(Use "CSF")WIPSHADEERTERRAINJSFIXES####2017!!!!
- Follow code style guides:
- XO
- Wrap logical blocks* with newlines.
logical blocks* - lines that have something in common.





