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