2017-07-04 03:28:56 +00:00
|
|
|
'use strict';
|
|
|
|
const path = require('path');
|
2017-04-12 04:59:58 +00:00
|
|
|
|
2018-01-22 23:38:06 +00:00
|
|
|
const paths = {
|
|
|
|
root: path.join(__dirname, '../'),
|
|
|
|
src: path.join(__dirname, '../common'),
|
|
|
|
output: path.join(__dirname, '../dist'),
|
|
|
|
assets: path.join(__dirname, '../common/assets'),
|
|
|
|
static: path.join(__dirname, '../static'),
|
|
|
|
electron: path.join(__dirname, '../electron-app'),
|
|
|
|
shared: path.join(__dirname, '../shared'),
|
|
|
|
modules: path.join(__dirname, '../node_modules'),
|
|
|
|
}
|
|
|
|
|
2017-04-12 04:59:58 +00:00
|
|
|
module.exports = {
|
2018-01-22 23:38:06 +00:00
|
|
|
// Configuration
|
2017-09-20 00:47:46 +00:00
|
|
|
port: process.env.HTTPS ? 3443 : 3000,
|
2018-02-07 04:28:28 +00:00
|
|
|
title: 'MyCrypto',
|
2018-01-22 23:38:06 +00:00
|
|
|
path: paths,
|
|
|
|
|
|
|
|
// Typescript rule config
|
|
|
|
typescriptRule: {
|
|
|
|
test: /\.(ts|tsx)$/,
|
|
|
|
include: [paths.src, paths.shared, paths.electron],
|
|
|
|
use: [{ loader: 'ts-loader', options: { happyPackMode: true, logLevel: 'info' } }],
|
|
|
|
exclude: ['assets', 'sass', 'vendor', 'translations/lang']
|
|
|
|
.map(dir => path.resolve(paths.src, dir))
|
|
|
|
.concat([paths.modules])
|
|
|
|
},
|
|
|
|
|
|
|
|
// File resolution
|
|
|
|
resolve: {
|
2018-03-20 20:08:57 +00:00
|
|
|
extensions: ['.ts', '.tsx', '.js', '.css', '.json', '.scss'],
|
2018-01-22 23:38:06 +00:00
|
|
|
modules: [
|
|
|
|
paths.src,
|
|
|
|
paths.modules,
|
|
|
|
paths.root,
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
// Vendor modules
|
|
|
|
vendorModules: [
|
2017-12-30 20:29:04 +00:00
|
|
|
'bip39',
|
|
|
|
'bn.js',
|
|
|
|
'classnames',
|
2018-03-18 04:52:47 +00:00
|
|
|
'ethereum-blockies-base64',
|
2017-12-30 20:29:04 +00:00
|
|
|
'ethereumjs-abi',
|
|
|
|
'ethereumjs-tx',
|
|
|
|
'ethereumjs-util',
|
|
|
|
'ethereumjs-wallet',
|
|
|
|
'hdkey',
|
|
|
|
'idna-uts46',
|
|
|
|
'jsonschema',
|
|
|
|
'lodash',
|
|
|
|
'moment',
|
|
|
|
'normalizr',
|
|
|
|
'qrcode',
|
|
|
|
'qrcode.react',
|
|
|
|
'query-string',
|
2017-07-04 03:28:56 +00:00
|
|
|
'react',
|
|
|
|
'react-dom',
|
2017-12-30 20:29:04 +00:00
|
|
|
'react-markdown',
|
|
|
|
'react-redux',
|
|
|
|
'react-router-dom',
|
2017-07-04 03:28:56 +00:00
|
|
|
'react-router-redux',
|
2017-12-30 20:29:04 +00:00
|
|
|
'react-transition-group',
|
|
|
|
'redux',
|
|
|
|
'redux-logger',
|
2017-07-25 23:13:25 +00:00
|
|
|
'redux-saga',
|
2017-12-30 20:29:04 +00:00
|
|
|
'scryptsy',
|
|
|
|
'uuid',
|
|
|
|
'wallet-address-validator',
|
2017-07-04 03:28:56 +00:00
|
|
|
'whatwg-fetch'
|
2017-12-30 20:29:04 +00:00
|
|
|
]
|
2017-07-04 03:28:56 +00:00
|
|
|
};
|