Skip to content

Commit 927e659

Browse files
authored
Merge pull request #17 from zyzo/1.0.0-rc.1
1.0.0-rc.1
2 parents a2d3a3c + b832e7a commit 927e659

File tree

4 files changed

+4199
-2
lines changed

4 files changed

+4199
-2
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
Mouse Backend for React Drag and Drop library http://gaearon.github.io/react-dnd
88

9+
- [Usage](#Usage)
10+
- [Playground](#Playground)
11+
- [Development](#Development)
12+
- [Credits](#Credits)
13+
914
### Usage
1015

1116
```js
@@ -28,6 +33,30 @@ yarn; yarn start
2833

2934
Then head to `http://localhost:3030/` to start some fun drag and dropping.
3035

36+
### Development
37+
38+
First, install the project locally:
39+
40+
```sh
41+
git clone git@github.com:zyzo/react-dnd-mouse-backend.git
42+
cd react-dnd-mouse-backend; npm install
43+
# (Optional) prepare example project
44+
cd example; npm install
45+
```
46+
47+
Then, link react-dnd-mouse-backend to example project (or your js project):
48+
```sh
49+
# in ./react-dnd-mouse-backend
50+
npm link
51+
cd example; npm link react-dnd-mouse-backend
52+
```
53+
54+
Finally you can begin to make changes in `src` folder, and rebuild the lib:
55+
56+
```sh
57+
npm run build
58+
```
59+
3160

3261
### Credits
3362
Inspired by [HTML5 Backend](https://github.com/gaearon/react-dnd-html5-backend) & [Touch Backend](https://github.com/yahoo/react-dnd-touch-backend) to support only mouse events, which work much better in some cases, like svg.

0 commit comments

Comments
 (0)