2019-08-08 15:17:34 +05:30
|
|
|
--- a/config/webpack.config.js
|
|
|
|
+++ b/config/webpack.config.js
|
2020-02-23 17:54:41 +05:30
|
|
|
@@ -6,7 +6,6 @@
|
2019-08-08 15:17:34 +05:30
|
|
|
const StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
|
|
|
|
const CompressionPlugin = require('compression-webpack-plugin');
|
|
|
|
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
|
|
|
-const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
2019-10-12 22:33:52 +05:30
|
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
2020-01-01 14:40:56 +05:30
|
|
|
const vendorDllHash = require('./helpers/vendor_dll_hash');
|
2019-08-08 15:17:34 +05:30
|
|
|
|
2020-04-09 18:43:07 +05:30
|
|
|
@@ -147,13 +146,13 @@
|
|
|
|
},
|
2019-08-08 15:17:34 +05:30
|
|
|
|
|
|
|
resolve: {
|
2020-04-09 18:43:07 +05:30
|
|
|
- extensions: ['.js', '.gql', '.graphql'],
|
2019-08-08 15:17:34 +05:30
|
|
|
- modules: ['/usr/share/gitlab/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/lib/nodejs'],
|
2020-04-09 18:43:07 +05:30
|
|
|
+ extensions: ['.js', '.gql', '.graphql', '.json'],
|
|
|
|
+ modules: ['/usr/share/gitlab/node_modules','/usr/share/gitlab/vendor/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/share/gitlab/node_modules/markdown-it/node_modules/', '/usr/lib/nodejs', '/usr/share/nodejs'],
|
2019-08-08 15:17:34 +05:30
|
|
|
alias,
|
|
|
|
},
|
|
|
|
|
|
|
|
resolveLoader: {
|
|
|
|
- modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
|
|
|
|
+ modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs','/usr/share/nodejs'],
|
|
|
|
},
|
|
|
|
|
|
|
|
module: {
|
2020-04-11 19:51:50 +05:30
|
|
|
@@ -166,9 +165,13 @@
|
2020-03-28 19:53:26 +05:30
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
2020-04-08 15:34:39 +05:30
|
|
|
- exclude: path =>
|
|
|
|
+ exclude: [ path =>
|
|
|
|
/node_modules\/(?!tributejs)|node_modules|vendor[\\/]assets/.test(path) &&
|
|
|
|
!/\.vue\.js/.test(path),
|
2020-04-11 19:51:50 +05:30
|
|
|
+ /\/usr\/share\/nodejs/,
|
|
|
|
+ /\/usr\/lib\/nodejs/,
|
|
|
|
+ /\/usr\/share\/javascript/
|
2020-04-08 15:34:39 +05:30
|
|
|
+ ],
|
2020-03-28 19:53:26 +05:30
|
|
|
loader: 'babel-loader',
|
|
|
|
options: {
|
|
|
|
cacheDirectory: path.join(CACHE_PATH, 'babel-loader'),
|
2020-04-11 19:51:50 +05:30
|
|
|
@@ -475,19 +478,6 @@
|
2019-08-08 15:17:34 +05:30
|
|
|
// enable HMR only in webpack-dev-server
|
|
|
|
DEV_SERVER_LIVERELOAD && new webpack.HotModuleReplacementPlugin(),
|
|
|
|
|
|
|
|
- // optionally generate webpack bundle analysis
|
|
|
|
- WEBPACK_REPORT &&
|
|
|
|
- new BundleAnalyzerPlugin({
|
|
|
|
- analyzerMode: 'static',
|
|
|
|
- generateStatsFile: true,
|
|
|
|
- openAnalyzer: false,
|
|
|
|
- reportFilename: path.join(ROOT_PATH, 'webpack-report/index.html'),
|
|
|
|
- statsFilename: path.join(ROOT_PATH, 'webpack-report/stats.json'),
|
2019-12-21 21:33:11 +05:30
|
|
|
- statsOptions: {
|
|
|
|
- source: false,
|
|
|
|
- },
|
2019-08-08 15:17:34 +05:30
|
|
|
- }),
|
|
|
|
-
|
|
|
|
new webpack.DefinePlugin({
|
2019-09-30 22:13:22 +05:30
|
|
|
// This one is used to define window.gon.ee and other things properly in tests:
|
2019-12-21 21:33:11 +05:30
|
|
|
'process.env.IS_EE': JSON.stringify(IS_EE),
|
2020-04-11 19:51:50 +05:30
|
|
|
@@ -513,6 +503,7 @@
|
2019-08-08 15:17:34 +05:30
|
|
|
|
2019-09-30 22:13:22 +05:30
|
|
|
node: {
|
|
|
|
fs: 'empty', // sqljs requires fs
|
|
|
|
+ Buffer: 'mock',
|
|
|
|
setImmediate: false,
|
|
|
|
},
|
2019-08-08 15:17:34 +05:30
|
|
|
};
|
2020-01-11 19:08:58 +05:30
|
|
|
--- a/package.json
|
|
|
|
+++ b/package.json
|
2020-04-08 15:34:39 +05:30
|
|
|
@@ -49,63 +49,40 @@
|
2020-03-12 18:50:15 +05:30
|
|
|
"apollo-link": "^1.2.11",
|
2020-01-11 19:08:58 +05:30
|
|
|
"apollo-link-batch-http": "^1.2.11",
|
|
|
|
"apollo-upload-client": "^10.0.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "autosize": "^4.0.2",
|
|
|
|
"aws-sdk": "^2.637.0",
|
2020-01-11 19:08:58 +05:30
|
|
|
- "axios": "^0.19.0",
|
|
|
|
"babel-loader": "^8.0.6",
|
2020-03-12 18:50:15 +05:30
|
|
|
"babel-plugin-lodash": "^3.3.4",
|
2020-04-08 15:34:39 +05:30
|
|
|
"bootstrap": "4.3.1",
|
|
|
|
"brace-expansion": "^1.1.8",
|
2020-01-11 19:08:58 +05:30
|
|
|
"cache-loader": "^4.1.0",
|
|
|
|
- "chart.js": "2.7.2",
|
|
|
|
"classlist-polyfill": "^1.2.0",
|
2020-02-23 17:54:41 +05:30
|
|
|
- "clipboard": "^1.7.1",
|
2020-04-08 15:34:39 +05:30
|
|
|
"codesandbox-api": "0.0.23",
|
2020-03-12 18:50:15 +05:30
|
|
|
"compression-webpack-plugin": "^3.0.1",
|
|
|
|
"copy-webpack-plugin": "^5.0.5",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "core-js": "^3.6.4",
|
2020-01-11 19:08:58 +05:30
|
|
|
"cropper": "^2.3.0",
|
|
|
|
- "css-loader": "^1.0.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "d3": "^4.13.0",
|
2020-01-11 19:08:58 +05:30
|
|
|
- "d3-scale": "^1.0.7",
|
|
|
|
- "d3-selection": "^1.2.0",
|
|
|
|
- "dateformat": "^3.0.3",
|
2020-03-12 18:50:15 +05:30
|
|
|
- "deckar01-task_list": "^2.3.1",
|
2020-01-11 19:08:58 +05:30
|
|
|
"diff": "^3.4.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
"document-register-element": "1.14.3",
|
2020-01-11 19:08:58 +05:30
|
|
|
"dropzone": "^4.2.0",
|
|
|
|
"emoji-regex": "^7.0.3",
|
|
|
|
"emoji-unicode-version": "^0.2.1",
|
|
|
|
- "exports-loader": "^0.7.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
"file-loader": "^5.1.0",
|
|
|
|
"formdata-polyfill": "^3.0.19",
|
|
|
|
"fuzzaldrin-plus": "^0.6.0",
|
|
|
|
"glob": "^7.1.6",
|
2020-01-11 19:08:58 +05:30
|
|
|
"graphql": "^14.0.2",
|
2020-04-08 15:34:39 +05:30
|
|
|
+ "graphql-tag": "^2.0.0",
|
2020-03-12 18:50:15 +05:30
|
|
|
"immer": "^5.2.1",
|
2020-01-11 19:08:58 +05:30
|
|
|
- "imports-loader": "^0.8.0",
|
|
|
|
- "jed": "^1.1.1",
|
|
|
|
"jest-transform-graphql": "^2.1.0",
|
|
|
|
- "jquery": "^3.4.1",
|
|
|
|
- "jquery-ujs": "1.2.2",
|
|
|
|
"jquery.caret": "^0.3.1",
|
2020-04-02 20:22:06 +05:30
|
|
|
"jquery.waitforimages": "^2.2.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "js-cookie": "^2.2.1",
|
2020-01-11 19:08:58 +05:30
|
|
|
- "jszip": "^3.1.3",
|
|
|
|
- "jszip-utils": "^0.0.2",
|
|
|
|
"katex": "^0.10.0",
|
2020-02-23 17:54:41 +05:30
|
|
|
- "lodash": "^4.17.15",
|
2020-04-08 15:34:39 +05:30
|
|
|
"marked": "^0.3.12",
|
|
|
|
"mermaid": "^8.4.8",
|
2020-03-12 18:50:15 +05:30
|
|
|
"monaco-editor": "^0.18.1",
|
2020-01-11 19:08:58 +05:30
|
|
|
"monaco-editor-webpack-plugin": "^1.7.0",
|
|
|
|
- "mousetrap": "^1.4.6",
|
|
|
|
"pdfjs-dist": "^2.0.943",
|
2020-01-11 19:09:17 +05:30
|
|
|
"pikaday": "^1.8.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "popper.js": "^1.16.1",
|
2020-02-23 17:54:41 +05:30
|
|
|
- "prismjs": "^1.6.0",
|
2020-01-11 19:08:58 +05:30
|
|
|
"prosemirror-markdown": "^1.3.0",
|
2020-02-23 17:54:41 +05:30
|
|
|
- "prosemirror-model": "^1.6.4",
|
|
|
|
"raphael": "^2.2.7",
|
2020-04-08 15:34:39 +05:30
|
|
|
"raw-loader": "^4.0.0",
|
|
|
|
"sanitize-html": "^1.22.0",
|
|
|
|
@@ -118,16 +95,11 @@
|
2020-01-11 19:08:58 +05:30
|
|
|
"svg4everybody": "2.1.9",
|
|
|
|
"swagger-ui-dist": "^3.24.3",
|
|
|
|
"three": "^0.84.0",
|
|
|
|
- "three-orbit-controls": "^82.1.0",
|
|
|
|
- "three-stl-loader": "^1.0.4",
|
2020-04-08 15:34:39 +05:30
|
|
|
- "timeago.js": "^4.0.2",
|
2020-01-11 19:08:58 +05:30
|
|
|
"tiptap": "^1.8.0",
|
|
|
|
"tiptap-commands": "^1.4.0",
|
|
|
|
"tiptap-extensions": "^1.8.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
"tributejs": "4.1.3",
|
|
|
|
- "underscore": "^1.9.2",
|
|
|
|
"unfetch": "^4.1.0",
|
|
|
|
- "url-loader": "^3.0.0",
|
2020-01-11 19:08:58 +05:30
|
|
|
"visibilityjs": "^1.2.4",
|
|
|
|
"vue": "^2.6.10",
|
2020-04-08 15:34:39 +05:30
|
|
|
"vue-apollo": "^3.0.0-beta.28",
|
|
|
|
@@ -137,12 +109,7 @@
|
2020-03-12 18:50:15 +05:30
|
|
|
"vue-virtual-scroll-list": "^1.4.4",
|
2020-01-11 19:08:58 +05:30
|
|
|
"vuedraggable": "^2.23.0",
|
2020-04-08 15:34:39 +05:30
|
|
|
"vuex": "^3.1.0",
|
|
|
|
- "webpack": "^4.42.0",
|
|
|
|
- "webpack-bundle-analyzer": "^3.6.0",
|
|
|
|
- "webpack-cli": "^3.3.11",
|
|
|
|
- "webpack-stats-plugin": "^0.3.1",
|
2020-02-23 17:54:41 +05:30
|
|
|
- "worker-loader": "^2.0.0",
|
2020-02-28 18:54:31 +05:30
|
|
|
- "xterm": "^3.5.0"
|
2020-04-08 15:34:39 +05:30
|
|
|
+ "webpack-stats-plugin": "^0.3.1"
|
2020-01-11 19:08:58 +05:30
|
|
|
},
|
2020-02-23 17:54:41 +05:30
|
|
|
"devDependencies": {
|
2020-04-08 15:34:39 +05:30
|
|
|
},
|