Source version number from package.json (#1145)

This commit is contained in:
William O'Beirne 2018-02-19 22:46:07 -05:00 committed by Daniel Ternyak
parent 00cea6f548
commit 9727051290
1 changed files with 2 additions and 1 deletions

View File

@ -1,10 +1,11 @@
import React from 'react'; // For ANNOUNCEMENT_MESSAGE jsx import React from 'react'; // For ANNOUNCEMENT_MESSAGE jsx
import { getValues } from '../utils/helpers'; import { getValues } from '../utils/helpers';
import packageJson from '../../package.json';
export const languages = require('./languages.json'); export const languages = require('./languages.json');
// Displays in the footer // Displays in the footer
export const VERSION = '0.3.2 (BETA)'; export const VERSION = `${packageJson.version} (BETA)`;
export const N_FACTOR = 8192; export const N_FACTOR = 8192;
// Displays at the top of the site, make message empty string to remove. // Displays at the top of the site, make message empty string to remove.