-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.js
More file actions
41 lines (39 loc) · 1.92 KB
/
config.js
File metadata and controls
41 lines (39 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// simple list of config params to share between webpack & karma
var path = require('path'),
distDir = 'dist',
srcDir = 'src',
distPath = path.resolve(__dirname, distDir),
srcPath = path.resolve(__dirname, srcDir);
module.exports = {
babel_polyfill : 'node_modules/babel-polyfill/dist/polyfill.js',
code_coverage_dir : 'code-coverage-report/',
code_coverage_path : path.resolve(__dirname, 'code-coverage-report'),
code_coverage_lcov_sub_dir : 'report-lcov',
code_coverage_sub_dir : 'html',
dist : 'dist',
dist_css_name : 'dist.css',
dist_path : distPath,
dist_static_path : distPath + '/src/static',
eslint_tests_config : './.eslintrc-tests',
index_html_path : srcPath + '/index.html',
json_path : srcPath + '/static/json/*.json',
src_path : srcPath,
src_static_path : srcPath + '/static',
webpack_actions_path : srcPath + '/modules/actions',
webpack_client_regex : /\.js$|\.jsx$/,
webpack_components_path : srcPath + '/components',
webpack_constants_path : srcPath + '/constants/constants.js',
webpack_css_regex : /\.css$/,
webpack_dev_config : './webpack.dev.config',
webpack_dist_config : './webpack.dist.config',
webpack_entry : ['babel-polyfill', srcPath + '/index.jsx'],
webpack_exclude : /node_modules/,
webpack_modules_path : srcPath + '/modules',
webpack_reducers_path : srcPath + '/modules/reducers',
webpack_resolve_extensions : ['', '.js', '.jsx'],
webpack_sagas_path : srcPath + '/modules/sagas',
webpack_test_config : './webpack.test.config',
webpack_test_context : 'webpack/webpack.test.context.js',
webpack_test_utils_path : srcPath + '/utils/testUtils.js',
webpack_utils_path : srcPath + '/utils/utils.js'
};