-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathpackage.json
108 lines (108 loc) · 8.38 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
{
"name": "gutenberg-mobile",
"version": "1.34.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.7.7",
"@babel/runtime": "^7.7.7",
"@react-native-community/cli": "^4.7.0",
"@wordpress/babel-preset-default": "file:./gutenberg/packages/babel-preset-default",
"@wordpress/eslint-plugin": "file:./gutenberg/packages/eslint-plugin",
"@wordpress/jest-preset-default": "file:./gutenberg/packages/jest-preset-default",
"@wordpress/prettier-config": "file:./gutenberg/packages/prettier-config",
"appium": "1.17.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.2",
"babel-jest": "^24.9.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": "^6.8.0",
"eslint-plugin-eslint-comments": "3.1.2",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-react-native": "^3.6.0",
"gettext-parser": "^4.0.3",
"husky": "^3.0.2",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.9.0",
"jest-junit": "^6.3.0",
"metro-react-native-babel-preset": "^0.58.0",
"node-fetch": "^2.3.0",
"patch-package": "^6.2.2",
"prettier": "npm:[email protected]",
"react-native-sass-transformer": "^1.1.1",
"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": {
"postinstall": "npm ci --prefix gutenberg",
"start": "react-native start --config ./metro.config.js",
"start:reset": "npm run core clean:runtime && npm run start -- --reset-cache",
"core": "cd gutenberg && npm run native",
"prern-bundle": "patch-package --patch-dir gutenberg/packages/react-native-editor/metro-patch",
"rn-bundle": "react-native bundle",
"postrn-bundle": "patch-package --reverse --patch-dir gutenberg/packages/react-native-editor/metro-patch",
"bundle": "npm run clean; npm run bundle:js && npm run genstrings",
"bundle:js": "npm run bundle:android && npm run bundle:ios",
"bundle:android": "mkdir -p bundle/android && npm run rn-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 && npm run rn-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",
"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": "npm run install:wpcli",
"wp": "php -d memory_limit=4G bin/wp-cli.phar",
"makepot:android": "npm run wp -- i18n make-pot ./gutenberg/packages --include=*.native.js,*.android.js --exclude=test/* --subtract=./gutenberg.pot --ignore-domain gutenberg-android.pot",
"makepot:ios": "npm run wp -- i18n make-pot ./gutenberg/packages --include=*.native.js,*.ios.js --exclude=test/* --subtract=./gutenberg.pot --ignore-domain gutenberg-ios.pot",
"premakepot:gutenberg": "npm run clean:gutenberg && npm run build:gutenberg",
"makepot:gutenberg": "npm run wp -- i18n make-pot ./gutenberg/build --ignore-domain gutenberg.pot",
"postmakepot:gutenberg": "npm run clean:gutenberg",
"pregenstrings": "test -f gutenberg.pot || npm run makepot:gutenberg",
"genstrings": "npm run genstrings:android && npm run genstrings:ios",
"genstrings:android": "npm run makepot:android && ./bin/po2android.js gutenberg-android.pot bundle/android/strings.xml",
"genstrings:ios": "npm run makepot:ios && ./bin/po2swift.js gutenberg-ios.pot bundle/ios/GutenbergNativeTranslations.swift",
"prewpandroid": "rm -Rf $TMPDIR/gbmobile-wpandroidfakernroot && mkdir $TMPDIR/gbmobile-wpandroidfakernroot && ln -s $(cd \"$(dirname \"../../../\")\"; pwd) $TMPDIR/gbmobile-wpandroidfakernroot/android",
"wpandroid": "cd gutenberg && react-native run-android --root $TMPDIR/gbmobile-wpandroidfakernroot --variant wasabiDebug --appIdSuffix beta --appFolder WordPress --main-activity=ui.WPLaunchActivity",
"test": "cross-env NODE_ENV=test jest --verbose --config ./jest.config.js",
"test:debug": "cross-env NODE_ENV=test node --inspect-brk node_modules/.bin/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-canary": "cross-env NODE_ENV=test jest --no-cache --maxWorkers=2 --testNamePattern=@canary --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:bundle:android": "mkdir -p gutenberg/packages/react-native-editor/android/app/src/main/assets && npm run rn-bundle -- --reset-cache --platform android --dev false --minify false --entry-file index.js --bundle-output gutenberg/packages/react-native-editor/android/app/src/main/assets/index.android.bundle --assets-dest gutenberg/packages/react-native-editor/android/app/src/main/res",
"test:e2e:build-app:android": "cd gutenberg/packages/react-native-editor/android && ./gradlew clean && ./gradlew assembleDebug",
"test:e2e:install-app:android": "cd gutenberg/packages/react-native-editor/android && ./gradlew installDebug",
"test:e2e:start-test-runner:android:local": "TEST_RN_PLATFORM=android ANDROID_APP_PATH='./gutenberg/packages/react-native-editor/android/app/build/outputs/apk/debug/app-debug.apk' npm run device-tests:local",
"test:e2e:start-test-runner:android:debug": "TEST_RN_PLATFORM=android ANDROID_APP_PATH='./gutenberg/packages/react-native-editor/android/app/build/outputs/apk/debug/app-debug.apk' npm run device-tests:debug",
"test:e2e:android:local": "npm run test:e2e:bundle:android && npm run test:e2e:build-app:android && npm run test:e2e:install-app:android && npm run test:e2e:start-test-runner:android:local",
"test:e2e:bundle:ios": "mkdir -p gutenberg/packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app && npm run rn-bundle -- --reset-cache --platform=ios --dev=false --minify false --entry-file=index.js --bundle-output=./gutenberg/packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app/main.jsbundle --assets-dest=./gutenberg/packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app",
"test:e2e:build-app:ios": "SKIP_BUNDLING=true npm run core test:e2e:build-app:ios",
"test:e2e:start-test-runner:ios:local": "TEST_RN_PLATFORM=ios IOS_APP_PATH='./gutenberg/packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app' npm run device-tests:local",
"test:e2e:start-test-runner:ios:debug": "TEST_RN_PLATFORM=ios IOS_APP_PATH='./gutenberg/packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app' npm run device-tests:debug",
"test:e2e:ios:local": "npm run test:e2e:bundle:ios && npm run test:e2e:build-app:ios && npm run test:e2e:start-test-runner:ios:local",
"build:gutenberg": "cd gutenberg && npm run build",
"clean": "npm run core clean; npm run clean:gutenberg; npm run clean:pot",
"clean:gutenberg": "cd gutenberg && npm run clean:packages",
"clean:pot": "rm -f gutenberg*.pot",
"lint": "eslint . --ext .js",
"lint:fix": "npm run lint -- --fix",
"version": "npm run bundle && git add -A bundle"
},
"dependencies": {
"email-validator": "2.0.4",
"eslint-plugin-jsdoc": "^30.2.4"
}
}