At this page we explain how you can contribute to our project.
If you have any proposal or want to report about a bug, feel free to create an issue. We will answer as soon as possible.
Clone a repository to your computer.
git clone https://github.com/ghaiklor/generator-sails-rest-api.git # via HTTPS
git clone [email protected]:ghaiklor/generator-sails-rest-api.git # via SSH
We are using npm
for manage dependencies.
So all development dependencies is declared into package.json
and you can install it simply call npm install
.
cd generator-sails-rest-api
npm install
When you clone the repository, you can link this repository as global npm module in your system.
Then check if this is linked up by executing npm -g list --depth=0
.
If everything is correct, you will see path to your cloned repository.
After linking, you can call yo sails-rest-api
and run generator locally.
git clone https://github.com/ghaiklor/generator-sails-rest-api.git
cd generator-sails-rest-api
sudo npm link
yo sails-rest-api
Our repository has two main branches:
We are using git workflow, which are nice described here in Russian and here in English.
Better to read those articles, before you make a pull request, if you are not familiar with that.
In a nutshell, all pull requests must go into dev
branch and only into dev
branch.
semantic-release
is a package that allows to publish to npm after tests completed successfully right from the CI server (from master
branch).
This flow is fully configured, so you can just contribute to the project, everything else semantic-release
will do.
We are using Mocha for testing.
All test cases located into test
folder.
When you create new feature or fix some bug, you MUST write test case for it in test
folder.
For running tests just call npm test
.
npm test