Change naming and veriy test-scheduler function
[bottlenecks.git] / test-scheduler / ui / config / index.js
1 'use strict'
2 // Template version: 1.3.1
3 // see http://vuejs-templates.github.io/webpack for documentation.
4
5 const path = require('path')
6
7 module.exports = {
8   dev: {
9
10     // Paths
11     assetsSubDirectory: 'static',
12     assetsPublicPath: '/',
13     proxyTable: {
14         '/wf-graph': {
15             target: 'http://conductor_conductor-ui_1:5000/',
16             changeOrigin: true,
17             pathRewrite: {'^/wf-graph':''}
18         },
19         '/api': {
20             target: 'http://conductor_conductor-ui_1:5000/',
21             changeOrigin: true
22         },
23         '/wf-server': {
24             target: 'http://conductor_conductor-server_1:8080/',
25             changeOrigin: true,
26             pathRewrite: {'^/workflow':''}
27         },
28         '/parser': {
29             target: 'http://t-scheduler-server:5310/',
30             pathRewrite: {'^/parser':''}
31         }
32     },
33
34     // Various Dev Server settings
35     host: '0.0.0.0', // can be overwritten by process.env.HOST
36     port: 5311, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
37     autoOpenBrowser: false,
38     errorOverlay: true,
39     notifyOnErrors: true,
40     poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
41
42     // Use Eslint Loader?
43     // If true, your code will be linted during bundling and
44     // linting errors and warnings will be shown in the console.
45     useEslint: true,
46     // If true, eslint errors and warnings will also be shown in the error overlay
47     // in the browser.
48     showEslintErrorsInOverlay: false,
49
50     /**
51      * Source Maps
52      */
53
54     // https://webpack.js.org/configuration/devtool/#development
55     devtool: 'cheap-module-eval-source-map',
56
57     // If you have problems debugging vue-files in devtools,
58     // set this to false - it *may* help
59     // https://vue-loader.vuejs.org/en/options.html#cachebusting
60     cacheBusting: true,
61
62     cssSourceMap: true
63   },
64
65   build: {
66     // Template for index.html
67     index: path.resolve(__dirname, '../dist/index.html'),
68
69     // Paths
70     assetsRoot: path.resolve(__dirname, '../dist'),
71     assetsSubDirectory: 'static',
72     assetsPublicPath: '/',
73
74     /**
75      * Source Maps
76      */
77
78     productionSourceMap: true,
79     // https://webpack.js.org/configuration/devtool/#production
80     devtool: '#source-map',
81
82     // Gzip off by default as many popular static hosts such as
83     // Surge or Netlify already gzip all static assets for you.
84     // Before setting to `true`, make sure to:
85     // npm install --save-dev compression-webpack-plugin
86     productionGzip: false,
87     productionGzipExtensions: ['js', 'css'],
88
89     // Run the build command with an extra argument to
90     // View the bundle analyzer report after build finishes:
91     // `npm run build --report`
92     // Set to `true` or `false` to always turn it on or off
93     bundleAnalyzerReport: process.env.npm_config_report
94   }
95 }