-
Fork the project and clone your fork.
-
Create a local feature branch:
$ git checkout -b <branch>
-
If adding a function
R_.foo
, define it inpackages/ramda-extension/src/foo.js
, export it frompackages/ramda-extension/src/index.js
, and include unit tests inpackages/ramda-extension/src/__tests__/foo-test.js
.- We prefer pointfree implementations. See Thinking in Ramda: Pointfree Style.
- For generation of new function use
yarn generate
script. - Use composition of functions from Ramda or Ramda-extension.
- Use declarative style over imperative. We do not
while
,for
,if
etc. in our codebase.
-
Make one or more atomic commits. Each commit should have a descriptive commit message, wrapped at 72 characters.
-
Run
yarn test
and address any errors. Preferably, fix commits in place usinggit rebase
orgit commit --amend
to make the changes easier to review and to keep the history tidy. -
Push to your fork:
$ git push origin <branch>
-
Open a pull request.