Browse Source

Generate i18n files on ci/cd

develop
Alexis Faizeau 5 months ago
parent
commit
fdec12d311
  1. 5
      .github/workflows/continuous_integration.yml
  2. 4
      .github/workflows/push-to-npm.yml
  3. 3
      front/.prettierignore
  4. 2
      front/package.json

5
.github/workflows/continuous_integration.yml

@ -10,7 +10,6 @@ on:
pull_request:
jobs:
continuous-integration-front:
name: "Continuous Integration Front"
@ -46,6 +45,10 @@ jobs:
run: ./templater.sh
working-directory: "front"
- name: "Generate i18n files"
run: yarn run typesafe-i18n
working-directory: "front"
- name: "Build"
run: yarn run build
env:

4
.github/workflows/push-to-npm.yml

@ -43,6 +43,10 @@ jobs:
run: ./templater.sh
working-directory: "front"
- name: "Generate i18n files"
run: yarn run typesafe-i18n
working-directory: "front"
- name: "Build"
run: yarn run build-typings
env:

3
front/.prettierignore

@ -1,2 +1,5 @@
src/Messages/generated
src/Messages/JsonMessages
src/i18n/i18n-svelte.ts
src/i18n/i18n-types.ts
src/i18n/i18n-util.ts

2
front/package.json

@ -82,7 +82,7 @@
"svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore\"",
"pretty": "yarn prettier --write 'src/**/*.{ts,svelte}'",
"pretty-check": "yarn prettier --check 'src/**/*.{ts,svelte}'",
"typesafe-i18n": "typesafe-i18n"
"typesafe-i18n": "typesafe-i18n --no-watch"
},
"lint-staged": {
"*.svelte": [

Loading…
Cancel
Save