Add Lingui check to CI (#2058)
* Install lingui eslint plugin, ignore compiled files * Add lingui step to Lint workflow * Run check in other job * Add compile step to web build * Temp: add a new string to test with * Add message * Revert "Temp: add a new string to test with" This reverts commit ef5459d00c3ea9798279e000a5ac43effc117486. * Un-track compiled files * Add check scripts to package.json, build step * Make sure to compile translations prior to test/typecheck * Rename scripts
This commit is contained in:
parent
b05cf9f3c1
commit
edc9ac272c
16 changed files with 685 additions and 668 deletions
|
@ -10,6 +10,7 @@
|
|||
"ios": "expo run:ios",
|
||||
"web": "expo start --web",
|
||||
"build-web": "expo export:web && node ./scripts/post-web-build.js && cp --verbose ./web-build/static/js/*.* ./bskyweb/static/js/",
|
||||
"build-all": "yarn intl:build && eas build --platform all",
|
||||
"start": "expo start --dev-client",
|
||||
"start:prod": "expo start --dev-client --no-dev --minify",
|
||||
"clean-cache": "rm -rf node_modules/.cache/babel-loader/*",
|
||||
|
@ -28,6 +29,8 @@
|
|||
"perf:test:measure": "NODE_ENV=test flashlight test --bundleId xyz.blueskyweb.app --testCommand 'yarn perf:test' --duration 150000 --resultsFilePath .perf/results.json",
|
||||
"perf:test:results": "NODE_ENV=test flashlight report .perf/results.json",
|
||||
"perf:measure": "NODE_ENV=test flashlight measure",
|
||||
"intl:build": "yarn intl:check && yarn intl:compile",
|
||||
"intl:check": "yarn intl:extract && git diff-index --quiet HEAD || (echo '\n⚠️ i18n detected un-extracted translations\n' && exit 1)",
|
||||
"intl:extract": "lingui extract",
|
||||
"intl:compile": "lingui compile"
|
||||
},
|
||||
|
@ -203,6 +206,7 @@
|
|||
"eslint": "^8.19.0",
|
||||
"eslint-plugin-detox": "^1.0.0",
|
||||
"eslint-plugin-ft-flow": "^2.0.3",
|
||||
"eslint-plugin-lingui": "^0.2.0",
|
||||
"eslint-plugin-react": "^7.33.2",
|
||||
"eslint-plugin-react-native-a11y": "^3.3.0",
|
||||
"html-webpack-plugin": "^5.5.0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue