Merge pull request #111 from knowbody/add-travis
add travis config and add yarn support
This commit is contained in:
commit
faed09ceea
4 files changed
+2072
-3
No files matched your search
@@ -0,0 +1,3 @@
|
|||||||
|
yarn.lock
|
||||||
|
tests
|
||||||
|
tests_config
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
language: node_js
|
||||||
|
node_js:
|
||||||
|
- 0.10
|
||||||
|
- 4
|
||||||
|
- 6
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- node_modules
|
||||||
@@ -86,10 +86,20 @@ into account, wrapping code when necessary.
|
|||||||
Install:
|
Install:
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install [-g] prettier
|
yarn add prettier
|
||||||
```
|
```
|
||||||
|
|
||||||
You can install it globally if you like.
|
You can install it globally if you like:
|
||||||
|
|
||||||
|
```
|
||||||
|
yarn global add prettier
|
||||||
|
```
|
||||||
|
|
||||||
|
*We're defaulting to `yarn` but you can use `npm` if you like:*
|
||||||
|
|
||||||
|
```
|
||||||
|
npm install [-g] prettier
|
||||||
|
```
|
||||||
|
|
||||||
### CLI
|
### CLI
|
||||||
|
|
||||||
@@ -205,7 +215,7 @@ Better docs will come soon.
|
|||||||
We will work on better docs over time, but in the mean time, here are
|
We will work on better docs over time, but in the mean time, here are
|
||||||
a few notes if you are interested in contributing:
|
a few notes if you are interested in contributing:
|
||||||
|
|
||||||
* You should be able to get up and running with just `npm install`
|
* You should be able to get up and running with just `yarn`
|
||||||
* This uses jest snapshots for tests. The entire Flow test suite is
|
* This uses jest snapshots for tests. The entire Flow test suite is
|
||||||
included here and you can make changes and run `jest -u` and then
|
included here and you can make changes and run `jest -u` and then
|
||||||
`git diff` to see the styles that changed. Always update the
|
`git diff` to see the styles that changed. Always update the
|
||||||
|
|||||||
Reference in new issue
Block a user