forked from wordpress-mobile/gutenberg-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
169 lines (169 loc) · 10.8 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
159
160
161
162
163
164
165
166
167
168
169
{
"name": "gutenberg-mobile",
"version": "1.10.0",
"private": true,
"config": {
"jsfiles": "./*.js src/*.js src/**/*.js src/**/**/*.js",
"scssfiles": "src/*.scss src/**/*.scss"
},
"engines": {
"node": ">=8.0.0 <9.0.0 || >=10.0.0",
"npm": ">=6.0.0"
},
"devDependencies": {
"@babel/core": "^7.3.3",
"@wordpress/babel-preset-default": "^4.0.0",
"@wordpress/eslint-plugin": "^2.0.0",
"@wordpress/jest-preset-default": "^4.0.0",
"appium": "^1.13.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.2",
"babel-jest": "^24.1.0",
"babel-plugin-react-native-classname-to-style": "^1.2.1",
"babel-plugin-react-native-platform-specific-extensions": "^1.1.1",
"cross-env": "^5.1.4",
"empty": "^0.10.1",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.11.2",
"enzyme-to-json": "^3.3.5",
"equivalent-key-map": "^0.2.0",
"eslint": "^5.12.1",
"eslint-plugin-flowtype": "^3.4.2",
"eslint-plugin-jest": "^21.15.0",
"eslint-plugin-react-native": "^3.6.0",
"eslint-plugin-wordpress": "git://github.com/WordPress-Coding-Standards/eslint-plugin-wordpress.git#552af1454d175e15f6d25aadc2ccde30a1922d4f",
"flow-bin": "0.92.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.1.0",
"jest-junit": "^6.3.0",
"metro-react-native-babel-preset": "^0.52.0",
"node-fetch": "^2.3.0",
"prettier": "git+https://github.com/Automattic/calypso-prettier.git#calypso-1.9",
"prettier-eslint": "^8.8.2",
"prettier-eslint-cli": "^4.7.1",
"react-dom": "16.8.6",
"react-native-sass-transformer": "^1.1.1",
"react-test-renderer": "16.8.3",
"regenerator-runtime": "^0.12.1",
"remote-redux-devtools": "^0.5.12",
"rungen": "^0.3.2",
"sprintf-js": "^1.1.1",
"wd": "^1.11.1"
},
"scripts": {
"start": "react-native start",
"start:inside-gb": "react-native start --config `pwd`/rn-cli-inside-gb.config.js",
"start:reset": "yarn clean:runtime && yarn start --reset-cache",
"start:inside-gb:reset": "yarn clean:runtime && yarn start:inside-gb --reset-cache",
"start:debug": "node --inspect-brk node_modules/.bin/react-native start",
"start:inside-gb:debug": "node --inspect-brk node_modules/.bin/react-native start:inside-gb",
"patch-metro-no-file-watch": "cp node_modules/metro/src/node-haste/DependencyGraph.js ./ && cp DependencyGraph.js.patched node_modules/metro/src/node-haste/DependencyGraph.js",
"un-patch-metro-no-file-watch": "cp ./DependencyGraph.js node_modules/metro/src/node-haste/DependencyGraph.js",
"prebundle:android": "yarn patch-metro-no-file-watch",
"postbundle:android": "yarn un-patch-metro-no-file-watch",
"bundle": "yarn bundle:android && yarn bundle:ios",
"bundle:android": "mkdir -p bundle/android && react-native bundle --platform android --dev false --entry-file index.js --assets-dest bundle/android --bundle-output bundle/android/App.js --sourcemap-output bundle/android/App.js.map",
"bundle:ios": "mkdir -p bundle/ios && react-native bundle --platform ios --dev false --entry-file index.js --assets-dest bundle/ios --bundle-output bundle/ios/App.js --sourcemap-output bundle/ios/App.js.map",
"i18n-cache": "node i18n-cache/index.js",
"postinstall": "yarn i18n-cache",
"install:wpcli": "(test -x bin/wp-cli.phar || curl -Ls https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -o bin/wp-cli.phar && chmod +x bin/wp-cli.phar) && bin/wp-cli.phar --info",
"prewp": "yarn install:wpcli",
"wp": "php -d memory_limit=512M bin/wp-cli.phar",
"premakepot": "( command -v xgettext >/dev/null 2>&1 || { echo \"ERROR: xgettext is required to parse our Flow code.\" >&2; exit 1; } ) && yarn makepot:gutenberg",
"makepot": "bash -c \"xgettext -f <( find . -path './src/*.js' ! -path 'node_modules' -print ) --from-code=UTF-8 -k__ -k_n -k_x -k_nx -x ./gutenberg.pot -o ./gutenberg-mobile.pot\"",
"makepot:gutenberg": "yarn clean:gutenberg && yarn wp i18n make-pot ./gutenberg --ignore-domain gutenberg.pot",
"android": "react-native run-android",
"prewpandroid": "rm -Rf $TMPDIR/gbmobile-wpandroidfakernroot && mkdir $TMPDIR/gbmobile-wpandroidfakernroot && ln -s $(cd \"$(dirname \"../../../\")\"; pwd) $TMPDIR/gbmobile-wpandroidfakernroot/android",
"wpandroid": "yarn android --root $TMPDIR/gbmobile-wpandroidfakernroot --variant wasabiDebug --appIdSuffix beta --appFolder WordPress --main-activity=ui.WPLaunchActivity",
"preios": "yarn preios:xcode10 && yarn preios:carthage",
"preios:carthage": "cd react-native-aztec && yarn install-aztec-ios",
"preios:carthage:update": "cd react-native-aztec && yarn update-aztec-ios",
"preios:xcode10": "cd node_modules/react-native && ./scripts/ios-install-third-party.sh && cd third-party/glog-0.3.5 && [ -f libglog.pc ] || ../../scripts/ios-configure-glog.sh",
"ios": "react-native run-ios",
"test": "cross-env NODE_ENV=test jest --verbose --config jest.config.js",
"test:inside-gb": "cross-env NODE_ENV=test jest --verbose --config jest_gb.config.js",
"test:debug": "cross-env NODE_ENV=test node --inspect-brk jest --runInBand --verbose --config jest.config.js",
"device-tests": "cross-env NODE_ENV=test jest --no-cache --maxWorkers=3 --reporters=default --reporters=jest-junit --verbose --config jest_ui.config.js",
"device-tests:local": "cross-env NODE_ENV=test jest --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --verbose --config jest_ui.config.js",
"device-tests:debug": "cross-env NODE_ENV=test node $NODE_DEBUG_OPTION --inspect-brk node_modules/jest/bin/jest --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --verbose --config jest_ui.config.js",
"test:e2e": "yarn test:e2e:android && yarn test:e2e:ios",
"test:e2e:android": "TEST_RN_PLATFORM=android yarn device-tests",
"test:e2e:android:debug": "TEST_RN_PLATFORM=android yarn device-tests:debug",
"test:e2e:ios": "TEST_RN_PLATFORM=ios yarn device-tests",
"test:e2e:android:local": "yarn test:e2e:build-app:android && yarn test:e2e:install-app:android && TEST_RN_PLATFORM=android yarn device-tests:local",
"test:e2e:android:local:debug": "yarn test:e2e:build-app:android && yarn test:e2e:install-app:android && yarn test:e2e:android:debug",
"test:e2e:ios:local": "yarn test:e2e:build-app:ios && yarn test:e2e:install-app:ios && TEST_RN_PLATFORM=ios yarn device-tests:local",
"test:e2e:bundle:android": "mkdir -p android/app/src/main/assets && react-native bundle --reset-cache --platform android --dev false --minify false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res",
"test:e2e:build-app:android": "yarn test:e2e:bundle:android && cd android && ./gradlew clean && ./gradlew assembleDebug",
"test:e2e:install-app:android": "cd android && ./gradlew installDebug",
"test:e2e:bundle:ios": "react-native bundle --reset-cache --platform=ios --dev=false --minify false --entry-file=index.js --bundle-output=./ios/build/gutenberg/Build/Products/Release-iphonesimulator/gutenberg.app/main.jsbundle --assets-dest=./ios/build/gutenberg/Build/Products/Release-iphonesimulator/gutenberg.app",
"test:e2e:build-app:ios": "react-native run-ios --configuration Release --no-packager && yarn test:e2e:bundle:ios && WORK_DIR=$(pwd) && cd ./ios/build/gutenberg/Build/Products/Release-iphonesimulator && zip -r $WORK_DIR/ios/Gutenberg.app.zip gutenberg.app",
"test:e2e:install-app:ios": "yarn test:e2e:build-app:ios",
"flow": "flow",
"prettier": "prettier-eslint --write $npm_package_config_jsfiles $npm_package_config_scssfiles",
"clean": "yarn clean:aztec; yarn cache clean; yarn clean:haste; yarn clean:jest; yarn clean:metro; yarn clean:react; yarn clean:watchman; yarn clean:node;",
"clean:runtime": "yarn clean:haste; yarn clean:react; yarn clean:metro; yarn clean:jest; yarn clean:watchman; yarn clean:babel-cache",
"clean:aztec": "cd react-native-aztec && yarn clean && cd example && yarn clean",
"clean:gutenberg": "cd gutenberg && npm run clean:packages && rm -rf build",
"clean:haste": "rm -rf /tmp/haste-map-react-native-packager-*",
"clean:install": "yarn clean; yarn",
"clean:jest": "yarn jest --clearCache --config jest.config.js; rm -rf $TMPDIR/jest_*",
"clean:jest-inside-gb": "yarn jest --clearCache --config jest_gb.config.js; rm -rf $TMPDIR/jest_*",
"clean:metro": "rm -rf $TMPDIR/metro-cache-*;",
"clean:react": "rm -rf $TMPDIR/react-*",
"clean:node": "rm -rf node_modules",
"clean:watchman": "command -v watchman >/dev/null 2>&1 && watchman watch-del-all; true",
"clean:babel-cache": "rm -rf ./node_modules/.cache/babel-loader/*",
"clean:i18n-cache": "rm -rf ./i18n-cache/data/*.json && rm -f ./i18n-cache/index.native.js",
"lint": "eslint . --ext .js",
"lint:fix": "yarn lint --fix",
"version": "yarn bundle && git add -A bundle"
},
"dependencies": {
"@babel/runtime": "^7.3.1",
"@react-native-community/cli": "^1.5.2",
"classnames": "^2.2.5",
"dom-react": "^2.2.1",
"domutils": "^1.7.0",
"fast-average-color": "^4.3.0",
"hpq": "^1.2.0",
"jed": "^1.1.1",
"jest-serializer-enzyme": "^1.0.0",
"js-beautify": "^1.7.5",
"jsc-android": "^241213.1.0",
"jsdom-jscore-rn": "git+https://github.com/iamcco/jsdom-jscore-rn.git#a562f3d57c27c13e5bfc8cf82d496e69a3ba2800",
"jsx-to-string": "^1.3.1",
"memize": "^1.0.5",
"metro-react-native-babel-transformer": "^0.53.0",
"moment": "^2.22.1",
"moment-timezone": "^0.5.16",
"node-libs-react-native": "^1.0.2",
"node-sass": "^4.12.0",
"react": "16.8.6",
"react-native": "jtreanor/react-native#v0.60.0-patched",
"react-native-hr": "git+https://github.com/Riglerr/react-native-hr.git#2d01a5cf77212d100e8b99e0310cce5234f977b3",
"react-native-keyboard-aware-scroll-view": "git+https://github.com/wordpress-mobile/react-native-keyboard-aware-scroll-view.git#gb-v0.8.7",
"react-native-modal": "^6.5.0",
"react-native-recyclerview-list": "git+https://github.com/wordpress-mobile/react-native-recyclerview-list.git#eadaa2f62d2f488d4dc80f9148e52b62047297ab",
"react-native-safe-area": "^0.5.0",
"react-native-svg": "git+https://github.com/wordpress-mobile/react-native-svg.git#f16e9adae71c6cf3158f2356cf95fff5c2075e0f",
"react-native-video": "git+https://github.com/wordpress-mobile/react-native-video.git#3a0e2fa6fc6bf1fe1a54adb2dbf94545b28c2bc4",
"react-redux": "^5.0.7",
"redux": "^3.7.2",
"redux-multi": "^0.1.12",
"redux-optimist": "^1.0.0",
"refx": "^3.0.0",
"rememo": "^3.0.0",
"shallowequal": "^1.0.2",
"showdown": "^1.8.6",
"simple-html-tokenizer": "^0.4.1",
"tannin": "^1.0.1",
"tinycolor2": "^1.4.1",
"traverse": "^0.6.6",
"turbo-combine-reducers": "^1.0.2",
"underscore": "^1.9.1"
},
"resolutions": {
"@react-native-community/cli": "^1.5.2"
}
}