Skip to content

Commit 111de2f

Browse files
author
alan
committed
docs: add install instruction
1 parent fef4828 commit 111de2f

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Tiny Draggable
2+
23
![build](https://github.com/FPG-Alan/tiny-draggable/actions/workflows/build.yml/badge.svg)
34

45
Make dom draggable via mouse events, with small file size and simple to use.
@@ -7,7 +8,9 @@ Make dom draggable via mouse events, with small file size and simple to use.
78

89
## install
910

10-
TBD...
11+
```
12+
npm install tiny-draggable
13+
```
1114

1215
## draggable
1316

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "tiny-draggable",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "make dom draggable",
55
"main": "dist/tiny-draggable.js",
66
"module": "dist/tiny-draggable.mjs",
77
"typings": "dist/tiny-draggable.d.ts",
8+
"files": [
9+
"dist/"
10+
],
811
"scripts": {
912
"prepare": "husky install",
1013
"clean": "rimraf dist",
@@ -23,7 +26,11 @@
2326
}
2427
},
2528
"keywords": [],
26-
"author": "Alan Yang",
29+
"author": "Alan Yang <theyy.me@gmail.com> (https://github.com/FPG-Alan)",
30+
"repository": {
31+
"type": "git",
32+
"url": "https://github.com/FPG-Alan/tiny-draggable.git"
33+
},
2734
"license": "MIT",
2835
"devDependencies": {
2936
"@commitlint/cli": "^17.0.3",

0 commit comments

Comments
 (0)