mirror of
https://github.com/ilyakooo0/reflex-vty.git
synced 2024-11-22 02:33:55 +03:00
Add contribution guide, changelog, release.nix
This commit is contained in:
parent
7faa08b695
commit
cbabe00c93
68
CONTRIBUTING.md
Normal file
68
CONTRIBUTING.md
Normal file
@ -0,0 +1,68 @@
|
||||
# Contribution Guide
|
||||
|
||||
Contributions and issue reports are encouraged and appreciated!
|
||||
|
||||
- [Opening Issues](#opening-issues)
|
||||
- [Submitting Changes](#submitting-changes)
|
||||
- [Guidelines for Commit Messages](#guidelines-for-commit-messages)
|
||||
- [Guidelines for Pull Requests](#guidelines-for-pull-requests)
|
||||
- [Code Quality](#code-quality)
|
||||
- [Documentation](#documentation)
|
||||
|
||||
## Opening Issues
|
||||
|
||||
Before opening an issue, please check whether your issue has already been reported. Assuming it has not:
|
||||
|
||||
* Describe the issue you're encountering or the suggestion you're making
|
||||
* Include any relevant steps to reproduce or code samples you can. It's always easier for us to debug if we have something that demonstrates the error.
|
||||
* Let us know what version of reflex-vty you were using. If you're using a github checkout, provide the git hash.
|
||||
* Describe how you're building reflex-vty (i.e., via reflex-platform, cabal install, stack, obelisk, etc.).
|
||||
|
||||
## Submitting Changes
|
||||
|
||||
### Guidelines for Commit Messages
|
||||
|
||||
#### Summary Line
|
||||
The summary line of your commit message should summarize the changes being made. Commit messages should be written in the imperative mood and should describe what happens when the commit is applied.
|
||||
|
||||
One way to think about it is that your commit message should be able to complete the sentence:
|
||||
"When applied, this commit will..."
|
||||
|
||||
#### Body
|
||||
For breaking changes, new features, refactors, or other major changes, the body of the commit message should describe the motivation behind the change in greater detail and may include references to the issue tracker. The body shouldn't repeat code/comments from the diff.
|
||||
|
||||
### Guidelines for Pull Requests
|
||||
|
||||
Wherever possible, pull requests should add a single feature or fix a single bug. Pull requests should not bundle several unrelated changes.
|
||||
|
||||
### Code Quality
|
||||
|
||||
#### Warnings
|
||||
|
||||
Your pull request should add no new warnings to the project. It should also generally not disable any warnings.
|
||||
|
||||
#### Build and Test
|
||||
|
||||
Make sure the project builds and that the tests pass! This will generally also be checked by CI before merge, but trying it yourself first means you'll catch problems earlier and your contribution can be merged that much sooner!
|
||||
|
||||
To check that things are still working, run:
|
||||
|
||||
```bash
|
||||
nix-build release.nix
|
||||
```
|
||||
|
||||
### Documentation
|
||||
|
||||
#### In the code
|
||||
We're always striving to improve documentation. Please include [haddock](https://haskell-haddock.readthedocs.io/en/latest/index.html) documentation for any added code, and update the documentation for any code you modify.
|
||||
|
||||
#### In the [Changelog](ChangeLog.md)
|
||||
Add an entry to the changelog when your PR:
|
||||
* Adds a feature
|
||||
* Deprecates something
|
||||
* Includes a breaking change
|
||||
* Makes any other change that will impact users
|
||||
|
||||
#### In the [Readme](README.md)
|
||||
The readme is the first place a lot of people look for information about the repository. Update any parts of the readme that are affected by your PR.
|
||||
|
5
ChangeLog.md
Normal file
5
ChangeLog.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Revision history for reflex-vty
|
||||
|
||||
## 0.1.0.0
|
||||
|
||||
* Initial release
|
7
reflex-platform/default.nix
Normal file
7
reflex-platform/default.nix
Normal file
@ -0,0 +1,7 @@
|
||||
# DO NOT HAND-EDIT THIS FILE
|
||||
import ((import <nixpkgs> {}).fetchFromGitHub (
|
||||
let json = builtins.fromJSON (builtins.readFile ./github.json);
|
||||
in { inherit (json) owner repo rev sha256;
|
||||
private = json.private or false;
|
||||
}
|
||||
))
|
7
reflex-platform/github.json
Normal file
7
reflex-platform/github.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"owner": "reflex-frp",
|
||||
"repo": "reflex-platform",
|
||||
"branch": "develop",
|
||||
"rev": "51e02339704b7502e63bccf10a72fa4dda744b17",
|
||||
"sha256": "1mkimidf755968xzbm3z222xgpdvgg6xmmrfppv1hw0rap5w53iw"
|
||||
}
|
@ -12,6 +12,8 @@ maintainer: maintainer@obsidian.systems
|
||||
category: FRP
|
||||
build-type: Simple
|
||||
cabal-version: >=1.10
|
||||
extra-source-files: README.md
|
||||
ChangeLog.md
|
||||
extra-doc-files: doc/welcome.gif
|
||||
, doc/tasks.png
|
||||
|
||||
|
4
release.nix
Normal file
4
release.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{ rp ? import ./reflex-platform {}
|
||||
}: {
|
||||
reflex-vty = rp.ghc.callCabal2nix ./. {};
|
||||
}
|
Loading…
Reference in New Issue
Block a user