From 2c84d69eabe7b94eaed12ffb29a7cb377c423b49 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Fri, 18 May 2018 19:59:23 +0200 Subject: [PATCH] add webpack/constants to git --- .gitignore | 3 --- webpack/constants.js | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 webpack/constants.js diff --git a/.gitignore b/.gitignore index 1ecda50d..406e02d2 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,4 @@ logs *.log .yarnclean -# Local config file -webpack/constants.js - _old \ No newline at end of file diff --git a/webpack/constants.js b/webpack/constants.js new file mode 100644 index 00000000..1d2526ec --- /dev/null +++ b/webpack/constants.js @@ -0,0 +1,21 @@ +/* @flow */ +'use strict'; + +import path from 'path'; + +export const ABSOLUTE_BASE: string = path.normalize(path.join(__dirname, '..')); + +const constants: Object = Object.freeze({ + BUILD: path.join(ABSOLUTE_BASE, 'build/'), + SRC: path.join(ABSOLUTE_BASE, 'src/'), + PORT: 8081, + INDEX: path.join(ABSOLUTE_BASE, 'src/index.html'), + TREZOR_CONNECT_ROOT: path.join(ABSOLUTE_BASE, '../trezor.js2/') +}); + +export const BUILD: string = constants.BUILD; +export const SRC: string = constants.SRC; +export const PORT: string = constants.PORT; +export const INDEX: string = constants.INDEX; + +export default constants; \ No newline at end of file