forked from software-mansion/react-native-reanimated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
158 lines (158 loc) · 6.24 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
153
154
155
156
157
158
{
"name": "react-native-reanimated",
"version": "2.8.0",
"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:tsc:declaration && yarn type:generate:remove.ts && yarn type:generate:remove.tsx && yarn type:generate:remove.js:from-src",
"type:generate:clean": "rm -rf lib/ && mkdir lib/",
"type:generate:cp-js-src": "cp -RL src/* lib/",
"type:generate:tsc": "yarn tsc",
"type:generate:tsc:declaration": "yarn tsc --project tsconfig.json --pretty --declaration --emitDeclarationOnly --outDir lib/types",
"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",
"type:generate:remove.js:from-src": "find ./src/reanimated2 -type f -name \"*.js\" -delete",
"prepare": "husky install",
"circular_dependency_check": "yarn madge --extensions js,ts,tsx --circular ./src",
"setup": "yarn && cd Example && yarn && cd ios && pod install --verbose && cd ../..",
"clean": "rm -rf node_modules && cd Example && rm -rf node_modules && cd ios && pod deintegrate && cd ../..",
"reset": "yarn clean && yarn setup",
"clean:deep": "cd android && rm -rf .cxx .gradle build && cd ../Example/android && rm -rf .gradle build app/build && cd ../.. && yarn clean",
"reset:deep": "yarn clean:deep && yarn setup"
},
"main": "lib/Animated.js",
"module": "lib/Animated",
"react-native": "src/Animated",
"source": "src/Animated",
"types": "react-native-reanimated.d.ts",
"files": [
"Common/",
"src/",
"lib/",
"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",
"!__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.16.7",
"@babel/preset-typescript": "^7.16.7",
"@types/invariant": "^2.2.35",
"invariant": "^2.2.4",
"lodash.isequal": "^4.5.0",
"setimmediate": "^1.0.5",
"string-hash-64": "^1.0.3"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"@babel/core": "^7.0.0-0"
},
"devDependencies": {
"@babel/core": "^7.17.2",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/preset-env": "^7.16.11",
"@react-native-community/bob": "^0.17.1",
"@react-native-community/eslint-config": "^0.0.5",
"@testing-library/jest-native": "^4.0.4",
"@testing-library/react-hooks": "^5.0.3",
"@testing-library/react-native": "^7.1.0",
"@types/babel-types": "^7.0.11",
"@types/babel__core": "^7.1.18",
"@types/babel__generator": "^7.6.4",
"@types/babel__traverse": "^7.14.2",
"@types/jest": "^27.4.0",
"@types/react-native": "^0.66.15",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^27.5.1",
"babel-plugin-module-resolver": "^4.1.0",
"clang-format": "^1.6.0",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.3",
"eslint-import-resolver-babel-module": "^5.3.1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-standard": "^5.0.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^11.2.0",
"madge": "^5.0.1",
"prettier": "^2.5.1",
"react": "17.0.2",
"react-native": "0.68.0",
"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"
]
}
}