Contributing

Want to contribute to Slate? That would be awesome!

Reporting Bugs

If you run into any weird behavior while using Slate, feel free to open a new issue in this repository! Please run a search before opening a new issue, to make sure that someone else hasn't already reported or solved the bug you've found.

Any issue you open must include:

Here's a JSFiddle template for Slatearrow-up-right to get you started:

arrow-up-right

Asking Questions

We've also got a Slate Slack teamarrow-up-right where you can ask questions and get answers from other people using Slate:

arrow-up-right

Please use the Slack instead of asking questions in issues, since we want to reserve issues for keeping track of bugs and features. We close questions in issues so that maintaining the project isn't overwhelming.

Submitting Pull Requests

All pull requests are super welcomed and greatly appreciated! Issues in need of a solution are marked with a ♥ help pleasearrow-up-right label if you're looking for somewhere to start.

Please include tests and docs with every pull request!

Repository Setup

The slate repository is a monorepo that is managed with lernaarrow-up-right. Unlike more traditional repositories, this means that the repository must be built in order for tests, linting, or other common development activities to function as expected.

To run the build, you need to have the Slate repository cloned to your computer. After that, you need to cd into the directory where you cloned it, and install the dependencies with yarn and build the monorepo:

Running Examples

To run the examples, start by building the mono repo as described in the Repository Setup section.

Then you can start the examples server with:

Running Tests

To run the tests, start by building the mono repo as described in the Repository Setup section.

Then you can rerun the tests with:

If you need to debug something, you can add a debugger line to the source, and then run yarn test:inspect.

If you only want to run a specific test or tests, you can run yarn test --fgrep="slate-react rendering" flag which will filter the tests being run by grepping for the string in each test. (This is a Mocha flag that gets passed through.)

Testing Input Methods

Here's a helpful pagearrow-up-right detailing how to test various input scenarios on Windows, Mac and Linux.

Publishing Releases

Since we use Lernaarrow-up-right to manage the Slate packages this is fairly easy, just run:

And follow the prompts Lerna gives you.

Last updated