For developers and contributors
-
Fork project and clone your fork
-
Install global dependencies
npm install -g coffee-script
-
Install local dependencies
cake install
-
Compile project
# Only once cake compile # On every change cake watch
-
Run tests
cake test
For project maintainers
-
Update meta files with latest information
cake prepublish
This will compile the project, run tests, and update any meta files that need updating.
-
Add a changelog entry to
HISTORY.md
with change information## v2.0.0 April 17, 2013 - Something changed - Something changed that was referenced in an issue or pull request - Thanks to [person](https://github.com/person) for [issue #98](https://github.com/project/issue/98) - Dependency updates
-
Update
version
entry inpackage.json
with a new number that follows semantic versioning -
Commit changes
git add -u git add . git commit -m "A message about what changed"
This will stage any updates and any new files for your commit, and commit them with your specified message.
-
Publish new version
cake publish
This will run
cake prepublish
, publish your project to npm, create a git tag, and push the git updates. It will open your editor for specifying the description for the git tag annotation, use the changelog entry we created before (but without the##
heading), e.g.v2.0.0 April 17, 2013 - Something changed - Something changed that was referenced in an issue or pull request - Thanks to [person](https://github.com/person) for [issue #98](https://github.com/project/issue/98) - Dependency updates