From 5bd507b8736f726e8f7c2d1b3de6418528b8e124 Mon Sep 17 00:00:00 2001 From: artgits Date: Tue, 22 Mar 2022 00:08:09 +0300 Subject: [PATCH] Version has been added --- client/package.json | 3 +++ client/rollup.config.js | 4 +++- client/src/components/ContactTab.svelte | 3 ++- client/src/config.js | 4 ++-- server/lib/server.ex | 13 ++++++++++++- 5 files changed, 22 insertions(+), 5 deletions(-) diff --git a/client/package.json b/client/package.json index 3bdda8f..bd277f3 100644 --- a/client/package.json +++ b/client/package.json @@ -36,5 +36,8 @@ "svelte": "^3.44.3", "svelte-preprocess": "^4.10.1", "svelte-select": "^4.4.7" + }, + "devDependencies": { + "@rollup/plugin-json": "^4.1.0" } } diff --git a/client/rollup.config.js b/client/rollup.config.js index 7a3173b..1b7464c 100644 --- a/client/rollup.config.js +++ b/client/rollup.config.js @@ -13,6 +13,7 @@ import html from '@rollup/plugin-html'; import copy from 'rollup-plugin-copy' import babel from '@rollup/plugin-babel'; import fs from 'fs' +import json from "@rollup/plugin-json"; configDotenv(); @@ -123,7 +124,8 @@ export default { // If we're building for production (npm run build // instead of npm run dev), minify production && terser(), - glslify() + glslify(), + json() ], watch: { clearScreen: false diff --git a/client/src/components/ContactTab.svelte b/client/src/components/ContactTab.svelte index 4020066..8bd5be7 100644 --- a/client/src/components/ContactTab.svelte +++ b/client/src/components/ContactTab.svelte @@ -3,7 +3,7 @@ import SocialLink from '../components/SocialLink.svelte' import twitterIcon from '../assets/icon/cib-twitter.svg' import atIcon from '../assets/icon/cil-at.svg' import Mononaut from '../components/Mononaut.svelte' - +import config from '../../package.json'