|
1 | 1 | { |
2 | 2 | "name": "@reason-react-native/slider", |
3 | | - "version": "0.0.1", |
| 3 | + "version": "0.0.0", |
4 | 4 | "publishConfig": { |
5 | 5 | "access": "public" |
6 | 6 | }, |
7 | | - "author": "broerjuang (https://github.com/broerjuang)", |
| 7 | + "peerDependencies": { |
| 8 | + "reason-react": "^0.7.0", |
| 9 | + "reason-react-native": ">=0.60.0", |
| 10 | + "@react-native-community/slider": "^2.0.0" |
| 11 | + }, |
8 | 12 | "repository": "https://github.com/reason-react-native/slider.git", |
9 | 13 | "license": "MIT", |
10 | 14 | "keywords": [ |
11 | 15 | "reason", |
12 | 16 | "reasonml", |
13 | 17 | "bucklescript", |
14 | | - "react-native", |
15 | | - "react-native-slider", |
16 | | - "slider" |
| 18 | + "react-native" |
17 | 19 | ], |
18 | 20 | "files": [ |
19 | 21 | "*", |
|
24 | 26 | "!lib/ocaml" |
25 | 27 | ], |
26 | 28 | "scripts": { |
27 | | - "start": "bsb -make-world -w", |
28 | | - "build": "bsb -make-world", |
29 | | - "clean": "bsb -clean-world", |
30 | | - "test": "bsb -clean-world -make-world" |
| 29 | + "format:most": "prettier --write \"**/*.{md,json,js,css}\"", |
| 30 | + "format:re": "find . -name \"*.re\" -or -name \"*.rei\" | grep -v \"node_modules\" | xargs bsrefmt --in-place", |
| 31 | + "format": "yarn format:most && yarn format:re", |
| 32 | + "re:start": "bsb -make-world -w", |
| 33 | + "re:build": "bsb -make-world", |
| 34 | + "re:clean-build": "bsb -clean-world -make-world", |
| 35 | + "start": "yarn re:start", |
| 36 | + "build": "yarn re:build", |
| 37 | + "test": "yarn re:clean-build", |
| 38 | + "release": "npmpub" |
31 | 39 | }, |
32 | 40 | "devDependencies": { |
33 | | - "@react-native-community/slider": "^2.0.0", |
34 | | - "bs-platform": "^5.0.4", |
35 | | - "reason-react": ">=0.7.0", |
36 | | - "reason-react-native": "^0.60.0" |
| 41 | + "bs-platform": "^5.2.0", |
| 42 | + "husky": "^1.3.0", |
| 43 | + "lint-staged": "^8.1.0", |
| 44 | + "npmpub": "^5.0.0", |
| 45 | + "prettier": "^1.18.0", |
| 46 | + "reason-react": "^0.7.0", |
| 47 | + "reason-react-native": "^0.61.0" |
37 | 48 | }, |
38 | | - "peerDependencies": { |
39 | | - "@react-native-community/slider": "^2.0.0", |
40 | | - "reason-react": ">=0.7.0" |
| 49 | + "prettier": { |
| 50 | + "trailingComma": "all", |
| 51 | + "proseWrap": "always" |
| 52 | + }, |
| 53 | + "lint-staged": { |
| 54 | + "*.{md,json,js,css}": [ |
| 55 | + "prettier --write", |
| 56 | + "git add" |
| 57 | + ], |
| 58 | + "*.{re,rei}": [ |
| 59 | + "bsrefmt --in-place", |
| 60 | + "git add" |
| 61 | + ] |
| 62 | + }, |
| 63 | + "husky": { |
| 64 | + "hooks": { |
| 65 | + "pre-commit": "lint-staged" |
| 66 | + } |
41 | 67 | } |
42 | 68 | } |
0 commit comments