Update the README to prepare for contributions

This commit is contained in:
Lew Parker 2016-02-27 11:14:50 -07:00
parent d1f84f2b97
commit f054f88e83

View file

@ -1,18 +1,68 @@
# xelm
# xElixir
![build status](https://travis-ci.org/exercism/xelm.svg?branch=master)
Exercism problems in Elm.
Exercism Exercises in Elm
## TODO
## Setup
_Document how to contribute to the Elm track._
Detailed installation instructions can be found at [http://elm-lang.org/install](http://elm-lang.org/install).
## Contributing Guide
## Contributing
Please see the [contributing guide](https://github.com/exercism/x-api/blob/master/CONTRIBUTING.md#the-exercise-data)
Thank you so much for contributing! :tada:
Please start by reading the general Exercism [contributing guide](https://github.com/exercism/x-api/blob/master/CONTRIBUTING.md#the-exercise-data).
We welcome pull requests that provide fixes and improvements to existing exercises. If you're unsure, then go ahead and open a GitHub issue, and we'll discuss the change.
Please keep the following in mind:
- Pull requests should be focused on a single exercise, issue, or change.
- We welcome changes to code style, and wording. Please open a separate PR for these changes if possible.
- Please open an issue before creating a PR that makes significant (breaking) changes to an existing exercise or makes changes across many exercises. It is best to discuss these changes before doing the work.
- Follow the coding standards found in [The Elm Style Guide](http://elm-lang.org/docs/style-guide).
- Watch out for trailing spaces, extra blank lines, and spaces in blank lines.
- Each exercise must stand on its own. Do not reference files outside the exercise directory. They will not be included when the user fetches the exercise.
- Exercises should use only the Elm core libraries.
- Please do not add a README or README.md file to the exercise directory. The READMEs are constructed using shared metadata, which lives in the
[exercism/x-common](https://github.com/exercism/x-common) repository.
- Each problem should have a test suite, an example solution, and a template file for the real implementation. The CI build expects files to be named using the following convention. The example solution should be named `ExerciseModuleName.example`. The template file should be named `ExerciseModuleName.elm`. Test file should be named `ExerciseModuleNameTest.elm`.
- Test files should use the following format:
```elixir
import Task
import Console
import ElmTest exposing (..)
tests : Test
tests =
suite "ExerciseModuleName"
[ test "first test" (assertEqual True True)
, test "second test" (assertEqual False False)
]
port runner : Signal (Task.Task x ())
port runner =
Console.run (consoleRunner tests)
```
- All the tests for xElm exercises can be run from the top level of the repo with `bin/build.sh`. Please run this command before submitting your PR.
- If you are submitting a new exercise, be sure to add it to the appropriate place in `config.json`. Also, please run `bin/fetch-configlet && bin/configlet` to ensure the exercise is configured correctly.
## License
The MIT License (MIT)
Copyright (c) 2015 Katrina Owen, _@kytrinyx.com
Copyright (c) 2016 Katrina Owen, _@kytrinyx.com