Skip to content

Commit

Permalink
Changes format of changelog and updates docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ominestre committed Jun 30, 2021
1 parent 7ed594d commit d15c67a
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [Unreleased]
### Added
- Docs on contributing to the project [change](https://github.com/ominestre/rotten-deps/pull/58/)

### Changed
- Changed the format of `CHANGELOG.md` again [change](https://github.com/ominestre/rotten-deps/pull/58/)

### Removed
- Upgraded to Yargs `v17.x` which drops support for Node `v10.x`. Node `v10.x` will no longer be tested
and supported by this project [change](https://github.com/ominestre/rotten-deps/pull/55)
### Security
- Patches Lodash to address command injection in Lodash templates [change](https://github.com/ominestre/rotten-deps/pull/55)
- Patches developer dependencies [change](https://github.com/ominestre/rotten-deps/pull/55)

## 1.0.0-beta.24
- BUG: [Issue #3](https://github.com/ominestre/rotten-deps/issues/3) Fixes issue with generating report before installed
- OPS: Configures CI to fail on outdated
Expand Down
46 changes: 46 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## Prerequisites

1. NodeJS and preferably Node Version Manager to be able to swap between supported versions
2. Yarn

## Running locally

To run `rotten-deps` with a predefined configuration file you can:
1. Use command `yarn install` to install dependencies.
2. Use command `yarn run start` which will build and then run `rotten-deps` using config [sample-config.json](./sample-config.json).

If you would like to have more control over the arguments and configuration used:
1. Use command `yarn install` to install dependencies
2. Use command `yarn run build` to compile and build the application
3. Use command `node ./bin/rotten-deps [args]` to run it locally.

## Testing

Use `yarn test` to run CLI and API tests

## Submitting changes for review

When you feel like your changes are at a point where you'd like feedback, or if you feel they are ready for show time, create a pull request.
This will run the tests and other CI checks as well as signaling to the maintainers it is ready to go.

Once you've created a pull request It would be nice if you could update the [CHANGELOG.md](./CHANGELOG.md) and add a bullet about your change
to the unreleased section with a link to your pull request. See the 'Keeping a changelog' section for more details.

## Keeping a changelog

This project will use https://keepachangelog.com/en/1.0.0/ as the format for it's change log

## Release

We're investigating automating this release and publish process but for now here are the steps to generating a release.

1. Checkout branch `main` and make sure it is up to date
2. Run command `yarn install` then `yarn run build` to prep the application for deployment
3. Update [CHANGELOG.md](./CHANGELOG.md) and change the [UNRELEASED] section to reflect your next semver version (v1.0.0, v1.2.3, v2.3.4-beta001).
4. Stage the CHANGELOG.md changes in git but using command `git add CHANGELOG.md`
5. Double check that your working directory is clean other than the CHANGELOG.md change using `git status` or `git diff`. The following
command is dangerous and will add any dirty changes.
6. Use the command `npm version --force <semver>`
* `--force` is what will include the CHANGELOG.md changes in this release commit and tag
7. Use the command `npm publish --access public` to publish

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ At this time the API isn't officially supported but you can probably figure it o

#### Exit codes and meanings

* `0` indicates that no depedencies are stale or outdated
* `0` indicates that no dependencies are stale or outdated
* `1` indicates that you have outdated dependencies
* `2` indicates that you have stale dependencies but no outdated

## Contributing

For instructions on contributing to this project please see [CONTRIBUTING.md](./CONTRIBUTING.md).

0 comments on commit d15c67a

Please sign in to comment.