Skip to content

Commit

Permalink
Merge pull request #1516 from wordpress-mobile/force-i18n-cache-on-bu…
Browse files Browse the repository at this point in the history
…ndle

Force translation update when generating new bundles
  • Loading branch information
koke authored Oct 30, 2019
2 parents 928d285 + 6c7d191 commit e776a6c
Show file tree
Hide file tree
Showing 5 changed files with 3,429 additions and 3,387 deletions.
3,400 changes: 1,710 additions & 1,690 deletions bundle/android/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/App.js.map

Large diffs are not rendered by default.

3,410 changes: 1,715 additions & 1,695 deletions bundle/ios/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/App.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,14 @@
"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": "yarn i18n-cache:force",
"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",
"i18n-cache:force": "cross-env REFRESH_I18N_CACHE=1 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",
Expand Down

0 comments on commit e776a6c

Please sign in to comment.