Skip to content

Commit

Permalink
Merge pull request CovidShield#97 from CovidShield/translations-build…
Browse files Browse the repository at this point in the history
…-step

git ignore translations file and run on commands instead
  • Loading branch information
jordanAtShopify authored Jun 24, 2020
2 parents d7dd525 + c45477f commit efe1b57
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,6 @@ ios/GoogleService-Info.plist
ios/Generated.xcconfig
android/app/google-services.json
.env.local

# Translations
src/locale/translations/index.js
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"version": "0.0.1",
"private": true,
"scripts": {
"bundle-android": "react-native bundle --dev false --platform android --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/",
"bundle-ios": "react-native bundle --dev false --platform ios --entry-file index.js --bundle-output ios/main.jsbundle --assets-dest ios",
"bundle-android": "yarn generate-translations && react-native bundle --dev false --platform android --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/",
"bundle-ios": "yarn generate-translations && react-native bundle --dev false --platform ios --entry-file index.js --bundle-output ios/main.jsbundle --assets-dest ios",
"codegen-protobuf": "pbjs -t static-module -o src/services/BackendService/covidshield/covidshield.js src/services/BackendService/covidshield/covidshield.proto && pbts -o src/services/BackendService/covidshield/covidshield.d.ts src/services/BackendService/covidshield/covidshield.js",
"generate-translations": "node translations.js",
"generate-translations": "node scripts/translations.js",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"pod-install": "pushd ios; bundle exec pod install; popd",
"run-android": "react-native run-android --variant debug",
"run-ios": "react-native run-ios",
"start": "react-native start --reset-cache",
"run-android": "yarn generate-translations && react-native run-android --variant debug",
"run-ios": "yarn generate-translations && react-native run-ios",
"start": "yarn generate-translations && react-native start --reset-cache",
"test": "jest",
"tsc": "tsc"
},
Expand Down
File renamed without changes.
Loading

0 comments on commit efe1b57

Please sign in to comment.