Skip to content

Commit

Permalink
Contributing (#61)
Browse files Browse the repository at this point in the history
* CONTRIBUTING.md

* update scripts

* Tweak
  • Loading branch information
tizmagik authored Oct 17, 2017
1 parent 17da891 commit 0096650
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Contributing

First, thank you for contributing! 🎉

## Local Development

The local development workflow is fairly straightfowrad:

1. Fork the repo and then git clone your fork locally (be sure to work on a new branch, not on your `master` branch)
1. `npm install`
1. `npm run test:watch` this will run the tests in watch mode

## Testing against your own app

If you'd like to test out a local version of `react-tracking` in an app you're using it in, you can:

1. Add `react-tracking` to your project (`npm i react-tracking`)
1. `npm install` in your local checkout of react-tracking
1. `npm link` in react-tracking
1. `npm link react-tracking` in the project you want to use it in
1. `npm run build:watch` in react-tracking to run the watcher to get updates as you develop

Then you'll be pointing at the local checkout of react-tracking to test your changes from within your app.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
"scripts": {
"prepare": "npm run lint && npm run test && npm run build",
"build": "babel --out-dir build src --ignore src/__tests__",
"build:watch": "npm run build -- --watch",
"test": "jest",
"test:watch": "jest --watch",
"lint": "eslint ./src",
"precommit": "lint-staged"
}
Expand Down

0 comments on commit 0096650

Please sign in to comment.