forked from giautm/react-native-reanimated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
152 lines (152 loc) · 5.48 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"name": "react-native-reanimated",
"version": "2.3.1",
"description": "More powerful alternative to Animated library for React Native.",
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "yarn run format:js && yarn run lint:js && yarn run test:unit",
"test:unit": "jest",
"lint": "yarn lint:js && yarn lint:cpp && yarn lint:java",
"lint:js": "eslint --ext '.js,.ts,.tsx' src/ && yarn prettier --check src/",
"lint:java": "./android/gradlew -p android spotlessCheck -q",
"lint:cpp": "./scripts/cpplint.sh",
"format": "yarn format:js && yarn format:java && yarn format:ios && yarn format:android && yarn format:common",
"format:js": "prettier --write --list-different './src/'",
"format:java": "node ./scripts/format-java.js",
"format:ios": "find ios/ -iname *.h -o -iname *.m -o -iname *.mm -o -iname *.cpp | xargs clang-format -i",
"format:android": "find android/src/ -iname *.h -o -iname *.cpp | xargs clang-format -i",
"format:common": "find Common/ -iname *.h -o -iname *.cpp | xargs clang-format -i",
"release": "npm login && release-it",
"type:check": "yarn tsc --noEmit",
"type:generate": "yarn type:generate:clean && yarn type:generate:cp-js-src && yarn type:generate:tsc && yarn type:generate:remove.ts && yarn type:generate:remove.tsx",
"type:generate:clean": "rm -rf lib/ && mkdir lib/",
"type:generate:cp-js-src": "cp -RL src/ lib/",
"type:generate:tsc": "yarn tsc",
"type:generate:remove.ts": "find ./lib -type f -name \"*.ts\" -and -not -name \"*.d.ts\" -delete",
"type:generate:remove.tsx": "find ./lib -type f -name \"*.tsx\" -and -not -name \"*.d.ts\" -delete",
"prepare": "husky install"
},
"main": "lib/Animated.js",
"module": "lib/Animated",
"react-native": "src/Animated",
"source": "src/Animated",
"types": "react-native-reanimated.d.ts",
"files": [
"Common/",
"src/",
"lib/",
"libSo/",
"android/src/main/AndroidManifest.xml",
"android/src/main/java/",
"android/build.gradle",
"android/",
"ios/",
"!ios/build/",
"!android/build/",
"RNReanimated.podspec",
"README.md",
"react-native-reanimated.d.ts",
"mock.js",
"plugin.js",
"expo-module.config.json",
"!__snapshots__",
"!*.test.js",
"!*.test.js.map"
],
"repository": {
"type": "git",
"url": "git+https://github.com/software-mansion/react-native-reanimated.git"
},
"author": {
"email": "[email protected]",
"name": "Krzysztof Magiera"
},
"license": "MIT",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/software-mansion/react-native-reanimated/issues"
},
"homepage": "https://github.com/software-mansion/react-native-reanimated#readme",
"dependencies": {
"@babel/plugin-transform-object-assign": "^7.10.4",
"@types/invariant": "^2.2.35",
"invariant": "^2.2.4",
"lodash.isequal": "^4.5.0",
"mockdate": "^3.0.2",
"react-native-screens": "^3.4.0",
"string-hash-64": "^1.0.3"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-gesture-handler": "*"
},
"devDependencies": {
"@babel/core": "^7.7.5",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/preset-env": "^7.7.6",
"@babel/preset-typescript": "^7.7.4",
"@react-native-community/bob": "^0.14.3",
"@react-native-community/eslint-config": "^0.0.5",
"@testing-library/jest-native": "^3.4.3",
"@testing-library/react-hooks": "^5.0.3",
"@testing-library/react-native": "^7.1.0",
"@types/babel-types": "^7.0.9",
"@types/babel__core": "^7.1.12",
"@types/babel__generator": "^7.6.2",
"@types/babel__traverse": "^7.0.15",
"@types/jest": "^26.0.15",
"@types/react-native": "^0.65.1",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"babel-eslint": "^10.0.3",
"babel-jest": "^26.6.3",
"babel-plugin-module-resolver": "^4.1.0",
"clang-format": "^1.5.0",
"eslint": "^7.31.0",
"eslint-config-prettier": "^6.4.0",
"eslint-config-standard": "^14.1.0",
"eslint-import-resolver-babel-module": "^5.2.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"husky": "^7.0.0",
"jest": "^26.6.3",
"lint-staged": "^11.2.0",
"prettier": "^2.2.1",
"react": "17.0.2",
"react-native": "0.67.0-rc.4",
"react-native-codegen": "^0.0.7",
"react-native-gesture-handler": "^1.6.1",
"react-test-renderer": "17.0.2",
"release-it": "^13.7.2",
"typescript": "^4.1.3"
},
"lint-staged": {
"*.(js|ts|tsx)": [
"eslint --ext '.js,.ts,.tsx' src/ --ignore-pattern src/reanimated1 --ignore-pattern react-native-reanimated.d.ts --ignore-pattern docs",
"prettier --write"
],
"**/*.{h,cpp}": "yarn lint:cpp",
"android/src/**/*.java": "yarn format:java",
"android/src/**/*.{h,cpp}": "yarn format:android",
"ios/**/*.{h,m,mm,cpp}": "yarn format:ios",
"Common/**/*.{h,cpp}": "yarn format:common"
},
"release-it": {
"hooks": {
"before:git:bump": [
"# check if version corresponds to changes in native files \n if git diff --name-only ${latestVersion} HEAD | egrep '(android/.*)|(ios/.*)' -q ; then egrep '\\.0$' -q <<< ${version} ; else true ; fi ;"
]
}
},
"@react-native-community/bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module"
]
}
}