Skip to content

Commit

Permalink
fix/ci: build backend post install, create directory when building tr…
Browse files Browse the repository at this point in the history
…anslations (#326)

* fix/ci: build backend post install, create directory when building translations
  • Loading branch information
CDFN authored May 8, 2024
1 parent c271119 commit d33d256
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 3 deletions.
6 changes: 6 additions & 0 deletions app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ module.exports = ({config}) => ({
package: 'com.comapeo' + SUFFIX,
googleServicesFile: process.env.GOOGLE_SERVICES_JSON,
},
updates: {
url: 'https://u.expo.dev/2d5b8137-12ec-45aa-9c23-56b6a1c522b7',
},
runtimeVersion: {
policy: 'appVersion',
},
});
252 changes: 250 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"build:translations": "node ./scripts/build-translations.js ",
"build:intl-polyfills": "node ./scripts/build-intl-polyfills.mjs",
"build:backend": "node ./scripts/build-backend.mjs",
"extract-messages": "formatjs extract 'src/frontend/**/*.{ts,tsx}' --ignore='**/*.d.ts' --format crowdin --out-file ./messages/en.json"
"extract-messages": "formatjs extract 'src/frontend/**/*.{ts,tsx}' --ignore='**/*.d.ts' --format crowdin --out-file ./messages/en.json",
"eas-build-post-install": "npm run build:backend && npm run build:translations && npm run build:intl-polyfills"
},
"dependencies": {
"@bam.tech/react-native-image-resizer": "^3.0.7",
Expand Down Expand Up @@ -58,6 +59,7 @@
"expo-status-bar": "~1.11.1",
"expo-system-ui": "^2.9.4",
"expo-task-manager": "~11.7.3",
"expo-updates": "^0.25.9",
"geojson": "^0.5.0",
"geojson-geometries-lookup": "^0.5.0",
"lodash.isequal": "^4.5.0",
Expand Down
1 change: 1 addition & 0 deletions scripts/build-translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ async function compile() {
translations[lang][key] = msgs[key].message;
});
}
fs.mkdirSync(path.join(__dirname, 'translations'));
const output = path.join(__dirname, '../translations/messages.json');
await writeJson(output, translations);
}
Expand Down

0 comments on commit d33d256

Please sign in to comment.