Skip to content
Snippets Groups Projects
Commit f3927243 authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

Merge branch 'gitlab-cicd' into 'master'

Add gitlab-ci file

See merge request !14
parents e887c1fd c5b6bc2b
No related branches found
No related tags found
1 merge request!14Add gitlab-ci file
......@@ -89,7 +89,3 @@ sw.*
# Vim swap files
*.swp
# Script generated files
*.missing
keysUsed
\ No newline at end of file
stages:
- test
- build
check-i18n-job:
image: ubuntu:20.04
stage: test
script:
- apt update && apt-get -y install jq
- ./utils/findMissingI18nKeys.sh
only:
- merge_requests
build-job:
image: node:16
stage: build
script:
- node --version
- npm --version
- npm install
- npm run build
only:
- merge_requests
......@@ -5,7 +5,10 @@
<img :src="$icon(512)" alt="Accueil" class="logo" />
<div>
<h1 class="h3">
Wotwizard <small><span class="small">v0.22</span></small>
Wotwizard
<small
><span class="small">v{{ $config.clientVersion }}</span></small
>
</h1>
<small class="text-muted">{{ $t("slogan") }}</small>
</div>
......
import i18n from "./i18n"
import webpack from "webpack"
import pkg from "./package.json"
export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
......@@ -8,6 +9,12 @@ export default {
// Target: https://go.nuxtjs.dev/config-target
target: "static",
// Variables that can be accessed by $config
publicRuntimeConfig: {
// Application version from package.json
clientVersion: pkg.version
},
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: "wotwizard-ui",
......
{
"name": "wotwizard-ui",
"version": "1.0.0",
"version": "0.22.0",
"private": true,
"scripts": {
"dev": "nuxt",
......
......@@ -34,7 +34,7 @@ do
then
echo -e "create ${RED}$key${NC} in file ${GREEN}$f${NC}"
value=$(jq -e ".$key" i18n/locales/fr.json)
if [ "$value" == "null" ]
if [ $value = "null" ]
then
filter=".$key = \"TO_TRANSLATE\""
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment